Sha256: 6ca812aea412c1ba8dba8f0146c14366501a2aaf30ae808b9889dd69d74c59fb
Contents?: true
Size: 637 Bytes
Versions: 3
Compression:
Stored size: 637 Bytes
Contents
require 'bundler' Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' RSpec::Core::RakeTask.new do |t| t.pattern = "./spec/**/*_spec.rb" t.rspec_opts = [ '--color', '-r', File.expand_path("../spec/spec_helper.rb", __FILE__)] end task :build_parser do sh "bundle exec tt lib/json_select/selector_parser.tt -o lib/json_select/selector_parser.rb" path = 'lib/json_select/selector_parser.rb' src = File.read(path) src.gsub!('JSONSelectSelector', 'JSONSelect::Selector') File.open(path, 'w+') { |f| f.write src } end task :spec => :build_parser task :build => :build_parser task :default => :spec
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
json_select-0.1.3 | Rakefile |
json_select-0.1.2 | Rakefile |
json_select-0.1.1 | Rakefile |