diff --git a/Rakefile b/Rakefile index 13ae20c..808e8ad 100644 --- a/Rakefile +++ b/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 diff --git a/bin/jasmine b/bin/jasmine index 780a9d0..1068bb6 100755 --- a/bin/jasmine +++ b/bin/jasmine @@ -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 diff --git a/jasmine-ruby.gemspec b/jasmine-ruby.gemspec index 990a59c..5fdb6d2 100644 --- a/jasmine-ruby.gemspec +++ b/jasmine-ruby.gemspec @@ -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"] diff --git a/lib/jasmine-ruby/jasmine_helper.rb b/lib/jasmine-ruby/jasmine_helper.rb index a4eafc7..fbca741 100755 --- a/lib/jasmine-ruby/jasmine_helper.rb +++ b/lib/jasmine-ruby/jasmine_helper.rb @@ -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')