Sha256: 2ac9dc558f9a3b07ed6c196848177d55c959daa71571fce7caa30608ed373145
Contents?: true
Size: 959 Bytes
Versions: 16
Compression:
Stored size: 959 Bytes
Contents
require 'spec/rake/spectask' Spec::Rake::SpecTask.new {|t| t.spec_opts = ['--color']} task :default do # test with 2.x puts `VERSION='~>2' rake spec RSPEC_COLOR=1` # gem 'activerecord', '>=3' did not work for me, but just require gets the right version... require 'active_record' if ActiveRecord::VERSION::MAJOR >= 3 puts `rake spec RSPEC_COLOR=1` else 'install rails 3 to get full test coverage...' end end begin require 'jeweler' project_name = 'gettext_i18n_rails' Jeweler::Tasks.new do |gem| gem.name = project_name gem.summary = "Simple FastGettext Rails integration." gem.email = "grosser.michael@gmail.com" gem.homepage = "http://github.com/grosser/#{project_name}" gem.authors = ["Michael Grosser"] gem.add_dependency 'fast_gettext' end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler" end
Version data entries
16 entries across 16 versions & 2 rubygems