pinterest-api 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8b746902d0ccc613ab621389e08fd801d98a7a7
4
- data.tar.gz: 01b1b5af4d0f24b3f5ef914c9a0098b0fd6ff1af
3
+ metadata.gz: 23947737fa04298dcb3b66c9ce5859e072ce6c05
4
+ data.tar.gz: 58e70ea1325e5a89b08655f5816623c04ae27584
5
5
  SHA512:
6
- metadata.gz: 8fe9a941fc906a504a11148ddcf93fb8197860e31f4744691546b3017dd92e38007876ecaa9f310d7f899316e88b60cfe1d5b4064a365948ec2c09d5f89a425b
7
- data.tar.gz: 1268820c0bab13faa08d5fe600ba5561b205c5bf56ad04912028add150975102df8d4881b02b6cdcdba3cace4fcb0380639363620c53b22e0904e40c10516a1f
6
+ metadata.gz: c59be570e75c7621ddf28fc114a6f41379b183bdbdc06ee7785a400da7ef88377fba90a2e7fb3bcddefdde2c27971743e36fa6db9b0dddc21ba7a1b7a0defc7d
7
+ data.tar.gz: 292bd49abfedb82e14112704c861d54b9b08ee92e9d7370f64c41619b0e51e8cb04220fdb020eddfb1c89ee71932368fdd4d893dbfc8b2827fcc88cea883bc11
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Pinterest
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/pinterest-api.svg)](https://badge.fury.io/rb/pinterest-api)
3
4
  [![Code Climate](https://codeclimate.com/github/realadeel/pinterest-api/badges/gpa.svg)](https://codeclimate.com/github/realadeel/pinterest-api)
4
5
  [![Build Status](https://semaphoreci.com/api/v1/projects/17e4870c-9339-42e9-b2a1-8a7ca1d02bc2/558393/badge.svg)](https://semaphoreci.com/realdeal/pinterest-api)
5
6
 
@@ -9,9 +10,9 @@ This gem uses Faraday and Hashie to make requests and parse the responses.
9
10
 
10
11
  ## Usage
11
12
 
12
- Obtain an access token from Pinterest. You can generate one [here](https://developers.pinterest.com/docs/api/access_token/).
13
+ Obtain an access token from Pinterest. You can generate one [here](https://developers.pinterest.com/tools/access_token/).
13
14
 
14
- $ gem install pinterest
15
+ $ gem install pinterest-api
15
16
 
16
17
  ```ruby
17
18
  require 'pinterest-api'
@@ -92,13 +93,13 @@ https://github.com/intridea/omniauth
92
93
 
93
94
  ## Known Issues
94
95
 
95
- The gem is currently under active development.
96
+ The gem is currently under active development. The following issues cause the test specs to fail, though it's not clear to me that these issues are not with the Pinterest API itself.
96
97
  * PATCH requests not working, endpoint path is not being appended to base
98
+ * POST/DELETE requests for following/unfollowing interests respectively are not working
97
99
 
98
100
  ## TODO
99
101
 
100
102
  * Pagination
101
- * OAuth
102
103
  * document Mash response methods
103
104
 
104
105
  ## Contributing
@@ -54,11 +54,13 @@ module Pinterest
54
54
  delete("me/following/interests/#{interest_id}")
55
55
  end
56
56
 
57
- def search_pins(options={})
57
+ def get_pins(options={})
58
+ options[:query] ||= '*'
58
59
  get('me/search/pins', options)
59
60
  end
60
61
 
61
- def search_boards(options={})
62
+ def get_boards(options={})
63
+ options[:query] ||= '*'
62
64
  get('me/search/boards', options)
63
65
  end
64
66
 
@@ -1,3 +1,3 @@
1
1
  module Pinterest
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinterest-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adeel Ahmad
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-03 00:00:00.000000000 Z
11
+ date: 2015-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler