add badges and code climate

This commit is contained in:
Torsten Ruger 2015-07-18 13:09:16 +03:00
parent f790b5d76a
commit ba4a04fcc7
4 changed files with 21 additions and 7 deletions

View File

@ -4,9 +4,11 @@ gem "rake"
gem "salama-reader" , :path => "."
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "codeclimate-test-reporter", require: nil
gem "minitest"
gem "rubygems-tasks"
end

View File

@ -8,16 +8,26 @@ GEM
remote: http://rubygems.org/
specs:
blankslate (3.1.3)
codeclimate-test-reporter (0.4.6)
simplecov (>= 0.7.1, < 1.0.0)
docile (1.1.5)
minitest (5.6.1)
multi_json (1.11.2)
parslet (1.7.0)
blankslate (>= 2.0, <= 4.0)
rake (10.4.2)
rubygems-tasks (0.2.4)
simplecov (0.9.2)
docile (~> 1.1.0)
multi_json (~> 1.0)
simplecov-html (~> 0.9.0)
simplecov-html (0.9.0)
PLATFORMS
ruby
DEPENDENCIES
codeclimate-test-reporter
minitest
rake
rubygems-tasks

View File

@ -1,3 +1,8 @@
[![Build Status](https://travis-ci.org/salama/salama-reader.svg?branch=master)](https://travis-ci.org/salama/salama-reader)
[![Gem Version](https://badge.fury.io/rb/salama-reader.svg)](http://badge.fury.io/rb/salama-reader)
[![Code Climate](https://codeclimate.com/github/salama/salama-reader/badges/gpa.svg)](https://codeclimate.com/github/salama/salama-reader)
[![Test Coverage](https://codeclimate.com/github/salama/salama-reader/badges/coverage.svg)](https://codeclimate.com/github/salama/salama-reader)
## Salama Reader*
The parser part of salama is now a standalone gem. It parses ruby using Parslet and no other dependencies.

View File

@ -8,15 +8,12 @@ rescue Bundler::BundlerError => e
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
if ENV['CODECLIMATE_REPO_TOKEN']
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
end
require 'salama-reader'
require "minitest"
require "minitest/autorun"
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'test'))