reddit_bot 1.6.3 → 1.6.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 +2 -2
- data/examples/largeimages/Gemfile.lock +7 -6
- 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: 05b83643d990066b8e6a3922b71f065aabf02fa3
|
4
|
+
data.tar.gz: 23f386f95b1d0490e37c316b2823570f18114368
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ce7a59815a001eb2808edfbc3ca1672eaf17cd271d15c7621bca3621ca320baa0174567b0ac539f761f5bd9271a18e34f7e10a41598475028aa3bafc1486918
|
7
|
+
data.tar.gz: f0c4ee4fe8136d20461cb80fcbe95f08098ba72e545a02a430f675e7a17b08d8225a31dcf369ad93d1f9e90e0c179a978bd7f102dff910197c61c7b9fd188be8
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
gem "json"
|
4
4
|
|
5
|
-
gem "nethttputils", git: "git@github.com:Nakilon/nethttputils.git"
|
5
|
+
gem "nethttputils", git: "git@github.com:Nakilon/nethttputils.git", tag: "v0.1.2.1"
|
6
6
|
|
7
|
-
gem "reddit_bot", "~>1.6.
|
7
|
+
gem "reddit_bot", "~>1.6.3"
|
8
8
|
gem "nokogiri"
|
9
9
|
|
10
10
|
gem "imgur2array", git: "git@github.com:Nakilon/imgur2array.git"
|
@@ -15,15 +15,16 @@ GIT
|
|
15
15
|
|
16
16
|
GIT
|
17
17
|
remote: git@github.com:Nakilon/imgur2array.git
|
18
|
-
revision:
|
18
|
+
revision: 9d5e5c3d442e85ff13938b0e614e67ba03581c76
|
19
19
|
specs:
|
20
|
-
imgur2array (0.0.3.
|
20
|
+
imgur2array (0.0.3.2)
|
21
21
|
|
22
22
|
GIT
|
23
23
|
remote: git@github.com:Nakilon/nethttputils.git
|
24
|
-
revision:
|
24
|
+
revision: 27777142af099556394691c772a33cf5f6548c4f
|
25
|
+
tag: v0.1.2.1
|
25
26
|
specs:
|
26
|
-
nethttputils (0.1.2.
|
27
|
+
nethttputils (0.1.2.1)
|
27
28
|
|
28
29
|
GIT
|
29
30
|
remote: git@github.com:Nakilon/url2dimensions.git
|
@@ -90,7 +91,7 @@ GEM
|
|
90
91
|
mini_portile2 (~> 2.1.0)
|
91
92
|
os (0.9.6)
|
92
93
|
public_suffix (2.0.5)
|
93
|
-
reddit_bot (1.6.
|
94
|
+
reddit_bot (1.6.3)
|
94
95
|
json
|
95
96
|
rly (0.2.3)
|
96
97
|
signet (0.8.1)
|
@@ -112,7 +113,7 @@ DEPENDENCIES
|
|
112
113
|
json
|
113
114
|
nethttputils!
|
114
115
|
nokogiri
|
115
|
-
reddit_bot (~> 1.6.
|
116
|
+
reddit_bot (~> 1.6.3)
|
116
117
|
url2dimensions!
|
117
118
|
|
118
119
|
BUNDLED WITH
|
data/lib/reddit_bot.rb
CHANGED
@@ -117,7 +117,8 @@ module RedditBot
|
|
117
117
|
result = cache.call(args){ json *args }
|
118
118
|
fail if result.keys != %w{ kind data }
|
119
119
|
fail if result["kind"] != "Listing"
|
120
|
-
fail result["data"].keys.inspect
|
120
|
+
fail result["data"].keys.inspect unless result["data"].keys == %w{ after dist modhash whitelist_status children before } ||
|
121
|
+
result["data"].keys == %w{ modhash dist children after before }
|
121
122
|
result["data"]["children"].each do |post|
|
122
123
|
fail "unknown type post['kind']: #{post["kind"]}" unless post["kind"] == "t3"
|
123
124
|
e << post["data"]
|
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.6.
|
4
|
+
version: 1.6.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-04-
|
11
|
+
date: 2018-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|