twitchrb 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60c3e4872fe539340033a16467e0091ff8d0dbc4bef5f0e9f3aa71f524883b80
4
- data.tar.gz: 76df58744f36bea5b0e8884958bbd05ff91cfce41a072b3c46c9df26aec2a0ab
3
+ metadata.gz: 1df6403caadd7a32c52d8c3c17f9cbf4347cc3b830d5d02bdb2328b82770271d
4
+ data.tar.gz: ddefb273c7f21aa359da843dd50e9c1caedb6ace5c3a65bbead6809e50830149
5
5
  SHA512:
6
- metadata.gz: 530d727b629c4c1a3c52f7839e27a69466d5af0653370b371ab33f03175665a8c8851b1058c87264011e1700dd6e7fd36eb9337b207714d332785f6c9e2d0285
7
- data.tar.gz: 25a314a0961681b53d2fc94a2aff462bfcca32d7d2807aad3a034289ea65f3289c8dafccb2ccd9928380e9daa98ec648669b5ee1a0451c867b019102ba3d5e78
6
+ metadata.gz: e8e9852558b0b8888ba5a805bea1fa48d02c80680385f48a763da6800780f3ebf4bcc2a160e30cbe1025c83a20b87d957f358a4e930394c3ab27a40a1ce8a30e
7
+ data.tar.gz: 236dc69a027f34684c88bf527a7f0dd2a77bad46699b2e7cfbe25512014bd009e4fe4a0181b3874a6c141135d21118e12f0dfbf16d030491349829a84a726b14
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- twitchrb (1.0.3)
4
+ twitchrb (1.0.4)
5
5
  faraday (~> 2.0)
6
6
 
7
7
  GEM
data/lib/twitch/client.rb CHANGED
@@ -152,7 +152,12 @@ module Twitch
152
152
  def connection
153
153
  @connection ||= Faraday.new(BASE_URL) do |conn|
154
154
  conn.request :authorization, :Bearer, access_token
155
- conn.headers = { "Client-ID": client_id }
155
+
156
+ conn.headers = {
157
+ "User-Agent" => "twitchrb/v#{VERSION} (github.com/deanpcmad/twitchrb)",
158
+ "Client-ID": client_id
159
+ }
160
+
156
161
  conn.request :json
157
162
 
158
163
  conn.response :json, content_type: "application/json"
@@ -1,3 +1,3 @@
1
1
  module Twitch
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitchrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Perry
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubygems_version: 3.4.3
146
+ rubygems_version: 3.4.5
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: A Ruby library for interacting with the Twitch Helix API