birdsong 0.2.6 → 0.2.7

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: 82bf946c745782199f6ec1dc9e1dd21bcf2b15584e69152ffebd1b5b8b452873
4
- data.tar.gz: 82dc7534653c03bd75b7f24ac588fa6c9d0fa689552f4b67e4739c296df90692
3
+ metadata.gz: 1808eed99ef9e1885a1935f212651f7da9d5a60dcf2d74d5988eca88fd962122
4
+ data.tar.gz: c7fc73864f0f71cbd4dfd7f038e02bdbfa11ff1091d8d1f2fd13f07ad71abefd
5
5
  SHA512:
6
- metadata.gz: 0207ae04fb995778f6fe447f55c78f962aac6c0d7418912d9dc4bf5fd575742915ba9912360811e7921655b824a3bf9ef6739a67981ec209698e112e57c9aee4
7
- data.tar.gz: a8c301f6805c88ac99ef3b5306ef0c3df9ea6f710498a3d4b970c813519606e7c7cbc70b4250c8cde148f3ff50e912c7b0fad0b2dccecd0006f313bd04e299df
6
+ metadata.gz: 97a72857edf2f49da68729ac86f4cc1aa992e76d0f58bcaafc1b7595e9becb5859dcb17819929920833e477586c58cdc957a8c480a8036862f5df5e9fa7c57da
7
+ data.tar.gz: 874c0218358e28d827a67da10a0ef0dad45623deb0897c5dbf7939266fb2eaa23d40146d624acbb6a68cbd9bc02f36890be96bfe18affaa810e49bc919d3ff52
@@ -148,11 +148,11 @@ module Birdsong
148
148
  # page.quit
149
149
 
150
150
  # # Check if we're on a Instagram page already, if not visit it.
151
- # unless page.driver.browser.current_url.include? "twitter.com"
151
+ # unless page.driver.browser.current_url.include? "twitter.com" || page.driver.browser.current_url.include? "x.com"
152
152
  # # There seems to be a bug in the Linux ARM64 version of chromedriver where this will properly
153
153
  # # navigate but then timeout, crashing it all up. So instead we check and raise the error when
154
154
  # # that then fails again.
155
- # page.driver.browser.navigate.to("https://twitter.com")
155
+ # page.driver.browser.navigate.to("https://x.com")
156
156
  # end
157
157
 
158
158
  # # We don't have to login if we already are
@@ -14,12 +14,12 @@ module Birdsong
14
14
  # - Number of likes *
15
15
  # - Hashtags
16
16
 
17
- Capybara.app_host = "https://twitter.com"
17
+ Capybara.app_host = "https://x.com"
18
18
 
19
19
  # video slideshows https://www.instagram.com/p/CY7KxwYOFBS/?utm_source=ig_embed&utm_campaign=loading
20
20
  # login
21
21
  graphql_object = get_content_of_subpage_from_url(
22
- "https://twitter.com/jack/status/#{id}",
22
+ "https://x.com/jack/status/#{id}",
23
23
  "/graphql",
24
24
  "data,tweetResult,result"
25
25
  )
data/lib/birdsong/user.rb CHANGED
@@ -39,7 +39,7 @@ module Birdsong
39
39
 
40
40
  @description = user_object[:description]
41
41
  @url = user_object[:url]
42
- @url = "https://www.twitter.com/#{@username}" if @url.nil?
42
+ @url = "https://www.x.com/#{@username}" if @url.nil?
43
43
 
44
44
  @followers_count = user_object[:followers_count]
45
45
  @following_count = user_object[:following_count]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Birdsong
4
- VERSION = "0.2.6"
4
+ VERSION = "0.2.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: birdsong
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Guess
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-14 00:00:00.000000000 Z
11
+ date: 2024-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus