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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/x/media_uploader.rb +1 -1
- data/lib/x/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d12a0c6ddac3958b996b0bb5fc2a0a9893d0c85fa456d9d3a95bb5a9b4a39291
|
4
|
+
data.tar.gz: 771bc16ba8c1b1492268be7e83a9a69a3291d45863dd309fbdc083969a58d5da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0c951541a6a4fdcb6eb7cf68135ecc8177a91af6beb1b823cd80495c54fd7bff8571b1644ff66553e65a4f386fb4e1ef5acc0984621d2f68e1c8960505d1708
|
7
|
+
data.tar.gz: 6de5b4c4c7350dad50704727c1947705c590adc0729acb91c63b219b35b5ea51feba448d799b74ec4c0102fdac0896b91eafe79e9ecfa42ebae40efa55873ae5
|
data/CHANGELOG.md
CHANGED
data/lib/x/media_uploader.rb
CHANGED
@@ -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"]["
|
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
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.
|
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-
|
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.
|
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.
|