Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
Many improvements
Browse files Browse the repository at this point in the history
Changes are described in `CHANGELOG.md`.
  • Loading branch information
AlexWayfer committed Apr 5, 2020
1 parent 8611238 commit bbe76f4
Show file tree
Hide file tree
Showing 56 changed files with 4,109 additions and 807 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
indent_style = space
indent_size = 4
3 changes: 3 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--color
--format documentation
--require spec_helper.rb
24 changes: 24 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
require:
- rubocop-performance
- rubocop-rspec

Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation

Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true

Metrics/BlockLength:
Exclude:
- spec/**/*.rb

RSpec/NestedGroups:
Max: 5
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## master

* Remove `Twitch.new`, use `Twitch::Client.new`.
* Use `twitch_oauth2` gem for authentication (parameters changed).
Check `README` for additional info.
* Replace custom adapters and `HTTParty` with `Faraday` and its adapters.
* Delete undocumented `channel_panels` and `chat_links` methods
not from Kraken version.
* Rename `edit_channel` to `update_channel`.
* Use [`VCR`](https://relishapp.com/vcr/vcr/docs) (recorded HTTP requests)
for tests.

## 0.1.3

* Add options to `following` and `followed` methods.
* Add `channel_panels` method.

## 0.1.2

* Fix `Twitch::Client#unfollow` method name.
* Allow `Twitch::Client#subscribed` method to receive query string options.

## 0.1.1

* Allow to override `oauth_token` in options.

## 0.1.0

* Replace `camelCase` method names with `snake_case`.
* Remove `get_` prefix from method names.
* Make `your_` prefix optional (e.g. `user` and `your_user` are equal).
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gemspec

gem 'twitch_oauth2',
github: 'AlexWayfer/twitch_oauth2', branch: 'update_for_twitch-rb_gem'
98 changes: 76 additions & 22 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,38 +1,92 @@
GIT
remote: https://github.com/AlexWayfer/twitch_oauth2.git
revision: a739d534cf8a9ec80ebd37da880eb83462a7eec5
branch: update_for_twitch-rb_gem
specs:
twitch_oauth2 (0.1.0)
faraday (~> 1.0)
faraday_middleware (~> 1.0)

PATH
remote: .
specs:
twitch (0.1.2)
httparty
json
twitch (0.1.3)
faraday (~> 1.0)
faraday_middleware (~> 1.0)
twitch_oauth2 (~> 0.1.0)

GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.2.5)
httparty (0.13.7)
json (~> 1.8)
multi_xml (>= 0.5.2)
json (1.8.3)
multi_xml (0.5.5)
rspec (3.0.0)
rspec-core (~> 3.0.0)
rspec-expectations (~> 3.0.0)
rspec-mocks (~> 3.0.0)
rspec-core (3.0.3)
rspec-support (~> 3.0.0)
rspec-expectations (3.0.3)
ast (2.4.0)
byebug (11.1.1)
coderay (1.1.2)
diff-lcs (1.3)
docile (1.3.2)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
faraday_middleware (1.0.0)
faraday (~> 1.0)
jaro_winkler (1.5.4)
method_source (1.0.0)
multipart-post (2.1.1)
parallel (1.19.1)
parser (2.7.0.5)
ast (~> 2.4.0)
pry (0.13.0)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.9.0)
byebug (~> 11.0)
pry (~> 0.13.0)
rainbow (3.0.0)
rexml (3.2.4)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.1)
rspec-support (~> 3.9.1)
rspec-expectations (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.0.0)
rspec-mocks (3.0.3)
rspec-support (~> 3.0.0)
rspec-support (3.0.3)
rspec-support (~> 3.9.0)
rspec-support (3.9.2)
rubocop (0.80.1)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.7.0.1)
rainbow (>= 2.2.2, < 4.0)
rexml
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
rubocop-performance (1.5.2)
rubocop (>= 0.71.0)
rubocop-rspec (1.38.1)
rubocop (>= 0.68.1)
ruby-progressbar (1.10.1)
simplecov (0.18.5)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-html (0.12.2)
unicode-display_width (1.6.1)
vcr (5.1.0)

PLATFORMS
ruby

DEPENDENCIES
rspec
pry-byebug (~> 3.9)
rspec (~> 3.9)
rubocop (~> 0.80.0)
rubocop-performance (~> 1.5)
rubocop-rspec (~> 1.38)
simplecov (~> 0.18.0)
twitch!
twitch_oauth2!
vcr (~> 5.1)

BUNDLED WITH
1.11.2
2.1.4
Loading

0 comments on commit bbe76f4

Please sign in to comment.