topsy 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/topsy.rb +3 -3
- data/lib/topsy/version.rb +1 -1
- metadata +1 -1
data/lib/topsy.rb
CHANGED
@@ -2,7 +2,7 @@ require 'hashie'
|
|
2
2
|
require 'httparty'
|
3
3
|
|
4
4
|
directory = File.expand_path(File.dirname(__FILE__))
|
5
|
-
Dir[directory + '/topsy/*.rb'].each{ |f| require f unless f =~ /version
|
5
|
+
Dir[directory + '/topsy/*.rb'].each{ |f| require f unless f =~ /version\.rb$/ }
|
6
6
|
|
7
7
|
Hash.send :include, Hashie::HashExtensions
|
8
8
|
|
@@ -20,10 +20,10 @@ module Topsy
|
|
20
20
|
self.credit if @rate_limit_info.nil?
|
21
21
|
@rate_limit_info
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
def rate_limit=(info)
|
25
25
|
@rate_limit_info = Topsy::RateLimitInfo.new(info)
|
26
|
-
end
|
26
|
+
end
|
27
27
|
|
28
28
|
def respond_to_missing?(method_name , include_private=false); client.respond_to?(method_name, include_private); end if RUBY_VERSION >= "1.9"
|
29
29
|
def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end if RUBY_VERSION < "1.9"
|
data/lib/topsy/version.rb
CHANGED