using raketasks

This commit is contained in:
Torsten Ruger 2015-05-03 22:58:33 +03:00
parent 42b85dbb4f
commit fd0e57e2de
6 changed files with 10 additions and 102 deletions

View File

@ -1,5 +0,0 @@
lib/**/*.rb
bin/*
-
features/**/*.feature
LICENSE.txt

View File

@ -6,7 +6,5 @@ gem "parslet"
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "minitest"
gem "rdoc", "~> 3.12"
gem "bundler", "~> 1.0"
gem "jeweler", "~> 2.0.1"
gem "rubygems-tasks"
end

View File

@ -1,62 +1,16 @@
GEM
remote: http://rubygems.org/
specs:
addressable (2.3.6)
blankslate (2.1.2.4)
builder (3.2.2)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
faraday (0.9.0)
multipart-post (>= 1.2, < 3)
git (1.2.6)
github_api (0.11.3)
addressable (~> 2.3)
descendants_tracker (~> 0.0.1)
faraday (~> 0.8, < 0.10)
hashie (>= 1.2)
multi_json (>= 1.7.5, < 2.0)
nokogiri (~> 1.6.0)
oauth2
hashie (2.1.1)
highline (1.6.21)
jeweler (2.0.1)
builder
bundler (>= 1.0)
git (>= 1.2.5)
github_api
highline (>= 1.6.15)
nokogiri (>= 1.5.10)
rake
rdoc
json (1.8.1)
jwt (1.0.0)
mini_portile (0.6.0)
minitest (5.3.2)
multi_json (1.10.1)
multi_xml (0.5.5)
multipart-post (2.0.0)
nokogiri (1.6.2.1)
mini_portile (= 0.6.0)
oauth2 (0.9.4)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (~> 1.2)
parslet (1.6.1)
blankslate (~> 2.0)
rack (1.5.2)
rake (10.3.2)
rdoc (3.12.2)
json (~> 1.4)
thread_safe (0.3.4)
rubygems-tasks (0.2.4)
PLATFORMS
ruby
DEPENDENCIES
bundler (~> 1.0)
jeweler (~> 2.0.1)
minitest
parslet
rdoc (~> 3.12)
rubygems-tasks

View File

@ -1,20 +0,0 @@
Copyright (c) 2014 Torsten Ruger
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -11,22 +11,9 @@ rescue Bundler::BundlerError => e
end
require 'rake'
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
gem.name = "salama-reader"
gem.homepage = "http://github.com/salama/salama-reader"
gem.license = "GPL3"
gem.summary = %Q{Parse ruby in ruby using parslet.}
gem.description = %Q{Salama reader is part of the salama vm. The reader reads (parses) ruby and
creates an ast from it. There are no other dependencies than parslet, which itself has hardly any.
The gem may be useful for code analysis tools or for education.
Two ways to use it include adding functions to each of the AST classes, or using a visitor patter.}
gem.email = "torsten@villataika.fi"
gem.authors = ["Torsten Ruger"]
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new
require 'rubygems/tasks'
Gem::Tasks.new
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
@ -35,12 +22,6 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end
desc "Code coverage detail"
task :simplecov do
ENV['COVERAGE'] = "true"
Rake::Task['test'].execute
end
task :default => :test
require 'rdoc/task'

View File

@ -2,15 +2,15 @@
Gem::Specification.new do |s|
s.name = 'salama-reader'
s.version = '0.0.2'
s.version = '0.0.3'
s.authors = ['Torsten Ruger']
s.email = 'torsten@villataika.fi'
s.extra_rdoc_files = ['README.md']
s.files = %w(README.md LICENSE) + Dir.glob("lib/**/*")
s.homepage = 'https://github.com/salama/salama-reader'
s.license = 'MIT'
s.license = 'GNU v3'
s.require_paths = ['lib']
s.summary = 'Ruby parser for the salama machine'
s.summary = 'Ruby parser for the salama machine'
end