rack-oauth2 1.0.10 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e34e57b982d446924589af2312d29073e3059ce1
4
- data.tar.gz: f77dc85bcbceebf5c40c80a783a19279fb39c31f
3
+ metadata.gz: 9577874b0a1c185f48cbb6a1d41f57be58605892
4
+ data.tar.gz: 2ea322ba81ee7a380489501b5adcb55cb500d962
5
5
  SHA512:
6
- metadata.gz: 10e9dd064059221305eab85ef20de2f34b219c915d6cd6041c6babbfe7a5df8b842ca75e32a3ef94a62901fa6d29b7b7fec835184a8ef76473239e69ca5ebebf
7
- data.tar.gz: 1e2758261bb2cb143971345c1b52311fec882643573a580578b9ec1e3ad8b2e4187a57c708583deef0beaa934e9cefd5c117a095ae4ca88188c59259efa3ad30
6
+ metadata.gz: f7a7f850cff921e533da407de1eaea5d32ed170802e87315371a14aa412c28a773d64114a5cd3bc8ab0e0826e28c8e2c2a24dde94156c41004faec3bf892d5ab
7
+ data.tar.gz: e4ba657a620fe303c04ad7c338be59659372a5849181d95ef72ed20841078ec1585e8d0271689323672d8a2feb00839a985a323941d90e252dfb9f311e9176ba
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.10
1
+ 1.1.0
@@ -6,6 +6,8 @@ module Rack
6
6
  attr_optional :refresh_token, :expires_in, :scope
7
7
  delegate :get, :post, :put, :delete, :to => :httpclient
8
8
 
9
+ alias_method :to_s, :access_token
10
+
9
11
  def initialize(attributes = {})
10
12
  (required_attributes + optional_attributes).each do |key|
11
13
  self.send :"#{key}=", attributes[key]
@@ -10,10 +10,6 @@ module Rack
10
10
  ).try(:to_i)
11
11
  end
12
12
 
13
- def to_s # This is for fb_graph
14
- self.access_token
15
- end
16
-
17
13
  def authenticate(request)
18
14
  request.header["Authorization"] = "OAuth #{access_token}"
19
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-16 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack