pinterest_api 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 647c5fe3279979b79438dd6839183ceb986310bc
4
- data.tar.gz: b80123ad45ec43eb7d7555c3e1d1ca0ea9bb9fc9
3
+ metadata.gz: ee5c2f5fa86b14fd9e1f7dded1dadd232b72ba3d
4
+ data.tar.gz: d459c7933936548a3e2e18272301b716524b38f6
5
5
  SHA512:
6
- metadata.gz: ed373b6c456bfcf008b7e184eb8fa5cee5174550c6d6ae1ebe99fa044728a4b71fbb41be7a73bd0b70873ed93d511aacc69d8f2871af547de26acb95dba9fc8a
7
- data.tar.gz: 9243e7593b5c4c990f7ba3db2be044cb1ad4a213eff0144a41588ea4f18599f67e2f2e1d3549f4ae21e86edba5ad96c68ddc34b0989d45e18cae8a7a567a2b4d
6
+ metadata.gz: 5508366d211505d61de7439643b2d92ad415d456dd8576cdce6310ce692962efa746b4009c5c5ea4dfab9ea1e9f523df92ad340714b751c979f4f55f79c70d0b
7
+ data.tar.gz: 526e1d1d5db33b321445b395422816a25d9ed5c1ecf919ccc12244ebb0da10792c4714aa48cbce9674acb505260e28a9ce4529861e667175d9cc425a4e1f07e1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pinterest_api (0.0.1)
4
+ pinterest_api (0.0.2)
5
5
  rest-client (~> 0)
6
6
 
7
7
  GEM
@@ -21,18 +21,16 @@ module PinterestApi
21
21
  private
22
22
 
23
23
  def get(path, parameters = {})
24
- parameters.merge!(access_token: @access_token)
25
- JSON.parse RestClient.get(api_url(path), :params => parameters)
24
+ JSON.parse RestClient.get(api_url(path, @access_token), :params => parameters)
26
25
  end
27
26
 
28
27
  def post(path, parameters = {})
29
- parameters.merge!(access_token: @access_token)
30
- JSON.parse RestClient.post(api_url(path), parameters)
28
+ JSON.parse RestClient.post(api_url(path, @access_token), parameters)
31
29
  end
32
30
 
33
- def api_url(path)
31
+ def api_url(path, token)
34
32
  path = path.gsub /^\//, ''
35
- "#{API_URL}#{path}"
33
+ "#{API_URL}#{path}?access_token=#{token}"
36
34
  end
37
35
 
38
36
  end
@@ -1,3 +1,3 @@
1
1
  module PinterestApi
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinterest_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Gonzalez