Skip to content

Commit

Permalink
Removed symbol-to-proc for Ruby 1.8.6 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bleigh committed Jan 31, 2010
1 parent 082b76d commit dbbb789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tweetstream/client.rb
Expand Up @@ -239,7 +239,7 @@ def parser_from(parser)
parser
when Symbol
require "tweetstream/parsers/#{parser.to_s}"
eval("TweetStream::Parsers::#{parser.to_s.split('_').map(&:capitalize).join('')}")
eval("TweetStream::Parsers::#{parser.to_s.split('_').map{|s| s.capitalize}.join('')}")
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/tweetstream/parser_spec.rb
Expand Up @@ -9,7 +9,7 @@
describe "#{engine} parsing" do
before do
@client = TweetStream::Client.new('test','fake',engine)
@class_name = "TweetStream::Parsers::#{engine.to_s.split('_').map(&:capitalize).join('')}"
@class_name = "TweetStream::Parsers::#{engine.to_s.split('_').map{|s| s.capitalize}.join('')}"
end

it 'should set the parser to the appropriate class' do
Expand Down

0 comments on commit dbbb789

Please sign in to comment.