fb_graph 2.1.1 → 2.1.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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fb_graph (2.1.0)
4
+ fb_graph (2.1.2)
5
5
  httpclient (>= 2.2.0.2)
6
6
  rack-oauth2 (>= 0.8.0)
7
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.2
data/lib/fb_graph.rb CHANGED
@@ -3,6 +3,9 @@ require 'rack/oauth2'
3
3
  require 'patch/rack/oauth2/util'
4
4
 
5
5
  module FbGraph
6
+ VERSION = ::File.read(
7
+ ::File.join(::File.dirname(__FILE__), '../VERSION')
8
+ )
6
9
  ROOT_URL = "https://graph.facebook.com"
7
10
 
8
11
  def self.logger
@@ -12,7 +15,7 @@ module FbGraph
12
15
  @@logger = logger
13
16
  end
14
17
  self.logger = Logger.new(STDOUT)
15
- self.logger.progname = 'Paypal::Express'
18
+ self.logger.progname = 'FbGraph'
16
19
 
17
20
  def self.debugging?
18
21
  @@debugging
data/lib/fb_graph/node.rb CHANGED
@@ -59,7 +59,9 @@ module FbGraph
59
59
  end
60
60
 
61
61
  def http_client
62
- _http_client_ = HTTPClient.new
62
+ _http_client_ = HTTPClient.new(
63
+ :agent_name => "FbGraph (#{VERSION})"
64
+ )
63
65
  _http_client_.request_filter << Debugger::RequestFilter.new if FbGraph.debugging?
64
66
  _http_client_
65
67
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 1
10
- version: 2.1.1
9
+ - 2
10
+ version: 2.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - nov matake
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-07 00:00:00 Z
18
+ date: 2011-09-10 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: httpclient