x_post_sanitizer 0.1.0 → 0.1.1
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 +4 -4
- data/CHANGELOG.md +7 -1
- data/README.md +6 -5
- data/lib/x_post_sanitizer/version.rb +1 -1
- data/lib/x_post_sanitizer.rb +1 -1
- data/rbs_collection.lock.yaml +14 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: befdebf7b8eb2a04c81c93992ff617a8fdd58b77690be6df2ccc886fccfc3cd2
|
|
4
|
+
data.tar.gz: 02ac12eb7e6b84dfb492847cf7b98bc00c3bcb0ac614e3401f33d7ee9c1c534b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a26f0524e2c679a9c99609d423d781dea8e0e6b11facf645c140c26caa01067a12f610f59132f80c0485e589c48c4873b6bd479fd7278219ca68dade632d26d4
|
|
7
|
+
data.tar.gz: c30b0174d3bbad35b4e15f895bce9216e59e24d454a91d765951753faff66ab7bbdb78a48c7234f4a87c45d712629e3f373507b97ae92fd38c4507a22b988da1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
|
-
[full changelog](http://github.com/sue445/x_post_sanitizer/compare/v0.1.
|
|
2
|
+
[full changelog](http://github.com/sue445/x_post_sanitizer/compare/v0.1.1...main)
|
|
3
|
+
|
|
4
|
+
## [0.1.1](https://github.com/sue445/x_post_sanitizer/releases/tag/v0.1.1) - 2025-11-30
|
|
5
|
+
[full changelog](http://github.com/sue445/x_post_sanitizer/compare/v0.1.0...v0.1.1)
|
|
6
|
+
|
|
7
|
+
* Release gem from GitHub Actions
|
|
8
|
+
* https://github.com/sue445/x_post_sanitizer/pull/20
|
|
3
9
|
|
|
4
10
|
## [0.1.0](https://github.com/sue445/x_post_sanitizer/releases/tag/v0.1.0) - 2025-05-04
|
|
5
11
|
|
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# XPostSanitizer
|
|
2
2
|
Sanitize X Post (formerly Twitter Tweet)
|
|
3
3
|
|
|
4
|
+
[](https://badge.fury.io/rb/x_post_sanitizer)
|
|
4
5
|
[](https://github.com/sue445/x_post_sanitizer/actions/workflows/test.yml)
|
|
5
6
|
|
|
6
7
|
## Installation
|
|
@@ -19,7 +20,7 @@ gem install x_post_sanitizer
|
|
|
19
20
|
## Usage
|
|
20
21
|
Use `XPostSanitizer.sanitize_text`
|
|
21
22
|
|
|
22
|
-
e.g
|
|
23
|
+
e.g.
|
|
23
24
|
|
|
24
25
|
```ruby
|
|
25
26
|
require "json"
|
|
@@ -44,14 +45,14 @@ All methods and options are followings
|
|
|
44
45
|
|
|
45
46
|
https://sue445.github.io/x_post_sanitizer/XPostSanitizer.html
|
|
46
47
|
|
|
47
|
-
## vs tweet_sanitizer
|
|
48
|
+
## vs. tweet_sanitizer
|
|
48
49
|
This has the same features as [tweet_sanitizer](https://github.com/sue445/tweet_sanitizer) but with the following differences
|
|
49
50
|
|
|
50
51
|
* tweet_sanitizer
|
|
51
|
-
|
|
52
|
+
* Requires https://github.com/sferik/twitter-ruby
|
|
52
53
|
* x_post_sanitizer
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
* Requires only plain X API response. (`Hash` which parsed JSON string)
|
|
55
|
+
* No requires https://github.com/sferik/twitter-ruby
|
|
55
56
|
|
|
56
57
|
## Development
|
|
57
58
|
|
data/lib/x_post_sanitizer.rb
CHANGED
|
@@ -73,7 +73,7 @@ module XPostSanitizer
|
|
|
73
73
|
|
|
74
74
|
# @param tweet [Hash<String, Object>] Tweet object
|
|
75
75
|
#
|
|
76
|
-
# @return [Array<Hash
|
|
76
|
+
# @return [Array<Hash<String, Object>>]
|
|
77
77
|
#
|
|
78
78
|
# @see https://developer.x.com/en/docs/x-api/v1/data-dictionary/object-model/tweet
|
|
79
79
|
def self.get_medias(tweet)
|
data/rbs_collection.lock.yaml
CHANGED
|
@@ -6,7 +6,7 @@ gems:
|
|
|
6
6
|
source:
|
|
7
7
|
type: git
|
|
8
8
|
name: ruby/gem_rbs_collection
|
|
9
|
-
revision:
|
|
9
|
+
revision: 04ed82d7df5d5ee825d7864abfa29d624b52e549
|
|
10
10
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
11
11
|
repo_dir: gems
|
|
12
12
|
- name: binding_of_caller
|
|
@@ -14,7 +14,7 @@ gems:
|
|
|
14
14
|
source:
|
|
15
15
|
type: git
|
|
16
16
|
name: ruby/gem_rbs_collection
|
|
17
|
-
revision:
|
|
17
|
+
revision: 04ed82d7df5d5ee825d7864abfa29d624b52e549
|
|
18
18
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
19
19
|
repo_dir: gems
|
|
20
20
|
- name: cgi
|
|
@@ -30,9 +30,13 @@ gems:
|
|
|
30
30
|
source:
|
|
31
31
|
type: git
|
|
32
32
|
name: ruby/gem_rbs_collection
|
|
33
|
-
revision:
|
|
33
|
+
revision: 04ed82d7df5d5ee825d7864abfa29d624b52e549
|
|
34
34
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
35
35
|
repo_dir: gems
|
|
36
|
+
- name: erb
|
|
37
|
+
version: '0'
|
|
38
|
+
source:
|
|
39
|
+
type: stdlib
|
|
36
40
|
- name: fileutils
|
|
37
41
|
version: '0'
|
|
38
42
|
source:
|
|
@@ -46,7 +50,7 @@ gems:
|
|
|
46
50
|
source:
|
|
47
51
|
type: git
|
|
48
52
|
name: ruby/gem_rbs_collection
|
|
49
|
-
revision:
|
|
53
|
+
revision: 04ed82d7df5d5ee825d7864abfa29d624b52e549
|
|
50
54
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
51
55
|
repo_dir: gems
|
|
52
56
|
- name: pp
|
|
@@ -58,7 +62,7 @@ gems:
|
|
|
58
62
|
source:
|
|
59
63
|
type: stdlib
|
|
60
64
|
- name: prism
|
|
61
|
-
version: 1.
|
|
65
|
+
version: 1.6.0
|
|
62
66
|
source:
|
|
63
67
|
type: rubygems
|
|
64
68
|
- name: pstore
|
|
@@ -74,7 +78,7 @@ gems:
|
|
|
74
78
|
source:
|
|
75
79
|
type: git
|
|
76
80
|
name: ruby/gem_rbs_collection
|
|
77
|
-
revision:
|
|
81
|
+
revision: 04ed82d7df5d5ee825d7864abfa29d624b52e549
|
|
78
82
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
|
79
83
|
repo_dir: gems
|
|
80
84
|
- name: rdoc
|
|
@@ -97,4 +101,8 @@ gems:
|
|
|
97
101
|
version: '0'
|
|
98
102
|
source:
|
|
99
103
|
type: stdlib
|
|
104
|
+
- name: tsort
|
|
105
|
+
version: '0'
|
|
106
|
+
source:
|
|
107
|
+
type: stdlib
|
|
100
108
|
gemfile_lock_path: Gemfile.lock
|