Skip to content

Commit 536d948

Browse files
authored
Merge pull request #5 from Crowd9/dependabot/bundler/json-2.19.2
Bump json from 2.18.0 to 2.19.2
2 parents 5b2ddf0 + 5f95bd2 commit 536d948

8 files changed

Lines changed: 177 additions & 132 deletions

File tree

.github/workflows/rspec.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: RSpec
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: ruby/setup-ruby@v1
14+
with:
15+
ruby-version: .ruby-version
16+
bundler-cache: true
17+
18+
- name: Run RSpec
19+
run: bundle exec rspec

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.0.0

Gemfile.lock

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,25 @@ PATH
88
GEM
99
remote: https://rubygems.org/
1010
specs:
11+
addressable (2.8.9)
12+
public_suffix (>= 2.0.2, < 8.0)
1113
bigdecimal (4.0.1)
14+
crack (1.0.1)
15+
bigdecimal
16+
rexml
1217
csv (3.3.5)
1318
diff-lcs (1.6.2)
19+
hashdiff (1.2.1)
1420
httparty (0.24.0)
1521
csv
1622
mini_mime (>= 1.0.0)
1723
multi_xml (>= 0.5.2)
18-
json (2.18.0)
24+
json (2.19.2)
1925
mini_mime (1.1.5)
2026
multi_xml (0.8.0)
2127
bigdecimal (>= 3.1, < 5)
28+
public_suffix (7.0.5)
29+
rexml (3.4.4)
2230
rspec (3.13.2)
2331
rspec-core (~> 3.13.0)
2432
rspec-expectations (~> 3.13.0)
@@ -32,6 +40,10 @@ GEM
3240
diff-lcs (>= 1.2.0, < 2.0)
3341
rspec-support (~> 3.13.0)
3442
rspec-support (3.13.6)
43+
webmock (3.26.2)
44+
addressable (>= 2.8.0)
45+
crack (>= 0.3.2)
46+
hashdiff (>= 0.4.0, < 2.0.0)
3547

3648
PLATFORMS
3749
arm64-darwin-25
@@ -40,6 +52,7 @@ PLATFORMS
4052
DEPENDENCIES
4153
rspec
4254
twitch!
55+
webmock
4356

4457
BUNDLED WITH
4558
2.7.2

lib/twitch/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def adapter=(adapter)
3131
def link
3232
scope = ""
3333
@scope.each { |s| scope += s + '+' }
34-
"#{@base_url}/oauth2/authorize?response_type=code&client_id=#{@client_id}&redirect_uri=#{@redirect_uri}&scope=#{scope}"
34+
"https://id.twitch.tv/oauth2/authorize?response_type=code&client_id=#{@client_id}&redirect_uri=#{@redirect_uri}&scope=#{scope}"
3535
end
3636

3737
def app_auth

spec/helpers/open_uri_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def self.request(method, url, options={})
77
if (method == :get)
88
ret = {}
99

10-
open(url) do |io|
10+
URI.open(url) do |io|
1111
ret[:body] = JSON.parse(io.read)
1212
ret[:response] = io.status.first.to_i
1313
end

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require 'rspec'
2+
require 'webmock/rspec'
23
require 'twitch'
34

45
RSpec.configure do |config|

0 commit comments

Comments
 (0)