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 +4 -4
- data/lib/skypost/client.rb +3 -1
- data/lib/skypost/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f3b64f81f63b68da73b127f3dec332972c2818ba168ce8f621434385bf3e0b6
|
4
|
+
data.tar.gz: 6df94cb1d4ad9809ed23fc037bfd3cf1ee85fb650dd233264d30efb9877414d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6b900d5ed07eafa25fd1105550fae58826f53731993e70d945c9dc2f5b3eb3919cbcb6c6cd08298d1f3a6e0149e35faf90f663695a64825007b42c7866115b8
|
7
|
+
data.tar.gz: b9b2e4244c6d404705160d3858671a44d6d2ced2e52f2a519ee6b6cfd119852753a5e378d50ca2fe2115069228b399f85f459ab65a1118d7fcdfefa049207946
|
data/lib/skypost/client.rb
CHANGED
@@ -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>/, '')
|
94
|
+
plain_text = text.gsub(/<a href="[^"]*">|<\/a>/, '')
|
93
95
|
|
94
96
|
matches.each do |match|
|
95
97
|
url = match[1]
|
data/lib/skypost/version.rb
CHANGED
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.
|
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-
|
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:
|
70
|
+
name: minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
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: '
|
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:
|