aggcat 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
data/lib/aggcat/base.rb CHANGED
@@ -21,12 +21,12 @@ module Aggcat
21
21
 
22
22
  TIMEOUT = 120
23
23
 
24
- DELETE_KEYS = {:'@xmlns' => nil, :'@xmlns:ns2' => nil, :'@xmlns:ns3' => nil, :'@xmlns:ns4' => nil, :'@xmlns:ns5' => nil, :'@xmlns:ns6' => nil, :'@xmlns:ns7' => nil, :'@xmlns:ns8' => nil}
24
+ IGNORE_KEYS = Set.new([:'@xmlns', :'@xmlns:ns2', :'@xmlns:ns3', :'@xmlns:ns4', :'@xmlns:ns5', :'@xmlns:ns6', :'@xmlns:ns7', :'@xmlns:ns8'])
25
25
 
26
26
  protected
27
27
 
28
- def access_token(consumer_id)
29
- token = oauth_token(consumer_id)
28
+ def access_token(user_id)
29
+ token = oauth_token(user_id)
30
30
  consumer = OAuth::Consumer.new(@consumer_key, @consumer_secret, {:timeout => TIMEOUT})
31
31
  OAuth::AccessToken.new(consumer, token[:key], token[:secret])
32
32
  end
@@ -84,7 +84,7 @@ module Aggcat
84
84
 
85
85
  def cleanup(hash)
86
86
  hash.each do |k, v|
87
- if DELETE_KEYS.has_key?(k)
87
+ if IGNORE_KEYS.include?(k)
88
88
  hash.delete(k)
89
89
  elsif v.respond_to?(:keys)
90
90
  cleanup(v)
@@ -1,3 +1,3 @@
1
1
  module Aggcat
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aggcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -116,7 +116,7 @@ extra_rdoc_files: []
116
116
  files:
117
117
  - .gitignore
118
118
  - Gemfile
119
- - LICENSE.txt
119
+ - LICENSE.md
120
120
  - README.md
121
121
  - Rakefile
122
122
  - aggcat.gemspec