Added jasmine init
This commit is contained in:
parent
391c42533f
commit
fcc1872d48
2
Rakefile
2
Rakefile
@ -2,6 +2,7 @@ namespace :jeweler do
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
require 'jeweler'
|
require 'jeweler'
|
||||||
|
require 'rake'
|
||||||
Jeweler::Tasks.new do |gemspec|
|
Jeweler::Tasks.new do |gemspec|
|
||||||
gemspec.name = "jasmine-ruby"
|
gemspec.name = "jasmine-ruby"
|
||||||
gemspec.summary = "Jasmine Ruby"
|
gemspec.summary = "Jasmine Ruby"
|
||||||
@ -10,6 +11,7 @@ namespace :jeweler do
|
|||||||
gemspec.homepage = "http://github.com/ragaskar/jasmine-ruby"
|
gemspec.homepage = "http://github.com/ragaskar/jasmine-ruby"
|
||||||
gemspec.description = "Jasmine Ruby"
|
gemspec.description = "Jasmine Ruby"
|
||||||
gemspec.authors = ["Rajan Agaskar"]
|
gemspec.authors = ["Rajan Agaskar"]
|
||||||
|
gemspec.files = FileList.new('bin/*', 'lib/**/**', 'jasmine/lib/**', 'jasmine/contrib/ruby/**', 'tasks/**', 'templates/**')
|
||||||
end
|
end
|
||||||
Jeweler::GemcutterTasks.new
|
Jeweler::GemcutterTasks.new
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
cwd = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
cwd = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
||||||
p cwd
|
|
||||||
require File.expand_path(File.join(cwd, "lib", "jasmine-ruby", "jasmine_helper.rb"))
|
require File.expand_path(File.join(cwd, "lib", "jasmine-ruby", "jasmine_helper.rb"))
|
||||||
|
|
||||||
#to load JasmineHelper overrides
|
#to load JasmineHelper overrides
|
||||||
|
@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|||||||
|
|
||||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||||
s.authors = ["Rajan Agaskar"]
|
s.authors = ["Rajan Agaskar"]
|
||||||
s.date = %q{2009-10-15}
|
s.date = %q{2009-10-30}
|
||||||
s.default_executable = %q{jasmine}
|
s.default_executable = %q{jasmine}
|
||||||
s.description = %q{Jasmine Ruby}
|
s.description = %q{Jasmine Ruby}
|
||||||
s.email = %q{ragaskar@gmail.com}
|
s.email = %q{ragaskar@gmail.com}
|
||||||
@ -18,17 +18,18 @@ Gem::Specification.new do |s|
|
|||||||
"README.markdown"
|
"README.markdown"
|
||||||
]
|
]
|
||||||
s.files = [
|
s.files = [
|
||||||
".gitignore",
|
|
||||||
".gitmodules",
|
|
||||||
"MIT.LICENSE",
|
|
||||||
"README.markdown",
|
|
||||||
"Rakefile",
|
|
||||||
"VERSION.yml",
|
|
||||||
"bin/jasmine",
|
"bin/jasmine",
|
||||||
"jasmine-ruby.gemspec",
|
"jasmine/contrib/ruby/jasmine_runner.rb",
|
||||||
|
"jasmine/contrib/ruby/jasmine_spec_builder.rb",
|
||||||
|
"jasmine/contrib/ruby/run.html",
|
||||||
|
"jasmine/lib/TrivialReporter.js",
|
||||||
|
"jasmine/lib/consolex.js",
|
||||||
|
"jasmine/lib/jasmine-0.10.0.js",
|
||||||
|
"jasmine/lib/jasmine.css",
|
||||||
|
"jasmine/lib/json2.js",
|
||||||
"lib/jasmine-ruby/jasmine_helper.rb",
|
"lib/jasmine-ruby/jasmine_helper.rb",
|
||||||
"spec/jasmine_spec.rb",
|
"tasks/jasmine.rake",
|
||||||
"tasks/jasmine.rake"
|
"templates/example_spec.js"
|
||||||
]
|
]
|
||||||
s.homepage = %q{http://github.com/ragaskar/jasmine-ruby}
|
s.homepage = %q{http://github.com/ragaskar/jasmine-ruby}
|
||||||
s.rdoc_options = ["--charset=UTF-8"]
|
s.rdoc_options = ["--charset=UTF-8"]
|
||||||
|
@ -22,7 +22,7 @@ class JasmineHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.jasmine_spec_dir
|
def self.jasmine_spec_dir
|
||||||
if defined? rails_root
|
if rails_root
|
||||||
File.expand_path(File.join(rails_root, "spec", "javascript"))
|
File.expand_path(File.join(rails_root, "spec", "javascript"))
|
||||||
else
|
else
|
||||||
File.expand_path('spec')
|
File.expand_path('spec')
|
||||||
|
Loading…
Reference in New Issue
Block a user