simple_tweet 2.0.0 → 2.2.0

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: 2348deca66984de880a63af33816583712ddcbb9b56237ce4c0974be3343cef4
4
- data.tar.gz: 1681c985de747bd2192cdb78c1317148c9ac94d60fbc1e9ddd37b069f43a32cb
3
+ metadata.gz: 7e8b7b5eef07f8a7108285eeb67aa7708fd0f810b49c497e4d2a2e7e988f671d
4
+ data.tar.gz: f0501a28e4072c89f67944a7982394fd21ebd3fbc0e852dd18b5d3eb98fc0d97
5
5
  SHA512:
6
- metadata.gz: 834a576f510f3f109a928977594cb03071bbe21d4b2c3f345b55ffc9681db1101025540642be6188a36f57b65763d284f33dbdc6392632fd53d696b5d368b34c
7
- data.tar.gz: '09a28d5cdb58f8c71d50371a35129e1f126c9b6ca7b864af916f0fe0a1736ac0266faf26594cab069c7da6af1365e1bd5a561c14a52e2e4c6a692a45f0ec1d54'
6
+ metadata.gz: 38863d94493b2b4a71f0306327d7db02785e2118d852b5dd5508e642e9bbc0d8d453104ab08853da9b2ded125d49e782afa99913fe16f09726c0da5acad77d53
7
+ data.tar.gz: 7e8e2ad9278bacef086651331964f40c1020257339e3599128903081cc5123ec40904597c6568a51bd10c7a10597ec16d52fab2a3bdc5c58aeadc97726ec7d48
@@ -8,13 +8,10 @@ module SimpleTweet
8
8
  UA = "SimpleTweet/#{SimpleTweet::VERSION}"
9
9
 
10
10
  def tweet(message:, media_ids: [])
11
- json = {
12
- text: message,
13
- }
11
+ json = { text: message }
14
12
  json[:media] = { media_ids: media_ids } unless media_ids.empty?
15
13
  header = { "User-Agent": UA, "content-type": "application/json" }
16
- res = access_token.post(TW_TWEET_PATH, json.to_json, header)
17
- ::JSON.parse(res.body)
14
+ access_token.post(TW_TWEET_PATH, json.to_json, header)
18
15
  end
19
16
  end
20
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleTweet
4
- VERSION = "2.0.0"
4
+ VERSION = "2.2.0"
5
5
  end
data/simple_tweet.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = ""
13
13
  spec.homepage = "https://github.com/nota/simple_tweet"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.6.0"
15
+ spec.required_ruby_version = ">= 3.0.0"
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
18
  spec.metadata["source_code_uri"] = spec.homepage
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_tweet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kugayama Nana
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post
@@ -72,7 +72,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 2.6.0
75
+ version: 3.0.0
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - ">="