twitter_labs_api 0.2.0 → 0.3.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: f948545c92cea7e99843267178e59de531a72c6ae552b83d3e75e9166c15ef1a
4
- data.tar.gz: 11a1eff22ea020997cfaa2242e2d53c3734d49d5bcf52ae6a505db5ed16d106a
3
+ metadata.gz: 13b7d27a82ec7637bded5657ab9a74e7b847236dc5377d5409cdf624ea8c8d73
4
+ data.tar.gz: 4267e671b4e6b42cecb79dd7ea63151dfd36769bc386d690027e295ce5d81efd
5
5
  SHA512:
6
- metadata.gz: b1ef6ca4d36e6c1fc0bbbeaa88a0ab764b66997b2ac8c1da2c546a8208f8368f9da6376341cdcc69a4d840a411ace4e5c38a30d71f6fa1463d1c24385a0164b2
7
- data.tar.gz: 971f0fb5b2fe9d242ea98e1d7a51ee227f586580a04f14bf3c5af4e56541167c2e2f2d3e78977f7c3b78712a08ebf7af97e722ac7363da82cfe8e77e0ae8d387
6
+ metadata.gz: 2b6e3b2865de73eff4c74e5e0229f83358153af6a00c976bf8de0b0863e29b85875a0f52ea88af8e594caf9eeb0b00f04d37526cf6904f51c71263b07685c831
7
+ data.tar.gz: b753f4ed2f3f3ca7f8cd72647bb92abe91e973b1cc08d5c206c79f1b6cfab0c801abf1e055a1515adc3369db71eaa9c1e4bbb2691532942f9c3dbadbf2dae976
@@ -1,3 +1,7 @@
1
+ # 0.3.0 - 28 April 2020
2
+
3
+ - Fix: namespace of error class
4
+
1
5
  # 0.2.0 - 5 March 2020
2
6
 
3
7
  - Fix: Handle 'successful' API errors (i.e., HTTP 200 response, but API error such as User Not Found)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- twitter_labs_api (0.2.0)
4
+ twitter_labs_api (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -45,8 +45,8 @@ Currently, the following endpoints are implemented:
45
45
 
46
46
  - `TwitterLabsAPI#get_tweet` - Retrieve a single Tweet object with an `id`
47
47
  - `TwitterLabsAPI#get_tweets` - Retrieve multiple Tweets with a collection of `ids`
48
- - `TwitterLabsAPI#get_user`, - Retrieve a single user object with an `id`
49
- - `TwitterLabsAPI#get_users`, - Retrieve multiple user objects with a collection of `ids`
48
+ - `TwitterLabsAPI#get_user` - Retrieve a single user object with an `id`
49
+ - `TwitterLabsAPI#get_users` - Retrieve multiple user objects with a collection of `ids`
50
50
 
51
51
  ## Roadmap
52
52
 
@@ -6,12 +6,12 @@ require 'active_support/core_ext/hash/indifferent_access'
6
6
  DEFAULT_TWEET_FIELDS = %w[id author_id created_at lang public_metrics].freeze
7
7
  DEFAULT_USER_FIELDS = %w[name username].freeze
8
8
 
9
- class TwitterLabsAPIError < StandardError; end
10
-
11
9
  # A basic implementation of a Twitter Labs API client.
12
10
  class TwitterLabsAPI
13
11
  attr_accessor :bearer_token, :debug, :api_response, :parsed_response
14
12
 
13
+ class TwitterLabsAPIError < StandardError; end
14
+
15
15
  def initialize(bearer_token:, debug: false)
16
16
  @bearer_token = bearer_token
17
17
  @debug = debug
@@ -1,3 +1,3 @@
1
1
  class TwitterLabsAPI
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_labs_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tomholford
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-05 00:00:00.000000000 Z
11
+ date: 2020-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.0.3
82
+ rubygems_version: 3.1.2
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: A basic implementation of a Twitter Labs API client in Ruby