add badges and code climate
This commit is contained in:
parent
f790b5d76a
commit
ba4a04fcc7
2
Gemfile
2
Gemfile
@ -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
|
||||
|
10
Gemfile.lock
10
Gemfile.lock
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user