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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d49d9769852f275c7f19e57657849f499588ec3a
4
- data.tar.gz: 2459d2b20d46c3855f8145630a502093b7f13e1e
3
+ metadata.gz: c9fe401e7fa3a403a2c276a8a9fe37fbffe8d46e
4
+ data.tar.gz: 3f33f456f87949f8011d63bc0e8775e0ad032fc8
5
5
  SHA512:
6
- metadata.gz: 1d3e5dcb3733c164b067a6e091ddf16cceb158b8aecdf38d04fc08b4c285c2d5e935562cd7ebd7805f7ec99edd62cf6779a3d65af0f27665f71604ee2397e496
7
- data.tar.gz: dab14e2a4369de529477122c3da9022b72ef91fcd8f480abe1c5a726273bf0713c76515fe0c0e81d46da188a585410e23f1383109d017de29d9dec9bc4b3e830
6
+ metadata.gz: ac3f31a9303dd9b9392dbed30f50e448673de69cd822144d5b922ba84b0d93e39f97c1d2f1ebe8d6e2cf422773a81710e71d1a1cdd93daf2178229af31149b12
7
+ data.tar.gz: 7cbd0088c5a9ab734aa29a96544c743a36bc35400d0511189f68856fa4be1b44a3f6c246cce6cd13da858e377d2404a49bd65a08f0dd688f8dc98a96db33fd4d
@@ -1,4 +1,4 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "reddit_bot", "~>1.3.0"
4
- gem "nethttputils", git: "git@github.com:Nakilon/nethttputils.git", tag: "v0.0.1.1"
3
+ gem "reddit_bot", "~>1.6.8"
4
+ gem "nethttputils"
@@ -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
- reddit_bot (1.3.0)
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
- nethttputils!
20
- reddit_bot (~> 1.3.0)
14
+ reddit_bot (~> 1.6.8)
21
15
 
22
16
  BUNDLED WITH
23
- 1.13.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
- catch(:"404"){ JSON.parse NetHTTPUtils.request_data File.read "gas.url" } or raise(JSON::ParserError)
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: b22cb9f103d474742f773b9434747f9cf5a09ed0
3
+ revision: 8c829c76ede9734a51e7e416d9cd309dc28dc9d8
4
4
  specs:
5
- directlink (0.0.3.0)
5
+ directlink (0.0.4.4)
6
+ addressable
6
7
  fastimage (~> 2.1.3)
7
- nethttputils (~> 0.2.4.0)
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
@@ -1,3 +1,3 @@
1
1
  module RedditBot
2
- VERSION = "1.6.8" # :nodoc:
2
+ VERSION = "1.6.9" # :nodoc:
3
3
  end
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", "~> 0.2.4.1"
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.8
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-09-14 00:00:00.000000000 Z
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.4.1
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.4.1
40
+ version: 0.2.5.1
41
41
  description: better than PRAW
42
42
  email:
43
43
  - nakilon@gmail.com