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.
- data/{LICENSE.txt → LICENSE.md} +0 -0
- data/lib/aggcat/base.rb +4 -4
- data/lib/aggcat/version.rb +1 -1
- metadata +2 -2
data/{LICENSE.txt → LICENSE.md}
RENAMED
|
File without changes
|
data/lib/aggcat/base.rb
CHANGED
|
@@ -21,12 +21,12 @@ module Aggcat
|
|
|
21
21
|
|
|
22
22
|
TIMEOUT = 120
|
|
23
23
|
|
|
24
|
-
|
|
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(
|
|
29
|
-
token = oauth_token(
|
|
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
|
|
87
|
+
if IGNORE_KEYS.include?(k)
|
|
88
88
|
hash.delete(k)
|
|
89
89
|
elsif v.respond_to?(:keys)
|
|
90
90
|
cleanup(v)
|
data/lib/aggcat/version.rb
CHANGED
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.
|
|
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.
|
|
119
|
+
- LICENSE.md
|
|
120
120
|
- README.md
|
|
121
121
|
- Rakefile
|
|
122
122
|
- aggcat.gemspec
|