Permalink
Browse files

fixed for ruby 1.9.x

  • Loading branch information...
1 parent 387dfba commit f617f3e4a0e01330586e041d47e915c64e18669c andrea@SONGOKU committed Oct 21, 2010
Showing with 3 additions and 5 deletions.
  1. +1 −2 Rakefile
  2. +0 −1 lib/freightrain.rb
  3. +2 −2 lib/freightrain/views/callback_wrapper.rb
View
@@ -9,9 +9,8 @@ require 'rake/testtask'
spec = Gem::Specification.new do |s|
s.name = 'freightrain'
- s.version = '0.6.10'
+ s.version = '0.7.0'
s.add_dependency('require_all', '>= 1.1.0')
- s.add_dependency('needle', '>= 1.3.0')
s.has_rdoc = false
s.homepage = "http://github.com/bolthar/freightrain"
s.executables = ['ftrain']
View
@@ -1,7 +1,6 @@
require 'rubygems'
-require 'needle'
require 'require_all'
require 'tmpdir'
@@ -9,11 +9,11 @@ def initialize(method)
end
def target
- return @method.name.split("_on_")[0]
+ return @method.name.to_s.split("_on_")[0]
end
def event
- return @method.name.split("_on_")[1].gsub("_", "-")
+ return @method.name.to_s.split("_on_")[1].gsub("_", "-")
end
end

0 comments on commit f617f3e

Please sign in to comment.