feed2gram 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24a46cff098342888e3997e1dadfc34a6e0526f979ea59b7b2e0687ecc1051e7
4
- data.tar.gz: 63f1559288645c2bb02ddfbe45aa6edd55e5f76437f582f8aec9a12a2c1630fe
3
+ metadata.gz: 3cafa61ecf677b96b07c3d83aa855d165dcbeb95c34c550b335ae605e6103734
4
+ data.tar.gz: 6bb6d2b824e81d738e28cdf143e4278a0979e1a40b03d064e04370478a12328a
5
5
  SHA512:
6
- metadata.gz: e5eb07918977ad2d034609efbc2372ce3af65f9d75ef6d3766a3eb5db938b955fa3ebe5828091ffc56d0179a138fd433b06d314b3f58e537c71edb5e25ce6ba1
7
- data.tar.gz: ad34cbae69b4148ecd5acb953018ef8bbd6c75e61e2fca50514f47a5ac31d061e167ed801e8182d5a735da93a91181b0a8f35175710203d7fa2e0f3a321f09ee
6
+ metadata.gz: 47f0207f0c8da0e90ef63b176f5a1c9bbff08d9da467028b58a1bb4a54177d2b72ce9a8419d0b00372e53b0ae4180051cd95cb69de0f2373b5b029db55581359
7
+ data.tar.gz: 98af19289a16b92af530000d32275aa5a471a70024c0fa88b7749bcb4e07046f2eafed9f041f9f35b3072af2e130c81ee403f7468a6400ea04926afc48be983b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [1.2.4]
2
+
3
+ * When uploads fail, output a message that includes the error code
4
+ (and the URL to look them up)
5
+
1
6
  ## [1.2.3]
2
7
 
3
8
  * Add a retry option after IG continues to fail to download videos correctly. See `RETRIES_AFTER_UPLOAD_TIMEOUT` (default 5 retries)
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
- # feed2gram
1
+ # feed2gram - Syndicate your site's photos, videos, and carousels to Instagram
2
+
3
+ **feed2gram is for automating Instagram posts, for posting to Threads, see
4
+ [feed2thread](https://github.com/searls/feed2thread)**
2
5
 
3
6
  I've joined the [POSSE](https://indieweb.org/POSSE) and publish as much as I can
4
7
  to [justin.searls.co](https://justin.searls.co) and syndicate it elsewhere. I'm
@@ -169,7 +172,7 @@ We publish a Docker image [using GitHub
169
172
  actions](https://github.com/searls/feed2gram/blob/main/.github/workflows/main.yml)
170
173
  tagged as `latest` for every new commit to the `main` branch, as well as with a
171
174
  release tag tracking every release of the gem on
172
- [rubygems.org](https://rubygems.org). The images are hosted [here on GitHub's
175
+ [rubygems.org](https://rubygems.org/gems/feed2gram). The images are hosted [here on GitHub's
173
176
  container
174
177
  registry](https://github.com/searls/feed2gram/pkgs/container/feed2gram)
175
178
 
@@ -111,7 +111,7 @@ module Feed2Gram
111
111
  end
112
112
 
113
113
  res = Http.get("/#{container_id}", {
114
- fields: "status_code",
114
+ fields: "status_code,status",
115
115
  access_token: config.access_token
116
116
  })
117
117
  puts "Upload status #{res[:status_code]} after waiting #{wait_attempts * SECONDS_PER_UPLOAD_CHECK} seconds for IG to download #{url}" if options.verbose
@@ -121,7 +121,13 @@ module Feed2Gram
121
121
  wait_attempts += 1
122
122
  sleep SECONDS_PER_UPLOAD_CHECK
123
123
  else
124
- warn "Unexpected status code (#{res[:status_code]}) uploading: #{url}"
124
+ warn <<~MSG
125
+ Unexpected status code (#{res[:status_code]}) uploading: #{url}"
126
+
127
+ API sent back this: #{res[:status]}
128
+
129
+ Error codes can be looked up here: https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/error-codes/
130
+ MSG
125
131
  break
126
132
  end
127
133
  end
@@ -1,3 +1,3 @@
1
1
  module Feed2Gram
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feed2gram
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
- rubygems_version: 3.5.6
80
+ rubygems_version: 3.5.14
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Reads an Atom feed and posts its entries to Instagram