ensure install generator references right rails constant and get tests running on modern ruby

This commit is contained in:
John Bintz 2013-01-22 18:42:20 -05:00
parent 280774db08
commit d7eae4eef6
4 changed files with 21 additions and 17 deletions

View File

@ -1 +1,3 @@
source :rubygems
gemspec gemspec

View File

@ -1,25 +1,25 @@
PATH PATH
remote: . remote: .
specs: specs:
flowplayer (0.0.6) flowplayer (0.1.1)
json json
GEM GEM
remote: http://rubygems.org/
specs: specs:
diff-lcs (1.1.2) diff-lcs (1.1.3)
json (1.5.1) json (1.7.6)
mocha (0.9.12) mocha (0.9.12)
nokogiri (1.4.4) nokogiri (1.4.4)
rspec (2.0.1) rake (10.0.3)
rspec-core (~> 2.0.1) rspec (2.4.0)
rspec-expectations (~> 2.0.1) rspec-core (~> 2.4.0)
rspec-mocks (~> 2.0.1) rspec-expectations (~> 2.4.0)
rspec-core (2.0.1) rspec-mocks (~> 2.4.0)
rspec-expectations (2.0.1) rspec-core (2.4.0)
diff-lcs (>= 1.1.2) rspec-expectations (2.4.0)
rspec-mocks (2.0.1) diff-lcs (~> 1.1.2)
rspec-core (~> 2.0.1) rspec-mocks (2.4.0)
rspec-expectations (~> 2.0.1)
PLATFORMS PLATFORMS
ruby ruby
@ -29,4 +29,5 @@ DEPENDENCIES
flowplayer! flowplayer!
mocha mocha
nokogiri nokogiri
rspec (~> 2.0.0) rake
rspec (~> 2.4.0)

View File

@ -20,9 +20,10 @@ Gem::Specification.new do |s|
s.required_rubygems_version = ">= 1.3.6" s.required_rubygems_version = ">= 1.3.6"
s.add_development_dependency "bundler", ">= 1.0.0" s.add_development_dependency "bundler", ">= 1.0.0"
s.add_development_dependency "rspec", "~> 2.0.0" s.add_development_dependency "rspec", "~> 2.4.0"
s.add_development_dependency "nokogiri" s.add_development_dependency "nokogiri"
s.add_development_dependency "mocha" s.add_development_dependency "mocha"
s.add_development_dependency "rake"
s.add_dependency "json" s.add_dependency "json"
end end

View File

@ -1,5 +1,5 @@
module Flowplayer::Generator module Flowplayer::Generator
class InstallGenerator < Rails::Generators::Base class InstallGenerator < ::Rails::Generators::Base
namespace 'flowplayer' namespace 'flowplayer'
source_root File.expand_path("../../../../../vendor/assets/", __FILE__) source_root File.expand_path("../../../../../vendor/assets/", __FILE__)
argument :install_type, :type => :string, :banner => "commercial", :required => false, :default => '' argument :install_type, :type => :string, :banner => "commercial", :required => false, :default => ''