rails-pinterest 0.2.5 → 0.2.6

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: c2511d23d52e43b2316914cd9ae42d5420a9677471f417c3d725c36c58abaabe
4
- data.tar.gz: 17ca93046f01b103c386a01fcf3048da5736f14168cb6f9e27ddb4a3f554d5e9
3
+ metadata.gz: b5241dc461ae0e5ff783ee12bd61c843945c177c4b952a5abb2f1c973c3326fc
4
+ data.tar.gz: fee7c390da7e21bd343fc35266de5ea2446c4e7dec5ec84ada5fb094a8243d25
5
5
  SHA512:
6
- metadata.gz: dd55a3c51bb89ea98999bc7b9c11c79aeb2fc5ba03f9fbc0fe69dcc4b0fd2156725a57261fea987450329e7242c4841c820c300a290f04f3db11ca9104fc4a9a
7
- data.tar.gz: 2cff0ae0bfe401e66c8445f8aef9222576c69d6227f05b2e229e9c043df2129b36bb1e71f43545e8b2f6ac4874135b2d0f73b4c89d22e92a9557a4de92b4c1e1
6
+ metadata.gz: 7acfcca9742594f95e831ce2d61cf0944c65d116c552ed958a25a82c434e870e14963bc9f9c8753315665fa6de1b0104f26d1e958fd0270619bbc0a5525ec6bb
7
+ data.tar.gz: c806f17d45a9f1866f8e16ae018324a2a2b783b3644a09ed6a4f4ff5c2f3262ec5c8f0f57d1c3ebed05e0cd4469d8346f07b4403fbc9a0b1a46926f2b3f4ed77
data/CHANGELOG.md CHANGED
@@ -61,4 +61,7 @@ params = {
61
61
  metric_types: ["IMPRESSION", "OUTBOUND_CLICK", "PIN_CLICK", "SAVE", "SAVE_RATE", "VIDEO_MRC_VIEW", "VIDEO_10S_VIEW", "QUARTILE_95_PERCENT_VIEW", "VIDEO_V50_WATCH_TIME", "VIDEO_START", "VIDEO_AVG_WATCH_TIME", "TOTAL_COMMENTS", "TOTAL_REACTIONS"]
62
62
  }
63
63
  response = client.pins.get_multiple_pin_analytics(ids: params[:pin_ids], start_date: params[:start_date], end_date: params[:end_date], metric_types: params[:metric_types], parameters: {})
64
- ```
64
+ ```
65
+
66
+ ## [0.2.6] - 2024-06-22
67
+ - Added retries to the Faraday connections
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails-pinterest (0.2.5)
4
+ rails-pinterest (0.2.6)
5
5
  faraday (>= 1)
6
6
  faraday-multipart (>= 1)
7
7
 
@@ -56,6 +56,9 @@ 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]
59
62
  f.request(:multipart) if multipart
60
63
  end
61
64
  end
@@ -63,6 +66,9 @@ module Pinterest
63
66
  def oauth_conn(multipart: false)
64
67
  Faraday.new do |f|
65
68
  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]
66
72
  f.request :url_encoded
67
73
  f.adapter Faraday.default_adapter
68
74
  end
@@ -1,3 +1,3 @@
1
1
  module Pinterest
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
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.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Lee
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-10 00:00:00.000000000 Z
11
+ date: 2024-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday