anzu 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -13
- data/lib/anzu/endpoints/manage_tweets_v2.rb +2 -2
- data/lib/anzu/version.rb +1 -1
- metadata +1 -2
- data/Gemfile.lock +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28b0a73ca6dff030ac36faed8a6bcddc8b50f88941f7272be0583e3bc779236e
|
4
|
+
data.tar.gz: a4f20a4d2e428a64560b356d73a69205315ac55c5f9cfa95fd398e4a307d3b68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 898eec6ff0b3d72815f2a46e0403510fc254d326c1cd05d226c0d46bbc87bf30460d942cfcdf22ba83ca67a260b7533a19bfae6480a72dc23622a6c4d85798e8
|
7
|
+
data.tar.gz: 89e727a84abfd764afe125b839d1e45ebc309ae391e40ce0a849c9e442fc1b92dacb07eb1357bb891da0254dcbeb213750e93288fa5ab8f96562fe7d6d0a9b56
|
data/README.md
CHANGED
@@ -1,31 +1,34 @@
|
|
1
1
|
# Anzu
|
2
2
|
|
3
|
-
|
3
|
+
人生の質を下げてまで、働く必要ないって。自分のために生きなきゃ
|
4
4
|
|
5
|
-
|
5
|
+
A Twitter API wrapper for Ruby.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
-
|
11
9
|
Install the gem and add to the application's Gemfile by executing:
|
12
10
|
|
13
|
-
$ bundle add
|
11
|
+
$ bundle add anzu
|
14
12
|
|
15
13
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
14
|
|
17
|
-
$ gem install
|
15
|
+
$ gem install anzu
|
18
16
|
|
19
17
|
## Usage
|
20
18
|
|
21
|
-
|
22
|
-
|
23
|
-
## Development
|
19
|
+
```ruby
|
20
|
+
require 'anzu'
|
24
21
|
|
25
|
-
|
22
|
+
client = Anzu::Client.new do |config|
|
23
|
+
config.consumer_key = 'consumer-key'
|
24
|
+
config.consumer_secret = 'consumer-secret'
|
25
|
+
config.access_token = 'access-token'
|
26
|
+
config.access_token_secret = 'access-token-secret'
|
27
|
+
end
|
26
28
|
|
27
|
-
|
29
|
+
client.create_tweet_v2('tweet from anzu')
|
30
|
+
```
|
28
31
|
|
29
|
-
|
32
|
+
# License
|
30
33
|
|
31
|
-
|
34
|
+
This gem is provided under the MIT License.
|
@@ -23,10 +23,10 @@ module Anzu
|
|
23
23
|
direct_message_deep_link: direct_message_deep_link,
|
24
24
|
for_super_followers_only: for_super_followers_only,
|
25
25
|
geo: geo_place_id && { place_id: geo_place_id }.compact,
|
26
|
-
media: media_ids && { media_ids: media_ids, tagged_user_ids: media_tagged_user_ids }.compact,
|
26
|
+
media: media_ids && { media_ids: media_ids.map(&:to_s), tagged_user_ids: media_tagged_user_ids&.map(&:to_s) }.compact,
|
27
27
|
poll: poll_options && { duration_minutes: poll_duration_minutes, options: poll_options }.compact,
|
28
28
|
quote_tweet_id: quote_tweet_id,
|
29
|
-
reply: in_reply_to_tweet_id && { in_reply_to_tweet_id: in_reply_to_tweet_id, exclude_reply_user_ids: exclude_reply_user_ids }.compact,
|
29
|
+
reply: in_reply_to_tweet_id && { in_reply_to_tweet_id: in_reply_to_tweet_id.to_s, exclude_reply_user_ids: exclude_reply_user_ids&.map(&:to_s) }.compact,
|
30
30
|
reply_settings: reply_settings,
|
31
31
|
text: text
|
32
32
|
}
|
data/lib/anzu/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anzu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ishotihadus
|
@@ -48,7 +48,6 @@ files:
|
|
48
48
|
- ".rspec"
|
49
49
|
- ".rubocop.yml"
|
50
50
|
- Gemfile
|
51
|
-
- Gemfile.lock
|
52
51
|
- LICENSE
|
53
52
|
- README.md
|
54
53
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
anzu (0.1.0)
|
5
|
-
mime-types
|
6
|
-
simple_oauth
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
diff-lcs (1.5.0)
|
12
|
-
mime-types (3.4.1)
|
13
|
-
mime-types-data (~> 3.2015)
|
14
|
-
mime-types-data (3.2023.0218.1)
|
15
|
-
rake (13.0.6)
|
16
|
-
rspec (3.12.0)
|
17
|
-
rspec-core (~> 3.12.0)
|
18
|
-
rspec-expectations (~> 3.12.0)
|
19
|
-
rspec-mocks (~> 3.12.0)
|
20
|
-
rspec-core (3.12.1)
|
21
|
-
rspec-support (~> 3.12.0)
|
22
|
-
rspec-expectations (3.12.2)
|
23
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
24
|
-
rspec-support (~> 3.12.0)
|
25
|
-
rspec-mocks (3.12.5)
|
26
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
-
rspec-support (~> 3.12.0)
|
28
|
-
rspec-support (3.12.0)
|
29
|
-
simple_oauth (0.3.1)
|
30
|
-
|
31
|
-
PLATFORMS
|
32
|
-
arm64-darwin-22
|
33
|
-
|
34
|
-
DEPENDENCIES
|
35
|
-
anzu!
|
36
|
-
rake (~> 13.0)
|
37
|
-
rspec (~> 3.0)
|
38
|
-
|
39
|
-
BUNDLED WITH
|
40
|
-
2.4.12
|