Sha256: 6cd05fbc4f33c7a21eb625ace2441bf5890cab15192b90b56b61ad3935baf7a1

Contents?: true

Size: 621 Bytes

Versions: 8

Compression:

Stored size: 621 Bytes

Contents

require "rails/railtie"
module Jasmine
  class Railtie < Rails::Railtie

    config.before_configuration do
      old_jasmine_rakefile = ::Rails.root.join('lib', 'tasks', 'jasmine.rake')
      if old_jasmine_rakefile.exist? && !ENV["USE_JASMINE_RAKE"]
        puts %Q{
            You no longer need to have jasmine.rake in your project, as it is now automatically loaded
            from the Jasmine gem. To silence this warning, set "USE_JASMINE_RAKE=true" in your environment
            or remove jasmine.rake.
          }
      end
    end

    rake_tasks do
      load "jasmine/tasks/jasmine.rake"
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
jasmine-1.1.2 lib/jasmine/railtie.rb
jasmine-1.1.0 lib/jasmine/railtie.rb
jasmine-1.1.0.rc4 lib/jasmine/railtie.rb
jasmine-1.1.0.rc3 lib/jasmine/railtie.rb
jasmine-1.1.0.rc2 lib/jasmine/railtie.rb
josephholsten-jasmine-1.1.0.pre.10 lib/jasmine/railtie.rb
jasmine-1.0.2.1 lib/jasmine/railtie.rb
josephholsten-jasmine-1.1.0.pre.1 lib/jasmine/railtie.rb