simple_twitter 2.2.1 → 2.2.2

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: 07a8547bff9c7cd57a04a9286f0356d0254144fcaee53fbba5209be5a2f9b1ef
4
- data.tar.gz: bfcd987e1efab7ea72c86050d661b1e702fd2be902dc2c7d691f2f4b5e601f3e
3
+ metadata.gz: 28bb8b34b67d38e9a9b5a303afd8f81f862161c41436d4424f221ec19a29f2d7
4
+ data.tar.gz: 76f8aa9bf7039a3e6e51acebf1ef0e6532b1c0f5bd9bba4e42db6ebc113848d1
5
5
  SHA512:
6
- metadata.gz: 839a64b8effe471567cb3eedcf83e7d48d06c365bb7fb68fa361f59205111ffd3d04b56ff895b76f8a2865426673f5e1b24cf36a09d5d5c59c30e9f6d0a3aafb
7
- data.tar.gz: e01225940b9728ab6decb8710eee1694693e7e76a77bc912112a3f92fc1fb548034eb31d22c810883343d862992f5cf4bb088002ff2a9ee94a73699ccfeeb43b
6
+ metadata.gz: 78b7dd35126dbc2545768d2d64f3b54d5830889b8dc57ba0e0db27e577c2a93a0c42dfb353370b1d2774d14d4153707ab94a6e5cc077733e0348fe3b55776992
7
+ data.tar.gz: 41ebc4010d50b15905fd140256644e4c864d8a43f416a3d1c6953e43d267847c75b4c85892725662666a5ac8b3728b91d595af21e0fae9e9f466c2b114bba2ba
@@ -30,7 +30,7 @@ jobs:
30
30
  runs-on: ubuntu-latest
31
31
  steps:
32
32
  - name: Checkout
33
- uses: actions/checkout@v3
33
+ uses: actions/checkout@v4
34
34
 
35
35
  - uses: ruby/setup-ruby@v1
36
36
  with:
@@ -31,7 +31,7 @@ jobs:
31
31
  - "3.2"
32
32
 
33
33
  steps:
34
- - uses: actions/checkout@v3
34
+ - uses: actions/checkout@v4
35
35
 
36
36
  - uses: ruby/setup-ruby@v1
37
37
  with:
@@ -51,7 +51,7 @@ jobs:
51
51
  runs-on: ubuntu-latest
52
52
 
53
53
  steps:
54
- - uses: actions/checkout@v3
54
+ - uses: actions/checkout@v4
55
55
 
56
56
  - uses: ruby/setup-ruby@v1
57
57
  with:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## Unreleased
2
- https://github.com/yhara/simple_twitter/compare/v2.2.1...main
2
+ https://github.com/yhara/simple_twitter/compare/v2.2.2...main
3
+
4
+ ## v2.2.1 (2023-07-25)
5
+ https://github.com/yhara/simple_twitter/compare/v2.2.1...v2.2.2
6
+
7
+ * [docs] Tweak yard doc
8
+ * https://github.com/yhara/simple_twitter/pull/31
9
+ * Embed filename and line number of the method generated by eval into backtrace
10
+ * https://github.com/yhara/simple_twitter/pull/33
11
+ * Tweak gem description
12
+ * https://github.com/yhara/simple_twitter/pull/34
3
13
 
4
14
  ## v2.2.1 (2023-07-25)
5
15
  https://github.com/yhara/simple_twitter/compare/v2.2.0...v2.2.1
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # simple_twitter
2
2
 
3
- Dead simple Twitter API client. Supports both v1 and v2
3
+ Dead simple X (formerly Twitter) API client. Supports both v1 and v2
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/simple_twitter.svg)](https://badge.fury.io/rb/simple_twitter)
6
6
  [![test](https://github.com/yhara/simple_twitter/actions/workflows/test.yml/badge.svg)](https://github.com/yhara/simple_twitter/actions/workflows/test.yml)
@@ -2,10 +2,21 @@ module SimpleTwitter
2
2
  # Twitter API Client
3
3
  class Client
4
4
  # @param bearer_token [String] This requires for OAuth 2
5
- # @param api_key [String] This requires for OAuth 1.0a
6
- # @param api_secret_key [String] This requires for OAuth 1.0a
7
- # @param access_token [String] This requires for OAuth 1.0a
8
- # @param access_token_secret [String] This requires for OAuth 1.0a
5
+ # @param api_key [String] API Key (a.k.a Consumer Key). This requires for OAuth 1.0a
6
+ # @param api_secret_key [String] API Secret Key (a.k.a Consumer Secret). This requires for OAuth 1.0a
7
+ # @param access_token [String] Access Token. This requires for OAuth 1.0a
8
+ # @param access_token_secret [String] Access Token Secret. This requires for OAuth 1.0a
9
+ #
10
+ # @example Initialize with OAuth 2
11
+ # client = SimpleTwitter::Client.new(bearer_token: "bearer_token")
12
+ #
13
+ # @example Initialize with OAuth 1.0a
14
+ # client = SimpleTwitter::Client.new(
15
+ # api_key: "api_key",
16
+ # api_secret_key: "api_secret_key",
17
+ # access_token: "access_token",
18
+ # access_token_secret: "access_token_secret",
19
+ # )
9
20
  def initialize(bearer_token: nil,
10
21
  api_key: nil,
11
22
  api_secret_key: nil,
@@ -100,7 +111,7 @@ module SimpleTwitter
100
111
  # @see https://www.rubydoc.info/github/httprb/http/HTTP/Response HTTP::Response documentation
101
112
 
102
113
  %i[get post put delete].each do |m|
103
- class_eval <<~EOD
114
+ class_eval <<~EOD, __FILE__, __LINE__ + 1
104
115
  def #{m}(url, params: {}, json: {}, form: {})
105
116
  res = #{m}_raw(url, params: params, json: json, form: form)
106
117
  parse_response(res)
@@ -1,3 +1,3 @@
1
1
  module SimpleTwitter
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
@@ -6,8 +6,8 @@ Gem::Specification.new do |spec|
6
6
  spec.authors = ["Yutaka HARA", "sue445"]
7
7
  spec.email = ["yutaka.hara+github@gmail.com", "sue445fukuoka@gmail.com"]
8
8
 
9
- spec.summary = "Dead simple client for Twitter API v1/v2"
10
- spec.description = "Dead simple client for Twitter API (supports both v1 and v2)"
9
+ spec.summary = "Dead simple client for X (formerly Twitter) API v1/v2"
10
+ spec.description = "Dead simple client for X (formerly Twitter) API (supports both v1 and v2)"
11
11
  spec.homepage = "https://github.com/yhara/simple_twitter"
12
12
  spec.license = "MIT"
13
13
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yutaka HARA
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-07-24 00:00:00.000000000 Z
12
+ date: 2023-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: http
@@ -123,7 +123,8 @@ dependencies:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
- description: Dead simple client for Twitter API (supports both v1 and v2)
126
+ description: Dead simple client for X (formerly Twitter) API (supports both v1 and
127
+ v2)
127
128
  email:
128
129
  - yutaka.hara+github@gmail.com
129
130
  - sue445fukuoka@gmail.com
@@ -188,5 +189,5 @@ requirements: []
188
189
  rubygems_version: 3.4.10
189
190
  signing_key:
190
191
  specification_version: 4
191
- summary: Dead simple client for Twitter API v1/v2
192
+ summary: Dead simple client for X (formerly Twitter) API v1/v2
192
193
  test_files: []