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: dc1ba11c168e37902b3ea59200a059f5ae7e190956a638e9abbdd09d917a73db
4
- data.tar.gz: 18023af36fe5d70d116456997d1294fa4c8f0dcb250904d5c10f50b04d7b14c4
3
+ metadata.gz: 90f5979e9db90f44925f11aa92d7fa675ec789ca9566c6fe4a05242e372efffc
4
+ data.tar.gz: a40a5b670b464532893c14577afb4f6c1b1f773754e921f1ab8c7cb43a51ac37
5
5
  SHA512:
6
- metadata.gz: 2c76e0bd05b3988dfec3d775565225753cdef53278b18d0ed62e7a62905d4733bb4191f5bdbbdd0b21f7d8d82decb70333fba2686eba986b286d52aec4542c42
7
- data.tar.gz: 5f91106efcf53fafc4a3827fa1086a23765e97fca686c23aaa8ac8bb92d4f9758868a06691a6992ef8e8a0148424134523d9fec32f96612befda9f6033ad8f11
6
+ metadata.gz: 530a4b7290fd4555457f2f04d56ac4989b61eef290daaf27df71f71907a94b7d339903ee4889abf0d4a847d96080e28aa0cfee2796e6d0ea0c162dced6cd0478
7
+ data.tar.gz: d21755276d9592685a7b65fa23bc047e27ef0b722f54cfc71f6ca744577c0ade72f04f7665b931b7553639e0c87cca9a2f680556cec036cd680ad8d6895bcf9f
@@ -26,7 +26,8 @@ module Brutalismbot
26
26
  max_time ||= Time.now.utc.to_i - lag
27
27
 
28
28
  # Get posts
29
- posts = @reddit.list(:new)
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) }
@@ -1,3 +1,5 @@
1
+ require "json"
2
+
1
3
  require "aws-sdk-s3"
2
4
 
3
5
  require "brutalismbot/reddit/post"
@@ -1,3 +1,4 @@
1
+ require "json"
1
2
  require "net/http"
2
3
 
3
4
  require "brutalismbot/logger"
@@ -1,3 +1,5 @@
1
+ require "json"
2
+
1
3
  require "aws-sdk-s3"
2
4
 
3
5
  require "brutalismbot/logger"
@@ -1,3 +1,4 @@
1
+ require "json"
1
2
  require "securerandom"
2
3
 
3
4
  require "aws-sdk-s3"
@@ -1,3 +1,3 @@
1
1
  module Brutalismbot
2
- VERSION = "1.4.2"
2
+ VERSION = "1.5.0"
3
3
  end
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.2
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-05 00:00:00.000000000 Z
11
+ date: 2020-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter