fb_graph 1.3.7 → 1.3.8
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/VERSION +1 -1
- data/fb_graph.gemspec +5 -3
- data/lib/cert +3509 -0
- data/lib/fb_graph.rb +1 -1
- data/lib/restclient_with_ssl_support.rb +28 -0
- metadata +7 -5
data/lib/fb_graph.rb
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'restclient'
|
2
|
+
|
3
|
+
module RestClient
|
4
|
+
|
5
|
+
def self.ssl_settings
|
6
|
+
{
|
7
|
+
:verify_ssl => OpenSSL::SSL::VERIFY_PEER,
|
8
|
+
:ssl_ca_file => File.join(File.dirname(__FILE__), 'cert')
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.get(url, headers={}, &block)
|
13
|
+
Request.execute(ssl_settings.merge(:method => :get, :url => url, :headers => headers), &block)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.post(url, payload, headers={}, &block)
|
17
|
+
Request.execute(ssl_settings.merge(:method => :post, :url => url, :payload => payload, :headers => headers), &block)
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.put(url, payload, headers={}, &block)
|
21
|
+
Request.execute(ssl_settings.merge(:method => :put, :url => url, :payload => payload, :headers => headers), &block)
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.delete(url, headers={}, &block)
|
25
|
+
Request.execute(ssl_settings.merge(:method => :delete, :url => url, :headers => headers), &block)
|
26
|
+
end
|
27
|
+
|
28
|
+
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 8
|
10
|
+
version: 1.3.8
|
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-
|
18
|
+
date: 2011-02-02 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- assets/fb_graph.ai
|
144
144
|
- assets/fb_graph.png
|
145
145
|
- fb_graph.gemspec
|
146
|
+
- lib/cert
|
146
147
|
- lib/fb_graph.rb
|
147
148
|
- lib/fb_graph/action.rb
|
148
149
|
- lib/fb_graph/album.rb
|
@@ -218,6 +219,7 @@ files:
|
|
218
219
|
- lib/fb_graph/venue.rb
|
219
220
|
- lib/fb_graph/video.rb
|
220
221
|
- lib/fb_graph/work.rb
|
222
|
+
- lib/restclient_with_ssl_support.rb
|
221
223
|
- spec/fake_json/albums/photos/matake_private.json
|
222
224
|
- spec/fake_json/albums/photos/post_with_valid_access_token.json
|
223
225
|
- spec/fake_json/applications/subscriptions/fb_graph_private.json
|
@@ -421,7 +423,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
421
423
|
requirements: []
|
422
424
|
|
423
425
|
rubyforge_project:
|
424
|
-
rubygems_version: 1.
|
426
|
+
rubygems_version: 1.5.0
|
425
427
|
signing_key:
|
426
428
|
specification_version: 3
|
427
429
|
summary: A full-stack Facebook Graph API wrapper in Ruby.
|