simple_tweet 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 78c60b9ea581be3973b13f44ada8e629430ebdb6fd80e18727cf0ddbfd21b529
4
+ data.tar.gz: 5ba269a5d0f06713b6907e8b7ba431241f4a7c99d6a7bba2867d303f48e0b3c4
5
+ SHA512:
6
+ metadata.gz: 5d63328c38708c83087ba52bcdb9106e464cad500faaf6d080408916a9aed18567fbc6786dd3459247537046c15014df0fb552cb073fd4907ba15da31b759058
7
+ data.tar.gz: 7cdeb3fb177984100627a1083882f849226e3044eef300fa700803051eaf7c7ad62f43e4448a029d92d1666c1c7d3e504829beda303da69f318e56d543a406c8
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,22 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
14
+
15
+ Metrics/ClassLength:
16
+ Max: 120
17
+
18
+ Metrics/MethodLength:
19
+ Max: 30
20
+
21
+ Metrics/AbcSize:
22
+ Max: 30
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at nonamea.774@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in simple_tweet.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.21"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Kugayama Nana
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # SimpleTweet
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/simple_tweet`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Install the gem and add to the application's Gemfile by executing:
10
+
11
+ $ bundle add simple_tweet
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ $ gem install simple_tweet
16
+
17
+ ## Usage
18
+
19
+ TODO: Write usage instructions here
20
+
21
+ ## Development
22
+
23
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
+
25
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+
27
+ ## Contributing
28
+
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/nna774/simple_tweet. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/nna774/simple_tweet/blob/main/CODE_OF_CONDUCT.md).
30
+
31
+ ## License
32
+
33
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
34
+
35
+ ## Code of Conduct
36
+
37
+ Everyone interacting in the SimpleTweet project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/nna774/simple_tweet/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SimpleTweet
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,278 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "simple_tweet/version"
4
+ require "cgi"
5
+ require "oauth"
6
+ require "json"
7
+ require "net/http/post/multipart"
8
+
9
+ module SimpleTweet
10
+ class Error < ::StandardError; end
11
+ class UploadMediaError < Error; end
12
+
13
+ # Client provides only tweet
14
+ class Client
15
+ TW_API_ORIGIN = "https://api.twitter.com"
16
+ TW_UPLOAD_ORIGIN = "https://upload.twitter.com"
17
+ TW_MEDIA_UPLOAD_PATH = "/1.1/media/upload.json"
18
+ APPEND_PER = 5 * (1 << 20)
19
+
20
+ def initialize(consumer_key:, consumer_secret:, access_token:, access_token_secret:, max_append_retry: 3)
21
+ @consumer_key_ = consumer_key
22
+ @consumer_secret_ = consumer_secret
23
+ @access_token_ = access_token
24
+ @access_token_secret_ = access_token_secret
25
+ @max_append_retry_ = max_append_retry
26
+ end
27
+
28
+ # https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-update
29
+ def tweet(message:, media_ids: [])
30
+ path = "/1.1/statuses/update.json?status=#{::CGI.escape(message)}"
31
+ path += "&media_ids=#{media_ids.join(",")}" unless media_ids.empty?
32
+ Tweet.from_response(access_token.post(path))
33
+ end
34
+
35
+ # media_type is mime_type
36
+ def tweet_with_media(message:, media_type:, media:)
37
+ media_ids = upload_media(media_type: media_type, media: media)
38
+ tweet(message: message, media_ids: media_ids)
39
+ end
40
+
41
+ private
42
+
43
+ def access_token(site: TW_API_ORIGIN)
44
+ consumer = ::OAuth::Consumer.new(@consumer_key_, @consumer_secret_, site: site)
45
+ ::OAuth::AccessToken.new(consumer, @access_token_, @access_token_secret_)
46
+ end
47
+
48
+ def request(req)
49
+ @client ||= access_token(site: TW_UPLOAD_ORIGIN)
50
+ @client.sign! req
51
+
52
+ url = ::URI.parse(TW_UPLOAD_ORIGIN + TW_MEDIA_UPLOAD_PATH)
53
+ https = ::Net::HTTP.new(url.host, url.port)
54
+ https.use_ssl = true
55
+
56
+ https.start do |http|
57
+ http.request req
58
+ end
59
+ end
60
+
61
+ # https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload
62
+ ## maybe todo: multiple image
63
+ def upload_media(media_type:, media:)
64
+ return upload_video(video: media) if media_type == "video/mp4"
65
+
66
+ req = ::Net::HTTP::Post::Multipart.new(
67
+ TW_MEDIA_UPLOAD_PATH,
68
+ media: ::UploadIO.new(media, media_type),
69
+ media_category: "tweet_image"
70
+ )
71
+ res = ::JSON.parse(request(req).body)
72
+ [res["media_id_string"]]
73
+ end
74
+
75
+ def init(video:)
76
+ init_req = ::Net::HTTP::Post::Multipart.new(
77
+ TW_MEDIA_UPLOAD_PATH,
78
+ command: "INIT",
79
+ total_bytes: video.size,
80
+ media_type: "video/mp4"
81
+ )
82
+ init_res = request(init_req)
83
+ raise UploadMediaError unless init_res.code == "202"
84
+
85
+ ::JSON.parse(init_res.body)
86
+ end
87
+
88
+ def append(video:, media_id:, index:, retry_count: 0)
89
+ append_req = ::Net::HTTP::Post::Multipart.new(
90
+ TW_MEDIA_UPLOAD_PATH,
91
+ command: "APPEND",
92
+ media_id: media_id,
93
+ media: video.read(APPEND_PER),
94
+ segment_index: index
95
+ )
96
+ return if request(append_req).code == "204"
97
+ raise UploadMediaError unless retry_count <= @max_append_retry_
98
+
99
+ append(video: video, media_id: media_id, index: index, retry_count: retry_count + 1)
100
+ end
101
+
102
+ def finalize(media_id:)
103
+ finalize_req = ::Net::HTTP::Post::Multipart.new(
104
+ TW_MEDIA_UPLOAD_PATH,
105
+ command: "FINALIZE",
106
+ media_id: media_id
107
+ )
108
+ finalize_res = request(finalize_req)
109
+ raise UploadMediaError unless finalize_res.code == "201"
110
+
111
+ ::JSON.parse(finalize_res.body)
112
+ end
113
+
114
+ def status(media_id:)
115
+ status_req = ::Net::HTTP::Post::Multipart.new(
116
+ TW_MEDIA_UPLOAD_PATH,
117
+ command: "STATUS",
118
+ media_id: media_id
119
+ )
120
+ status_res = request(status_req)
121
+ raise UploadMediaError unless status_res.code == "200"
122
+
123
+ ::JSON.parse(status_res.body)
124
+ end
125
+
126
+ # https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload-init
127
+ def upload_video(video:)
128
+ init_res = init(video: video)
129
+ media_id = init_res["media_id_string"]
130
+
131
+ chunks_needed = (video.size - 1) / APPEND_PER + 1
132
+ chunks_needed.times do |i|
133
+ append(video: video, media_id: media_id, index: i)
134
+ end
135
+
136
+ finalize_res = finalize(media_id: media_id)
137
+
138
+ if finalize_res["processing_info"]
139
+ retry_after = finalize_res["processing_info"]["check_after_secs"] || 5
140
+ loop do
141
+ sleep retry_after
142
+
143
+ status_res = status(media_id: media_id)
144
+ raise UploadMediaError if status_res["processing_info"].nil?
145
+ break if status_res["processing_info"]["state"] == "succeeded"
146
+
147
+ if status_res["processing_info"]["state"] == "in_progress"
148
+ retry_after = status_res["processing_info"]["check_after_secs"] || 5
149
+ next
150
+ end
151
+
152
+ # status_res_json["processing_info"]["state"] == "failed"
153
+ raise UploadMediaError
154
+ end
155
+ end
156
+
157
+ [media_id]
158
+ end
159
+ end
160
+
161
+ # Twitter::Tweetに近いinterfaceを提供する。
162
+ ## 使ってない部分のhashの中身のhashとかは正規化されてないので、必要になったら足す必要がある。
163
+ ### todo: entities, media, ...
164
+ ## 逆に、本体とuserのところだけHashから変換している。
165
+ Tweet = ::Struct.new(
166
+ :created_at,
167
+ :id,
168
+ :id_str,
169
+ :text,
170
+ :truncated,
171
+ :entities,
172
+ :source,
173
+ :in_reply_to_status_id,
174
+ :in_reply_to_status_id_str,
175
+ :in_reply_to_user_id,
176
+ :in_reply_to_user_id_str,
177
+ :in_reply_to_screen_name,
178
+ :user,
179
+ :geo,
180
+ :coordinates,
181
+ :place,
182
+ :contributors,
183
+ :is_quote_status,
184
+ :retweet_count,
185
+ :favorite_count,
186
+ :favorited,
187
+ :retweeted,
188
+ :lang,
189
+ :extended_entities,
190
+ :possibly_sensitive,
191
+ keyword_init: true
192
+ )
193
+ User = ::Struct.new(
194
+ :id,
195
+ :id_str,
196
+ :name,
197
+ :screen_name,
198
+ :location,
199
+ :description,
200
+ :url,
201
+ :entities,
202
+ :protected,
203
+ :followers_count,
204
+ :friends_count,
205
+ :listed_count,
206
+ :created_at,
207
+ :favourites_count,
208
+ :utc_offset,
209
+ :time_zone,
210
+ :geo_enabled,
211
+ :verified,
212
+ :statuses_count,
213
+ :lang,
214
+ :contributors_enabled,
215
+ :is_translator,
216
+ :is_translation_enabled,
217
+ :profile_background_color,
218
+ :profile_background_image_url,
219
+ :profile_background_image_url_https,
220
+ :profile_background_tile,
221
+ :profile_image_url,
222
+ :profile_image_url_https,
223
+ :profile_banner_url,
224
+ :profile_link_color,
225
+ :profile_sidebar_border_color,
226
+ :profile_sidebar_fill_color,
227
+ :profile_text_color,
228
+ :profile_use_background_image,
229
+ :has_extended_profile,
230
+ :default_profile,
231
+ :default_profile_image,
232
+ :following,
233
+ :follow_request_sent,
234
+ :notifications,
235
+ :translator_type,
236
+ :withheld_in_countries,
237
+ keyword_init: true
238
+ )
239
+
240
+ # Tweet is like Twitter::Tweet
241
+ class Tweet
242
+ def self.from_response(response)
243
+ return nil unless response.code == "200"
244
+
245
+ res = ::JSON.parse(response.body)
246
+ tw = Tweet.new(**res)
247
+ tw.created_at = ::Time.parse(tw.created_at).utc
248
+ tw.user = User.new(**res["user"])
249
+ tw
250
+ end
251
+
252
+ def uri
253
+ "https://twitter.com/#{user.screen_name}/status/#{id}"
254
+ end
255
+ alias url uri
256
+
257
+ def to_h
258
+ super.map do |k, v|
259
+ if k == :user
260
+ [k.to_s, v.to_h]
261
+ else
262
+ [k.to_s, v]
263
+ end
264
+ end.to_h
265
+ end
266
+ end
267
+
268
+ # User is
269
+ class User
270
+ def protected?
271
+ protected
272
+ end
273
+
274
+ def to_h
275
+ super.transform_keys(&:to_s)
276
+ end
277
+ end
278
+ end
@@ -0,0 +1,4 @@
1
+ module SimpleTweet
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/simple_tweet/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "simple_tweet"
7
+ spec.version = SimpleTweet::VERSION
8
+ spec.authors = ["Kugayama Nana"]
9
+ spec.email = ["nna@nna774.net"]
10
+
11
+ spec.summary = "simple_tweet provides tweet, tweet_with_media"
12
+ spec.description = ""
13
+ spec.homepage = "https://github.com/nota/simple_tweet"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(__dir__) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
+ end
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_dependency "multipart-post", ">= 2.2.3"
33
+ spec.add_dependency "oauth", "~> 1.1.0"
34
+
35
+ # For more information and examples about making a new gem, check out our
36
+ # guide at: https://bundler.io/guides/creating_gem.html
37
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simple_tweet
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Kugayama Nana
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-02-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: multipart-post
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 2.2.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: oauth
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.1.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.1.0
41
+ description: ''
42
+ email:
43
+ - nna@nna774.net
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".rspec"
49
+ - ".rubocop.yml"
50
+ - CODE_OF_CONDUCT.md
51
+ - Gemfile
52
+ - LICENSE.txt
53
+ - README.md
54
+ - Rakefile
55
+ - lib/simple_tweet.rb
56
+ - lib/simple_tweet/version.rb
57
+ - sig/simple_tweet.rbs
58
+ - simple_tweet.gemspec
59
+ homepage: https://github.com/nota/simple_tweet
60
+ licenses:
61
+ - MIT
62
+ metadata:
63
+ homepage_uri: https://github.com/nota/simple_tweet
64
+ source_code_uri: https://github.com/nota/simple_tweet
65
+ post_install_message:
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 2.6.0
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubygems_version: 3.3.7
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: simple_tweet provides tweet, tweet_with_media
84
+ test_files: []