we don't need all of jasmine, just jasmine-core
This commit is contained in:
parent
75f4d26344
commit
4c7e03dc57
6
Rakefile
6
Rakefile
@ -38,3 +38,9 @@ end
|
|||||||
|
|
||||||
task :default => [ 'spec:platforms', 'jasmine:headless' ]
|
task :default => [ 'spec:platforms', 'jasmine:headless' ]
|
||||||
|
|
||||||
|
desc "Build the runner"
|
||||||
|
task :build do
|
||||||
|
Dir.chdir 'ext/jasmine-headless-specrunner' do
|
||||||
|
system %{ruby extconf.rb}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|||||||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
||||||
s.require_paths = ["lib"]
|
s.require_paths = ["lib"]
|
||||||
|
|
||||||
s.add_dependency 'jasmine', '~>1.1.beta'
|
s.add_dependency 'jasmine-core', '~>1.1.beta'
|
||||||
s.add_dependency 'coffee-script', '>= 2.2'
|
s.add_dependency 'coffee-script', '>= 2.2'
|
||||||
s.add_dependency 'rainbow'
|
s.add_dependency 'rainbow'
|
||||||
s.add_dependency 'multi_json'
|
s.add_dependency 'multi_json'
|
||||||
|
@ -1,13 +1,4 @@
|
|||||||
begin
|
require 'jasmine-core'
|
||||||
require 'jasmine'
|
|
||||||
rescue NameError => e
|
|
||||||
if e.message['ActiveSupport::Concern']
|
|
||||||
$stderr.puts "[%s] %s (%s)" % [ "jasmine-gem".color(:red), e.message.color(:white), e.class.name.color(:yellow) ]
|
|
||||||
$stderr.puts "#{'Jasmine'.color(:red)} believes Rails 3 is available. Try using #{'Bundler'.color(:green)} and running via #{'bundle exec'.color(:green)}."
|
|
||||||
else
|
|
||||||
raise e
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
module Jasmine
|
module Jasmine
|
||||||
class FilesList
|
class FilesList
|
||||||
|
@ -3,7 +3,6 @@ require 'jasmine/headless/options'
|
|||||||
|
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
require 'jasmine/base'
|
|
||||||
require 'coffee-script'
|
require 'coffee-script'
|
||||||
require 'rainbow'
|
require 'rainbow'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user