x 0.14.0 → 0.14.1

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: e7f8185b86c61142faad23edbd1563f5a10263d7f47114d5f31a83e93af805dd
4
- data.tar.gz: 8df083a42c16683e27d4face3445e3a835663f11600751024a519c3a658ed0ed
3
+ metadata.gz: d12a0c6ddac3958b996b0bb5fc2a0a9893d0c85fa456d9d3a95bb5a9b4a39291
4
+ data.tar.gz: 771bc16ba8c1b1492268be7e83a9a69a3291d45863dd309fbdc083969a58d5da
5
5
  SHA512:
6
- metadata.gz: 17dda35c335587d569dc1d41c8fe3ca2221e8e1d3b1742a443559c7d558b149e92229d7d767e64bf4a12982f4a3b4d2afb002d9d34db819216e1934eaf48391f
7
- data.tar.gz: 990d9afb8e30cb0c998765525b47c4bf44779f96f4fbd006903fc9b3fe655d0f50df8aa197c77d9ad05250ded0fc086bb768d4662d539490ab81804d2e86b5f0
6
+ metadata.gz: c0c951541a6a4fdcb6eb7cf68135ecc8177a91af6beb1b823cd80495c54fd7bff8571b1644ff66553e65a4f386fb4e1ef5acc0984621d2f68e1c8960505d1708
7
+ data.tar.gz: 6de5b4c4c7350dad50704727c1947705c590adc0729acb91c63b219b35b5ea51feba448d799b74ec4c0102fdac0896b91eafe79e9ecfa42ebae40efa55873ae5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## [0.14.1] - 2023-12-20
2
+ * Fix infinite loop when an upload fails (5dfc604)
3
+
1
4
  ## [0.14.0] - 2023-12-08
2
5
  * Allow passing custom objects per-request (768889f)
3
6
 
@@ -40,7 +40,7 @@ module X
40
40
  upload_client = client.dup.tap { |c| c.base_url = "https://upload.twitter.com/1.1/" }
41
41
  loop do
42
42
  status = upload_client.get("media/upload.json?command=STATUS&media_id=#{media["media_id"]}")
43
- return status if status["processing_info"]["state"] == "succeeded"
43
+ return status if !status["processing_info"] || %w[failed succeeded].include?(status["processing_info"]["state"])
44
44
 
45
45
  sleep status["processing_info"]["check_after_secs"].to_i
46
46
  end
data/lib/x/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require "rubygems/version"
2
2
 
3
3
  module X
4
- VERSION = Gem::Version.create("0.14.0")
4
+ VERSION = Gem::Version.create("0.14.1")
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: x
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Berlin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-08 00:00:00.000000000 Z
11
+ date: 2023-12-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.4.22
85
+ rubygems_version: 3.5.1
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: A Ruby interface to the X API.