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

Version Path
zena-1.0.0.rc2 vendor/plugins/gettext_i18n_rails/Rakefile
zena-1.0.0.rc1 vendor/plugins/gettext_i18n_rails/Rakefile
gettext_i18n_rails-0.2.4 Rakefile
zena-1.0.0.beta3 vendor/plugins/gettext_i18n_rails/Rakefile
gettext_i18n_rails-0.2.3 Rakefile
gettext_i18n_rails-0.2.2 Rakefile
zena-1.0.0.beta2 vendor/plugins/gettext_i18n_rails/Rakefile
zena-1.0.0.beta1 vendor/plugins/gettext_i18n_rails/Rakefile
gettext_i18n_rails-0.2.1 Rakefile
gettext_i18n_rails-0.2.0 Rakefile
gettext_i18n_rails-0.1.5 Rakefile
gettext_i18n_rails-0.1.4 Rakefile
gettext_i18n_rails-0.1.3 Rakefile
gettext_i18n_rails-0.1.2 Rakefile
gettext_i18n_rails-0.1.1 Rakefile
gettext_i18n_rails-0.1.0 Rakefile