fbk 1.3.3 → 1.4.0

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fbk.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47d860a7769e7c58115d8cc37c9de3fbf56dd90d
4
- data.tar.gz: e9f6fe81652f6677a879ec1fb99a06dbdedfa448
3
+ metadata.gz: 01ab722242c0861975b8db3943af884bec6cf8dc
4
+ data.tar.gz: 84f9c6aab8fa103d645e0a8f9fc07de58fa54c4b
5
5
  SHA512:
6
- metadata.gz: d1b2c083d88c478b74ec82e015975e2d4dcce9c5bbcc7812c4efaee222b53e55cbab4388147b6191636ad7de9b9421bee6603012142aac624b8e98b02b8a7d18
7
- data.tar.gz: 4944f55d6ac6791b6346dee4ca9e653f56adff95189af2fb88390b0c0cd869b9dd09395d2fd95600b558a36c8f4e2db14225b949ed2b6c508939f1ba07114d4d
6
+ metadata.gz: e87dad6e62f7ff02acda7d53149de43c777c66c83e95038926692c93defcee0630b132ca8fe89dab40854d75c4b569fcdc9ed947682ce4ea3a20311a8b01c01d
7
+ data.tar.gz: fc631ea4323e36165f43b6b7b7f8fcb53bb3088621bf7307134025130a3c8e2298d12d3b0959b9a8fee806f37e20503dc31f0c2380673b458fb648d6f0e67bb7
data/lib/fbk.rb CHANGED
@@ -7,7 +7,7 @@ module FBK
7
7
  Error = Class.new(RuntimeError)
8
8
 
9
9
  FACEBOOK_URL = "https://facebook.com"
10
- FACEBOOK_GRAPH_URL = "https://graph.facebook.com/v2.0"
10
+ FACEBOOK_GRAPH_URL = "https://graph.facebook.com/v2.6"
11
11
 
12
12
  attr_writer :client_id, :client_secret
13
13
 
@@ -75,8 +75,8 @@ module FBK
75
75
  def get(endpoint)
76
76
  response = Nestful.get(endpoint).body
77
77
  JSON.parse(response, symbolize_names: true)
78
- rescue Nestful::BadRequest
79
- raise FBK::Error
78
+ rescue Nestful::BadRequest => error
79
+ raise FBK::Error.new(error.message)
80
80
  end
81
81
 
82
82
  def params_to_query_string(params)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Gimenez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-18 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nestful