brutalismbot 1.4.2 → 1.5.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90f5979e9db90f44925f11aa92d7fa675ec789ca9566c6fe4a05242e372efffc
|
4
|
+
data.tar.gz: a40a5b670b464532893c14577afb4f6c1b1f773754e921f1ab8c7cb43a51ac37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 530a4b7290fd4555457f2f04d56ac4989b61eef290daaf27df71f71907a94b7d339903ee4889abf0d4a847d96080e28aa0cfee2796e6d0ea0c162dced6cd0478
|
7
|
+
data.tar.gz: d21755276d9592685a7b65fa23bc047e27ef0b722f54cfc71f6ca744577c0ade72f04f7665b931b7553639e0c87cca9a2f680556cec036cd680ad8d6895bcf9f
|
data/lib/brutalismbot/client.rb
CHANGED
@@ -26,7 +26,8 @@ module Brutalismbot
|
|
26
26
|
max_time ||= Time.now.utc.to_i - lag
|
27
27
|
|
28
28
|
# Get posts
|
29
|
-
|
29
|
+
opts = {q:"self:no AND nsfw:no", restrict_sr: true, sort: "new"}
|
30
|
+
posts = @reddit.list(:search, **opts).all
|
30
31
|
|
31
32
|
# Filter, sort, and limit
|
32
33
|
posts = posts.select{|post| post.created_between?(min_time, max_time) }
|
data/lib/brutalismbot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brutalismbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Mancevice
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twitter
|