bad_pigeon 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 342303be8c8d86ebacfe718abecf55e553e1e9528540bac71d82d7f5729e6f84
4
- data.tar.gz: cae73cef84dd9267c5cd79946afc129ccd93c8dcae62127e8c24b4ee88a8c6e6
3
+ metadata.gz: c3f86a627c1ab2f039167161fe3ecfbeb3db6d96a925673c23165cf74a3cc54b
4
+ data.tar.gz: f43ac43250395cc7f9200c5cc8bcc2bb2596827aac61f88110e078ae0210fa64
5
5
  SHA512:
6
- metadata.gz: d648e2cafc7d9f6b71650dfe283a57dc2a569d9b6da42938b38050559b8c0af0a53917624eb200febdc7a2522bcdfe1242b2645b11532dfcfddf81f408f3ba70
7
- data.tar.gz: f30740c2a5422ada1760dbb46ab66868095546781843d75d3c3f4b1d232994c928835ca78e8812451f71e822503cd0dd2f96cd47f4045c655ee2539d35c242de
6
+ metadata.gz: 7c02d9d1fe34e0c97a05d0135db11fef8dc401261fd1f2c1fa7a3cd961d191e547e2e462b7792728ac602a5567db8c756f2f2f6906ff9308cdbd8a2cdf53be34
7
+ data.tar.gz: 8eb675eb61e1c2bfb9ace4e21b2aa2526fd878933eedcb48798b892d9261f80d82ce47b765a7b25a1911c9c6586cc899e16a8160ccb18d1d12cfb2b93d43cb96
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.1.2] - 2023-07-11
2
+
3
+ - fixed issue with some requests being ignored because they use POST method
4
+
1
5
  ## [0.1.1] - 2023-06-20
2
6
 
3
7
  - timeline parsing improvements
@@ -20,7 +20,7 @@ module BadPigeon
20
20
  end
21
21
 
22
22
  def includes_tweet_data?
23
- graphql_endpoint? && method == :get && status == 200 && has_json_response?
23
+ graphql_endpoint? && status == 200 && has_json_response?
24
24
  end
25
25
 
26
26
  def endpoint_name
@@ -25,7 +25,7 @@ module BadPigeon
25
25
  endpoint = request.endpoint_name
26
26
 
27
27
  if timeline_class = TIMELINE_TYPES[endpoint]
28
- timeline_class.new(request.response_json).instructions.map(&:entries)
28
+ timeline_class.new(request.response_json).instructions.map(&:entries).flatten
29
29
  else
30
30
  debug "Unknown endpoint: #{endpoint}" unless TIMELINE_TYPES.has_key?(endpoint)
31
31
  []
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BadPigeon
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bad_pigeon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuba Suder
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-20 00:00:00.000000000 Z
11
+ date: 2023-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable