7 Commits

6 changed files with 38 additions and 8 deletions

10
.travis.yml Normal file
View File

@ -0,0 +1,10 @@
language: ruby
sudo: false
cache: bundler
script:
- CODECLIMATE_REPO_TOKEN=40ed7f464af09c892b27adc2cd171c36b24992d8d527428285bc55c46fe2f0e0 ruby test/test_all.rb
rvm:
- 1.9.3
- 2.0.0
- 2.1.5
- 2.2.0

View File

@ -4,6 +4,8 @@ gem "rake"
gem "salama-object-file" , :path => "."
gem "codeclimate-test-reporter", require: nil
group :development do
gem "minitest"
gem "rubygems-tasks"

View File

@ -1,20 +1,33 @@
PATH
remote: .
specs:
salama-object-file (0.2.0)
salama-object-file (0.3.0)
GEM
remote: http://rubygems.org/
specs:
minitest (5.6.1)
codeclimate-test-reporter (0.4.8)
simplecov (>= 0.7.1, < 1.0.0)
docile (1.1.5)
json (1.8.3)
minitest (5.8.1)
rake (10.4.2)
rubygems-tasks (0.2.4)
simplecov (0.10.0)
docile (~> 1.1.0)
json (~> 1.8)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
PLATFORMS
ruby
DEPENDENCIES
codeclimate-test-reporter
minitest
rake
rubygems-tasks
salama-object-file!
BUNDLED WITH
1.10.6

View File

@ -1,3 +1,8 @@
[![Build Status](https://travis-ci.org/salama/salama-object-file.svg?branch=master)](https://travis-ci.org/salama/salama-object-file)
[![Gem Version](https://badge.fury.io/rb/salama-object-file.svg)](http://badge.fury.io/rb/salama-object-file)
[![Code Climate](https://codeclimate.com/github/salama/salama-object-file/badges/gpa.svg)](https://codeclimate.com/github/salama/salama-object-file)
[![Test Coverage](https://codeclimate.com/github/salama/salama-object-file/badges/coverage.svg)](https://codeclimate.com/github/salama/salama-object-file)
### Reading the code
Knowing what's going on while coding salama is not so easy: Hence the need to look at code dumps

View File

@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = 'salama-object-file'
s.version = '0.2.0'
s.version = '0.3.0'
s.authors = ['Torsten Ruger']
s.email = 'torsten@villataika.fi'

View File

@ -1,4 +1,3 @@
require 'rubygems'
require 'bundler'
begin
@ -8,11 +7,12 @@ rescue Bundler::BundlerError => e
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
if ENV['CODECLIMATE_REPO_TOKEN']
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
end
require "minitest/autorun"
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'test'))
require 'salama-object-file'
module Checker