restfull_oauth 0.2.1 → 0.2.2
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.
- checksums.yaml +4 -4
- data/lib/restfull_oauth.rb +1 -3
- data/lib/restfull_oauth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2d85fa081e5831969e75cbb4455e259c8f3a729
|
4
|
+
data.tar.gz: 81e8453a3bdf83beac5b1ec0eb9a64d22c0ce9c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 348642752888d5fab1f36b924ced722d624bff0a644ff9a8e6be3679c270dd5c758f2b63cce1b4937fae76271d459a13791318742c1249cb09e1cce97654b69b
|
7
|
+
data.tar.gz: 8ea2f079ed55a687bfc7d7ba1c09d4f2cc991664f57a73c8770fb9f15fafc710368242ae5644b3c71cb670d9d3440d41eb864b6f9f95d8eb3c045c9c20651ba0
|
data/lib/restfull_oauth.rb
CHANGED
@@ -26,8 +26,6 @@ module RestfullOauth
|
|
26
26
|
# >> puts JSON.parse(response.body).to_yaml
|
27
27
|
|
28
28
|
class Connection
|
29
|
-
attr_accessor :session, :config, :logger
|
30
|
-
|
31
29
|
def initialize(config = {})
|
32
30
|
@config = config
|
33
31
|
self
|
@@ -99,7 +97,7 @@ module RestfullOauth
|
|
99
97
|
headers = { 'Authorization' => header,
|
100
98
|
'Content-Type' => 'application/json'
|
101
99
|
}
|
102
|
-
headers.each do |key|
|
100
|
+
headers.keys.each do |key|
|
103
101
|
request[key] = headers[key]
|
104
102
|
end
|
105
103
|
request.body = post_data
|