skypost 0.0.1 → 0.0.2

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: 72251c65823ba0eb09ed0383726432a97ee1cb1359fef32441158e4c7c090c89
4
- data.tar.gz: bd91c3aa9a407183191f6e6203a3279c7b76c4d4518fbd9355c6f08e3361d9d4
3
+ metadata.gz: 9f3b64f81f63b68da73b127f3dec332972c2818ba168ce8f621434385bf3e0b6
4
+ data.tar.gz: 6df94cb1d4ad9809ed23fc037bfd3cf1ee85fb650dd233264d30efb9877414d3
5
5
  SHA512:
6
- metadata.gz: aebd23ca3736be8ce1b4e80b084e28f5b3032557d747e0fd07186dd508775708f78339f0eff58789936559d3f0d78d96028e94509aa4c983e07bf5a1d498ea8e
7
- data.tar.gz: fc2d2eb5d9bdf1a69b54c864f95aefd00b64f3d08cb56c8980e7848ad51447300624f3bb0fd8d3191559aabd39aaac6b845acdd6dfada4ddbff2e967e1381296
6
+ metadata.gz: f6b900d5ed07eafa25fd1105550fae58826f53731993e70d945c9dc2f5b3eb3919cbcb6c6cd08298d1f3a6e0149e35faf90f663695a64825007b42c7866115b8
7
+ data.tar.gz: b9b2e4244c6d404705160d3858671a44d6d2ced2e52f2a519ee6b6cfd119852753a5e378d50ca2fe2115069228b399f85f459ab65a1118d7fcdfefa049207946
@@ -83,13 +83,15 @@ module Skypost
83
83
  end
84
84
  end
85
85
 
86
+ public
87
+
86
88
  def extract_links(text)
87
89
  facets = []
88
90
  link_pattern = /<a href="([^"]*)">(.*?)<\/a>/
89
91
 
90
92
  # First, find all matches to calculate correct byte positions
91
93
  matches = text.to_enum(:scan, link_pattern).map { Regexp.last_match }
92
- plain_text = text.gsub(/<a href="[^"]*">|<\/a>/, '') # Text with HTML removed
94
+ plain_text = text.gsub(/<a href="[^"]*">|<\/a>/, '')
93
95
 
94
96
  matches.each do |match|
95
97
  url = match[1]
@@ -1,3 +1,3 @@
1
1
  module Skypost
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skypost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeroen Roosenboom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-26 00:00:00.000000000 Z
11
+ date: 2024-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -67,19 +67,19 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rspec
70
+ name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.0'
75
+ version: '5.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.0'
82
+ version: '5.0'
83
83
  description: A simple Ruby gem that allows posting messages to the Bluesky social
84
84
  network
85
85
  email:
@@ -95,7 +95,8 @@ files:
95
95
  homepage: https://github.com/jro7/skypost
96
96
  licenses:
97
97
  - MIT
98
- metadata: {}
98
+ metadata:
99
+ homepage_uri: https://github.com/jro7/skypost
99
100
  post_install_message:
100
101
  rdoc_options: []
101
102
  require_paths: