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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 488688c825b8ab8f8f3e7ec10f0608dd3a3ee960
4
- data.tar.gz: b91ae3dc0b8f4663e0b90b610a81f78e81d27a50
3
+ metadata.gz: a923835e5dce5295e1f05fd79ae40ed2f9541bc9
4
+ data.tar.gz: 72bbf9aec3c05fe6ccd222e35ebf5bb725206385
5
5
  SHA512:
6
- metadata.gz: afb7b570aeddc5ce5115ea06d7d89c274eccedc3e2d1b0e8391855a6efcb53b5b21801defc133240f99df5ab619670ea3a9cc6bb37a329306ebe52442eda3c85
7
- data.tar.gz: 9f406e4e8b3546925b164ac94bb1aaba1b0bac074d5243a66429925897901ae34b4181a5aa475f898424c32ed70fcfad3772a0a555b9a6f2b7cbe5f50c72bf98
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.8"
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: 78fdf98f04a1303430365eff47674c699eae3602
12
- tag: v0.0.2.8
11
+ revision: 5eca5d843515d0502464194be42af24c0932a434
12
+ tag: v0.0.2.9
13
13
  specs:
14
- imgur2array (0.0.2.8)
14
+ imgur2array (0.0.2.9)
15
15
 
16
16
  GIT
17
17
  remote: git@github.com:Nakilon/nethttputils.git
@@ -1,4 +1,4 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "reddit_bot", "~>1.5.2"
3
+ gem "reddit_bot", "~>1.5.3"
4
4
  gem "nethttputils", git: "git@github.com:Nakilon/nethttputils.git", tag: "v0.1.0.1"
@@ -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.2)
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.2)
20
+ reddit_bot (~> 1.5.3)
21
21
 
22
22
  BUNDLED WITH
23
23
  1.16.0
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RedditBot
2
- VERSION = "1.5.3" # :nodoc:
2
+ VERSION = "1.5.4" # :nodoc:
3
3
  end
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.3
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-23 00:00:00.000000000 Z
11
+ date: 2018-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json