reddit_bot 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/largeimages/Gemfile +1 -1
- data/examples/largeimages/Gemfile.lock +3 -3
- data/examples/realtimeww2/Gemfile +1 -1
- data/examples/realtimeww2/Gemfile.lock +2 -2
- data/lib/reddit_bot.rb +2 -1
- data/lib/reddit_bot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a923835e5dce5295e1f05fd79ae40ed2f9541bc9
|
4
|
+
data.tar.gz: 72bbf9aec3c05fe6ccd222e35ebf5bb725206385
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee1e05ae9fe6f118cef51d12477fe212199414f9d1583868a75cc3890912d4370f2a8764d119c40fbd0e5a2fdbe8c6cc45e6eb98ea895e9143f64845e45c9a89
|
7
|
+
data.tar.gz: c7146ba14d38b31565ba1dbe2884f0ffc336592962753fb38370a59a3420762d0dfeb620562b16f3c552e1f36b7bbdae23915293e23cd2bf580b63fd27afb0ff
|
@@ -7,7 +7,7 @@ gem "nethttputils", git: "git@github.com:Nakilon/nethttputils.git", tag: "v0.1.0
|
|
7
7
|
gem "reddit_bot", "~>1.5.2"
|
8
8
|
gem "nokogiri"
|
9
9
|
|
10
|
-
gem "imgur2array", git: "git@github.com:Nakilon/imgur2array.git", tag: "v0.0.2.
|
10
|
+
gem "imgur2array", git: "git@github.com:Nakilon/imgur2array.git", tag: "v0.0.2.9"
|
11
11
|
gem "fastimage", "~>1.7.0"
|
12
12
|
gem "url2dimensions", git: "git@github.com:Nakilon/url2dimensions.git", tag: "v0.0.0.4"
|
13
13
|
|
@@ -8,10 +8,10 @@ GIT
|
|
8
8
|
|
9
9
|
GIT
|
10
10
|
remote: git@github.com:Nakilon/imgur2array.git
|
11
|
-
revision:
|
12
|
-
tag: v0.0.2.
|
11
|
+
revision: 5eca5d843515d0502464194be42af24c0932a434
|
12
|
+
tag: v0.0.2.9
|
13
13
|
specs:
|
14
|
-
imgur2array (0.0.2.
|
14
|
+
imgur2array (0.0.2.9)
|
15
15
|
|
16
16
|
GIT
|
17
17
|
remote: git@github.com:Nakilon/nethttputils.git
|
@@ -9,7 +9,7 @@ GEM
|
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
json (2.1.0)
|
12
|
-
reddit_bot (1.5.
|
12
|
+
reddit_bot (1.5.3)
|
13
13
|
json
|
14
14
|
|
15
15
|
PLATFORMS
|
@@ -17,7 +17,7 @@ PLATFORMS
|
|
17
17
|
|
18
18
|
DEPENDENCIES
|
19
19
|
nethttputils!
|
20
|
-
reddit_bot (~> 1.5.
|
20
|
+
reddit_bot (~> 1.5.3)
|
21
21
|
|
22
22
|
BUNDLED WITH
|
23
23
|
1.16.0
|
data/lib/reddit_bot.rb
CHANGED
@@ -130,6 +130,7 @@ module RedditBot
|
|
130
130
|
|
131
131
|
# :yields: JSON objects: ["data"] part of post or self.post, top level comment (["children"] element)
|
132
132
|
def each_new_post_with_top_level_comments
|
133
|
+
# TODO add keys assertion like in method above?
|
133
134
|
json(:get, "/r/#{@subreddit}/new")["data"]["children"].each do |post|
|
134
135
|
fail "unknown type post['kind']: #{post["kind"]}" unless post["kind"] == "t3"
|
135
136
|
t = json :get, "/comments/#{post["data"]["id"]}", depth: 1, limit: 100500#, sort: "top"
|
@@ -204,7 +205,7 @@ module RedditBot
|
|
204
205
|
tap do
|
205
206
|
response = _resp *args
|
206
207
|
case response.code
|
207
|
-
when "502", "503", "520", "500", "521", "504", "400", "522"
|
208
|
+
when "502", "503", "520", "500", "521", "504", "400", "522", "504"
|
208
209
|
puts "LOL #{response.code} at #{Time.now}?"
|
209
210
|
p args
|
210
211
|
sleep 60
|
data/lib/reddit_bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reddit_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Maslov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|