restly 0.0.1.beta.9 → 0.0.1.beta.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restly/connection.rb +1 -1
- data/lib/restly/version.rb +1 -1
- data/restly.gemspec +2 -2
- metadata +10 -10
data/lib/restly/connection.rb
CHANGED
@@ -18,7 +18,7 @@ class Restly::Connection < OAuth2::AccessToken
|
|
18
18
|
|
19
19
|
elsif object.is_a?(Restly::Middleware)
|
20
20
|
|
21
|
-
/(?<token>\w+)$/i =~ object.env['HTTP_AUTHORIZATION']
|
21
|
+
/bearer\s+(?<token>\w+)$/i =~ object.env['HTTP_AUTHORIZATION']
|
22
22
|
return from_rack_request(client, object) if token
|
23
23
|
token_hash = object.env['rack.session'][Restly::Configuration.session_key] || {}
|
24
24
|
from_hash(client, token_hash)
|
data/lib/restly/version.rb
CHANGED
data/restly.gemspec
CHANGED
@@ -17,8 +17,8 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
gem.add_dependency "oauth2", "> 0.6"
|
20
|
-
gem.add_dependency "activesupport", "
|
21
|
-
gem.add_dependency "activemodel", "
|
20
|
+
gem.add_dependency "activesupport", ">= 3.0"
|
21
|
+
gem.add_dependency "activemodel", ">= 3.0"
|
22
22
|
gem.add_dependency "colorize", "~> 0.5.8"
|
23
23
|
|
24
24
|
gem.add_development_dependency "rspec", "~> 2.12"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.beta.
|
4
|
+
version: 0.0.1.beta.10
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2013-03-06 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: oauth2
|
@@ -35,33 +35,33 @@ dependencies:
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
none: false
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '3.
|
40
|
+
version: '3.0'
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
none: false
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ! '>='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '3.
|
48
|
+
version: '3.0'
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: activemodel
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - ! '>='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '3.
|
56
|
+
version: '3.0'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
none: false
|
61
61
|
requirements:
|
62
|
-
- -
|
62
|
+
- - ! '>='
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: '3.
|
64
|
+
version: '3.0'
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
66
|
name: colorize
|
67
67
|
requirement: !ruby/object:Gem::Requirement
|