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