bad_pigeon 0.1.3 → 0.1.5

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: 603fc8ee8a14e3cdeee420620d4457fcd20b3e86c83f104c714848ad384c27b9
4
- data.tar.gz: 4d342a48e1b0b3478ee16e42ed3826b97f1056e09b53461e9cd2b4c3e3fbd348
3
+ metadata.gz: ea551a0bed0e8f7bd72563d60d2a34e1c73f118282dc83697db78bba1cc5094c
4
+ data.tar.gz: 9afa8c7a4d63f2ccfd4102ebc32d2e8210b22ec40af250cd8e89459973f80f18
5
5
  SHA512:
6
- metadata.gz: a70d24323f1b0973bc143e41d07842fce248a25316e24d3e642cea3f862a716867c4728e20254363dbe659d7392235dc40eeac394af09ee986ccc53d303957d9
7
- data.tar.gz: ee3c1b8e89badd193f386a2f70a3c4642e6e40eb3767d1136f167534003f9cd51de45a2bf46e33de79e60710515f1c7ee45e0072fd5ff85a42b1b610f6b1b517
6
+ metadata.gz: 0c3f315de054af6e727fe3e71e7de88a4a3c635ac19660f993e722a3f8d3fd3d76b0b75fbe9e25c5410af699aed92e6459318f2fdba306d6b608a4f66c528174
7
+ data.tar.gz: e1c341456a61ad4b08c8e8f7a82bd15c9bd093a09cb5db062e041a84004ce2024fe035fddbd1da168c130b4226879b34d9fd514cced25b1abbc2dbc07dc54e00
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## [0.1.5] - 2024-06-16
2
+
3
+ - compatibility fixes (new "x.com" hostname in URLs)
4
+
5
+ ## [0.1.4] - 2023-09-17
6
+
7
+ - compatibility fixes
8
+
9
+ ## [0.1.3] - 2023-09-08
10
+
11
+ - fixed handling of quotes of deleted posts
12
+ - compatibility fixes for latest changes in the tweet response structure
13
+
1
14
  ## [0.1.2] - 2023-07-11
2
15
 
3
16
  - fixed issue with some requests being ignored because they use POST method
@@ -10,8 +10,9 @@ module BadPigeon
10
10
  # tweet in a list timeline
11
11
  ORGANIC_LIST_TWEET = "suggest_organic_list_tweet"
12
12
 
13
- # user's pinned tweet
13
+ # user's pinned tweets
14
14
  PINNED_TWEET = "suggest_pinned_tweet"
15
+ PINNED_TWEETS = "pinned_tweets"
15
16
 
16
17
  # reply that shows up in your timeline
17
18
  EXTENDED_REPLY = "suggest_extended_reply"
@@ -12,6 +12,7 @@ module BadPigeon
12
12
  Component::NORMAL_TWEET,
13
13
  Component::FOLLOWING,
14
14
  Component::PINNED_TWEET,
15
+ Component::PINNED_TWEETS,
15
16
  Component::EXTENDED_REPLY,
16
17
  Component::SOCIAL_CONTEXT,
17
18
  Component::SOCIAL_ACTIVITY,
@@ -25,7 +25,9 @@ module BadPigeon
25
25
  end
26
26
 
27
27
  def graphql_endpoint?
28
- url.start_with?('https://api.twitter.com/graphql/') || url.start_with?('https://twitter.com/i/api/graphql/')
28
+ url.start_with?('https://api.twitter.com/graphql/') ||
29
+ url.start_with?('https://twitter.com/i/api/graphql/') ||
30
+ url.start_with?('https://x.com/i/api/graphql/')
29
31
  end
30
32
 
31
33
  def includes_tweet_data?
@@ -78,7 +78,8 @@ module BadPigeon
78
78
  end
79
79
 
80
80
  def quoted_status
81
- json['quoted_status_result'] && Tweet.from_result(json['quoted_status_result']['result'])
81
+ qsr = json['quoted_status_result']
82
+ qsr && qsr['result'] && Tweet.from_result(qsr['result'])
82
83
  end
83
84
 
84
85
  alias quoted_tweet? quoted_status?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BadPigeon
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.5"
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.3
4
+ version: 0.1.5
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-09-08 00:00:00.000000000 Z
11
+ date: 2024-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable