rails-pinterest 0.2.6 → 0.2.8

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
  SHA256:
3
- metadata.gz: b5241dc461ae0e5ff783ee12bd61c843945c177c4b952a5abb2f1c973c3326fc
4
- data.tar.gz: fee7c390da7e21bd343fc35266de5ea2446c4e7dec5ec84ada5fb094a8243d25
3
+ metadata.gz: 82a5d7d5f7a963ce0eb4d29f2a8527701e9f7141dc8a36b4063e7711a60e320c
4
+ data.tar.gz: '01800e69428a3ec50b27fd2b47e45258fcf007d5f34c5768207f2d4c4920712e'
5
5
  SHA512:
6
- metadata.gz: 7acfcca9742594f95e831ce2d61cf0944c65d116c552ed958a25a82c434e870e14963bc9f9c8753315665fa6de1b0104f26d1e958fd0270619bbc0a5525ec6bb
7
- data.tar.gz: c806f17d45a9f1866f8e16ae018324a2a2b783b3644a09ed6a4f4ff5c2f3262ec5c8f0f57d1c3ebed05e0cd4469d8346f07b4403fbc9a0b1a46926f2b3f4ed77
6
+ metadata.gz: 13d1f5b8f71fba0606e17f3e1b47e6c4edc9667e5928abcd2b523d29007d8f0a2a9155a4229a39adeac5f4625fd64c0a93b317f1a1174837a24ece35ad33f210
7
+ data.tar.gz: 31b36ff20226c59310b07585c1bc68fcce17206dc49d562d818cee22f1117205858c126a31b80d3a1a25d5f30d0482f2f066a4fc74983ac4363bb54002793676
data/CHANGELOG.md CHANGED
@@ -64,4 +64,10 @@ response = client.pins.get_multiple_pin_analytics(ids: params[:pin_ids], start_d
64
64
  ```
65
65
 
66
66
  ## [0.2.6] - 2024-06-22
67
- - Added retries to the Faraday connections
67
+ - Added retries to the Faraday connections
68
+
69
+ ## [0.2.7] - 2024-06-22
70
+ - Revert retries. Didn't work.
71
+
72
+ ## [0.2.8] - 2024-08-13
73
+ - Update list boards to include page_size and bookmark
data/Gemfile CHANGED
@@ -11,4 +11,5 @@ gem "dotenv", "~> 2.8.1"
11
11
  gem "rspec", "~> 3.12"
12
12
  gem "rubocop", "~> 1.50.2"
13
13
  gem "vcr", "~> 6.1.0"
14
- gem "webmock", "~> 3.18.1"
14
+ gem "webmock", "~> 3.18.1"
15
+ gem 'typhoeus'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails-pinterest (0.2.6)
4
+ rails-pinterest (0.2.8)
5
5
  faraday (>= 1)
6
6
  faraday-multipart (>= 1)
7
7
 
@@ -17,6 +17,8 @@ GEM
17
17
  rexml
18
18
  diff-lcs (1.5.0)
19
19
  dotenv (2.8.1)
20
+ ethon (0.16.0)
21
+ ffi (>= 1.15.0)
20
22
  faraday (2.7.11)
21
23
  base64
22
24
  faraday-net_http (>= 2.0, < 3.1)
@@ -24,6 +26,7 @@ GEM
24
26
  faraday-multipart (1.0.4)
25
27
  multipart-post (~> 2)
26
28
  faraday-net_http (3.0.2)
29
+ ffi (1.17.0-x86_64-darwin)
27
30
  hashdiff (1.0.1)
28
31
  json (2.6.3)
29
32
  multipart-post (2.3.0)
@@ -64,6 +67,8 @@ GEM
64
67
  parser (>= 3.2.1.0)
65
68
  ruby-progressbar (1.13.0)
66
69
  ruby2_keywords (0.0.5)
70
+ typhoeus (1.4.1)
71
+ ethon (>= 0.9.0)
67
72
  unicode-display_width (2.5.0)
68
73
  vcr (6.1.0)
69
74
  webmock (3.18.1)
@@ -82,6 +87,7 @@ DEPENDENCIES
82
87
  rake (~> 13.0)
83
88
  rspec (~> 3.12)
84
89
  rubocop (~> 1.50.2)
90
+ typhoeus
85
91
  vcr (~> 6.1.0)
86
92
  webmock (~> 3.18.1)
87
93
 
@@ -4,8 +4,12 @@ module Pinterest
4
4
  @client = client
5
5
  end
6
6
 
7
- def get_boards(parameters: {})
8
- @client.get(path: "/boards", parameters: parameters)
7
+ def get_boards(bookmark: nil, parameters: {})
8
+ if bookmark&.present?
9
+ @client.get(path: "/boards?page_size=100&bookmark=#{bookmark}", parameters: parameters)
10
+ else
11
+ @client.get(path: "/boards?page_size=100", parameters: parameters)
12
+ end
9
13
  end
10
14
 
11
15
  def create_board(parameters: {})
@@ -56,9 +56,6 @@ module Pinterest
56
56
  def conn(multipart: false)
57
57
  Faraday.new do |f|
58
58
  f.options[:timeout] = @request_timeout
59
- f.request :retry, max: 3, interval: 0.05,
60
- interval_randomness: 0.5, backoff_factor: 2,
61
- exceptions: [Faraday::ConnectionFailed, Errno::ECONNRESET]
62
59
  f.request(:multipart) if multipart
63
60
  end
64
61
  end
@@ -66,9 +63,6 @@ module Pinterest
66
63
  def oauth_conn(multipart: false)
67
64
  Faraday.new do |f|
68
65
  f.options[:timeout] = @request_timeout
69
- f.request :retry, max: 3, interval: 0.05,
70
- interval_randomness: 0.5, backoff_factor: 2,
71
- exceptions: [Faraday::ConnectionFailed, Errno::ECONNRESET]
72
66
  f.request :url_encoded
73
67
  f.adapter Faraday.default_adapter
74
68
  end
@@ -1,3 +1,3 @@
1
1
  module Pinterest
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-pinterest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Lee
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-22 00:00:00.000000000 Z
11
+ date: 2024-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1'
41
- description:
41
+ description:
42
42
  email:
43
43
  - donaldlee50@gmail.com
44
44
  executables: []
@@ -77,7 +77,7 @@ metadata:
77
77
  homepage_uri: https://github.com/royalgiant/rails-pinterest
78
78
  source_code_uri: https://github.com/royalgiant/rails-pinterest
79
79
  changelog_uri: https://github.com/royalgiant/rails-pinterest/blob/main/CHANGELOG.md
80
- post_install_message:
80
+ post_install_message:
81
81
  rdoc_options: []
82
82
  require_paths:
83
83
  - lib
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubygems_version: 3.2.3
96
- signing_key:
96
+ signing_key:
97
97
  specification_version: 4
98
98
  summary: Pinterest API + Ruby!
99
99
  test_files: []