Sha256: d31f54026aeeda6e90bb8bdc42ecb0d60f0d77d3bf94bdcb9fa502102ef10c1a

Contents?: true

Size: 1.64 KB

Versions: 3

Compression:

Stored size: 1.64 KB

Contents

# coding: utf-8
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

begin
  GEM = "i18n_rails_helpers"
  AUTHOR = "Simon Hürlimann"
  EMAIL = "simon.huerlimann@cyt.ch"
  SUMMARY = "Rails i18n view helpers for things like crud actions, models and and attributes."
  HOMEPAGE = "http://github.com/huerlisi/i18n_rails_helpers/tree/master"
  
  gem 'jeweler', '>= 1.0.0'
  require 'jeweler'
  
  Jeweler::Tasks.new do |s|
    s.name = GEM
    s.summary = SUMMARY
    s.email = EMAIL
    s.homepage = HOMEPAGE
    s.description = SUMMARY
    s.author = AUTHOR
    
    s.require_path = 'lib'
    s.files = %w(MIT-LICENSE README Rakefile) + Dir.glob("{lib,test,rails,config}/**/*")
    
    # Runtime dependencies: When installing i18n_rails_helpers these will be checked if they are installed.
    # Will be offered to install these if they are not already installed.
    s.add_dependency 'activemodel'
    s.add_dependency 'i18n'
  end
  
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "[i18n_rails_helpers:] Jeweler - or one of its dependencies - is not available. Install it with: sudo gem install jeweler -s http://gemcutter.org"
end

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the i18n_rails_helpers plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

desc 'Generate documentation for the i18n_rails_helpers plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'I18nRailsHelpers'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
i18n_rails_helpers-0.6.0 Rakefile
i18n_rails_helpers-0.5.7 Rakefile
i18n_rails_helpers-0.5.6 Rakefile