reddit_bot 1.6.8 → 1.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/councilofricks/Gemfile +2 -2
- data/examples/councilofricks/Gemfile.lock +5 -11
- data/examples/councilofricks/main.rb +8 -3
- data/examples/largeimages/Gemfile.lock +7 -3
- data/examples/largeimages/main.rb +2 -0
- data/lib/reddit_bot/version.rb +1 -1
- data/reddit_bot.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9fe401e7fa3a403a2c276a8a9fe37fbffe8d46e
|
4
|
+
data.tar.gz: 3f33f456f87949f8011d63bc0e8775e0ad032fc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac3f31a9303dd9b9392dbed30f50e448673de69cd822144d5b922ba84b0d93e39f97c1d2f1ebe8d6e2cf422773a81710e71d1a1cdd93daf2178229af31149b12
|
7
|
+
data.tar.gz: 7cbd0088c5a9ab734aa29a96544c743a36bc35400d0511189f68856fa4be1b44a3f6c246cce6cd13da858e377d2404a49bd65a08f0dd688f8dc98a96db33fd4d
|
@@ -1,23 +1,17 @@
|
|
1
|
-
GIT
|
2
|
-
remote: git@github.com:Nakilon/nethttputils.git
|
3
|
-
revision: 5642bf7ecde4b3ecc55423b9ea9957828a9cb2f9
|
4
|
-
tag: v0.0.1.1
|
5
|
-
specs:
|
6
|
-
nethttputils (0.0.1.1)
|
7
|
-
|
8
1
|
GEM
|
9
2
|
remote: https://rubygems.org/
|
10
3
|
specs:
|
11
4
|
json (2.1.0)
|
12
|
-
|
5
|
+
nethttputils (0.2.4.2)
|
6
|
+
reddit_bot (1.6.8)
|
13
7
|
json
|
8
|
+
nethttputils (~> 0.2.4.1)
|
14
9
|
|
15
10
|
PLATFORMS
|
16
11
|
ruby
|
17
12
|
|
18
13
|
DEPENDENCIES
|
19
|
-
|
20
|
-
reddit_bot (~> 1.3.0)
|
14
|
+
reddit_bot (~> 1.6.8)
|
21
15
|
|
22
16
|
BUNDLED WITH
|
23
|
-
1.
|
17
|
+
1.16.1
|
@@ -9,10 +9,15 @@ require "csv"
|
|
9
9
|
|
10
10
|
ignored = []
|
11
11
|
loop do
|
12
|
-
Hearthbeat.beat "u_FlairMoTron_r_CouncilOfRicks", 310 unless Gem::Platform.local.os == "darwin"
|
13
|
-
|
14
12
|
names, flairs = begin
|
15
|
-
|
13
|
+
JSON.load begin
|
14
|
+
NetHTTPUtils.request_data File.read "gas.url"
|
15
|
+
rescue NetHTTPUtils::Error => e
|
16
|
+
fail e unless [404, 500].include? e.code
|
17
|
+
puts "smth wrong with GAS script"
|
18
|
+
sleep 60
|
19
|
+
retry
|
20
|
+
end
|
16
21
|
rescue JSON::ParserError
|
17
22
|
puts "smth wrong with GAS script"
|
18
23
|
sleep 60
|
@@ -1,10 +1,13 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git@github.com:Nakilon/directlink.git
|
3
|
-
revision:
|
3
|
+
revision: 8c829c76ede9734a51e7e416d9cd309dc28dc9d8
|
4
4
|
specs:
|
5
|
-
directlink (0.0.
|
5
|
+
directlink (0.0.4.4)
|
6
|
+
addressable
|
6
7
|
fastimage (~> 2.1.3)
|
7
|
-
|
8
|
+
kramdown
|
9
|
+
nokogiri
|
10
|
+
reddit_bot (~> 1.6.7)
|
8
11
|
|
9
12
|
GIT
|
10
13
|
remote: git@github.com:Nakilon/gcplogger.git
|
@@ -68,6 +71,7 @@ GEM
|
|
68
71
|
googleauth (>= 0.5.1, < 0.7)
|
69
72
|
json (2.1.0)
|
70
73
|
jwt (2.1.0)
|
74
|
+
kramdown (1.17.0)
|
71
75
|
little-plugger (1.1.4)
|
72
76
|
logging (2.2.2)
|
73
77
|
little-plugger (~> 1.1)
|
@@ -97,6 +97,7 @@ loop do
|
|
97
97
|
DirectLink url, 60
|
98
98
|
rescue SocketError,
|
99
99
|
Net::OpenTimeout,
|
100
|
+
Errno::ECONNRESET,
|
100
101
|
NetHTTPUtils::Error,
|
101
102
|
FastImage::UnknownImageType,
|
102
103
|
FastImage::ImageFetchFailure,
|
@@ -106,6 +107,7 @@ loop do
|
|
106
107
|
end
|
107
108
|
logger.info "DirectLink: %p" % t
|
108
109
|
tt = t.is_a?(Array) ? t : [t]
|
110
|
+
next logger.error "probably crosspost of a self post: http://redd.it/#{id}" if tt.empty?
|
109
111
|
unless min_resolution <= tt.first.width * tt.first.height
|
110
112
|
next logger.debug "skipped low resolution #{source}"
|
111
113
|
end
|
data/lib/reddit_bot/version.rb
CHANGED
data/reddit_bot.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
# spec.require_paths = ["lib"]
|
16
16
|
|
17
17
|
spec.add_runtime_dependency "json"
|
18
|
-
spec.add_runtime_dependency "nethttputils", "~>
|
18
|
+
spec.add_runtime_dependency "nethttputils", "~>0.2.5.1"
|
19
19
|
# spec.add_development_dependency "bundler", "~> 1.11"
|
20
20
|
# spec.add_development_dependency "rake", "~> 10.0"
|
21
21
|
# spec.add_development_dependency "rspec", "~> 3.0"
|
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.9
|
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-
|
11
|
+
date: 2018-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.2.
|
33
|
+
version: 0.2.5.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.2.
|
40
|
+
version: 0.2.5.1
|
41
41
|
description: better than PRAW
|
42
42
|
email:
|
43
43
|
- nakilon@gmail.com
|