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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +5 -2
- data/lib/feed2gram/publishes_posts.rb +8 -2
- data/lib/feed2gram/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: 3cafa61ecf677b96b07c3d83aa855d165dcbeb95c34c550b335ae605e6103734
|
|
4
|
+
data.tar.gz: 6bb6d2b824e81d738e28cdf143e4278a0979e1a40b03d064e04370478a12328a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47f0207f0c8da0e90ef63b176f5a1c9bbff08d9da467028b58a1bb4a54177d2b72ce9a8419d0b00372e53b0ae4180051cd95cb69de0f2373b5b029db55581359
|
|
7
|
+
data.tar.gz: 98af19289a16b92af530000d32275aa5a471a70024c0fa88b7749bcb4e07046f2eafed9f041f9f35b3072af2e130c81ee403f7468a6400ea04926afc48be983b
|
data/CHANGELOG.md
CHANGED
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
|
|
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
|
data/lib/feed2gram/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
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
|