fb_graph 2.1.3 → 2.1.4
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/Gemfile.lock +4 -4
- data/VERSION +1 -1
- data/fb_graph.gemspec +1 -1
- data/lib/fb_graph.rb +2 -1
- data/spec/fb_graph_spec.rb +5 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
fb_graph (2.1.
|
|
4
|
+
fb_graph (2.1.3)
|
|
5
5
|
httpclient (>= 2.2.0.2)
|
|
6
|
-
rack-oauth2 (>= 0.9.
|
|
6
|
+
rack-oauth2 (>= 0.9.4)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: http://rubygems.org/
|
|
@@ -48,7 +48,7 @@ GEM
|
|
|
48
48
|
rack (>= 0.4)
|
|
49
49
|
rack-mount (0.8.3)
|
|
50
50
|
rack (>= 1.0.0)
|
|
51
|
-
rack-oauth2 (0.9.
|
|
51
|
+
rack-oauth2 (0.9.4)
|
|
52
52
|
activesupport (>= 2.3)
|
|
53
53
|
attr_required (>= 0.0.3)
|
|
54
54
|
httpclient (>= 2.2.0.2)
|
|
@@ -74,7 +74,7 @@ GEM
|
|
|
74
74
|
tilt (!= 1.3.0, ~> 1.1)
|
|
75
75
|
tilt (1.3.3)
|
|
76
76
|
webmock (1.7.6)
|
|
77
|
-
addressable (
|
|
77
|
+
addressable (> 2.2.5, ~> 2.2)
|
|
78
78
|
crack (>= 0.1.7)
|
|
79
79
|
|
|
80
80
|
PLATFORMS
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.1.
|
|
1
|
+
2.1.4
|
data/fb_graph.gemspec
CHANGED
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
|
13
13
|
s.files = `git ls-files`.split("\n")
|
|
14
14
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
15
15
|
s.add_runtime_dependency "httpclient", ">= 2.2.0.2"
|
|
16
|
-
s.add_runtime_dependency "rack-oauth2", ">= 0.9.
|
|
16
|
+
s.add_runtime_dependency "rack-oauth2", ">= 0.9.4"
|
|
17
17
|
s.add_development_dependency "rake", ">= 0.8"
|
|
18
18
|
s.add_development_dependency "rcov", ">= 0.9"
|
|
19
19
|
s.add_development_dependency "rspec", ">= 2"
|
data/lib/fb_graph.rb
CHANGED
|
@@ -21,10 +21,11 @@ module FbGraph
|
|
|
21
21
|
@@debugging
|
|
22
22
|
end
|
|
23
23
|
def self.debugging=(boolean)
|
|
24
|
+
Rack::OAuth2.debugging = boolean
|
|
24
25
|
@@debugging = boolean
|
|
25
26
|
end
|
|
26
27
|
def self.debug!
|
|
27
|
-
Rack::OAuth2.
|
|
28
|
+
Rack::OAuth2.debug!
|
|
28
29
|
self.debugging = true
|
|
29
30
|
end
|
|
30
31
|
def self.debug(&block)
|
data/spec/fb_graph_spec.rb
CHANGED
|
@@ -15,16 +15,21 @@ describe FbGraph do
|
|
|
15
15
|
describe '.debug' do
|
|
16
16
|
it 'should enable debugging within given block' do
|
|
17
17
|
FbGraph.debug do
|
|
18
|
+
Rack::OAuth2.debugging?.should be_true
|
|
18
19
|
FbGraph.debugging?.should be_true
|
|
19
20
|
end
|
|
21
|
+
Rack::OAuth2.debugging?.should be_false
|
|
20
22
|
FbGraph.debugging?.should be_false
|
|
21
23
|
end
|
|
22
24
|
|
|
23
25
|
it 'should not force disable debugging' do
|
|
26
|
+
Rack::OAuth2.debug!
|
|
24
27
|
FbGraph.debug!
|
|
25
28
|
FbGraph.debug do
|
|
29
|
+
Rack::OAuth2.debugging?.should be_true
|
|
26
30
|
FbGraph.debugging?.should be_true
|
|
27
31
|
end
|
|
32
|
+
Rack::OAuth2.debugging?.should be_true
|
|
28
33
|
FbGraph.debugging?.should be_true
|
|
29
34
|
end
|
|
30
35
|
end
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: fb_graph
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 2.1.
|
|
5
|
+
version: 2.1.4
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- nov matake
|
|
@@ -31,7 +31,7 @@ dependencies:
|
|
|
31
31
|
requirements:
|
|
32
32
|
- - ">="
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: 0.9.
|
|
34
|
+
version: 0.9.4
|
|
35
35
|
type: :runtime
|
|
36
36
|
version_requirements: *id002
|
|
37
37
|
- !ruby/object:Gem::Dependency
|