twitchrb 1.2.6 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +15 -2
  3. data/.rubocop.yml +8 -0
  4. data/Gemfile +3 -1
  5. data/Gemfile.lock +70 -2
  6. data/README.md +53 -2
  7. data/Rakefile +1 -1
  8. data/lib/twitch/client.rb +5 -5
  9. data/lib/twitch/collection.rb +12 -0
  10. data/lib/twitch/oauth.rb +3 -5
  11. data/lib/twitch/object.rb +1 -1
  12. data/lib/twitch/objects/warning.rb +4 -0
  13. data/lib/twitch/resources/announcements.rb +1 -3
  14. data/lib/twitch/resources/automod.rb +4 -6
  15. data/lib/twitch/resources/badges.rb +0 -2
  16. data/lib/twitch/resources/banned_events.rb +0 -2
  17. data/lib/twitch/resources/banned_users.rb +1 -3
  18. data/lib/twitch/resources/blocked_terms.rb +2 -4
  19. data/lib/twitch/resources/channels.rb +2 -4
  20. data/lib/twitch/resources/charity_campaigns.rb +1 -3
  21. data/lib/twitch/resources/chat_messages.rb +1 -3
  22. data/lib/twitch/resources/chatters.rb +1 -3
  23. data/lib/twitch/resources/clips.rb +1 -3
  24. data/lib/twitch/resources/custom_reward_redemptions.rb +2 -4
  25. data/lib/twitch/resources/custom_rewards.rb +3 -5
  26. data/lib/twitch/resources/emotes.rb +0 -2
  27. data/lib/twitch/resources/event_sub_conduit.rb +2 -4
  28. data/lib/twitch/resources/eventsub_conduits.rb +5 -7
  29. data/lib/twitch/resources/eventsub_subscriptions.rb +2 -4
  30. data/lib/twitch/resources/games.rb +5 -7
  31. data/lib/twitch/resources/goals.rb +1 -3
  32. data/lib/twitch/resources/hype_train_events.rb +1 -3
  33. data/lib/twitch/resources/moderator_events.rb +0 -2
  34. data/lib/twitch/resources/moderators.rb +2 -4
  35. data/lib/twitch/resources/polls.rb +2 -4
  36. data/lib/twitch/resources/predictions.rb +2 -4
  37. data/lib/twitch/resources/raids.rb +1 -3
  38. data/lib/twitch/resources/search.rb +0 -2
  39. data/lib/twitch/resources/shoutouts.rb +0 -2
  40. data/lib/twitch/resources/stream_markers.rb +0 -2
  41. data/lib/twitch/resources/stream_schedule.rb +5 -7
  42. data/lib/twitch/resources/streams.rb +0 -2
  43. data/lib/twitch/resources/subscriptions.rb +2 -4
  44. data/lib/twitch/resources/tags.rb +0 -2
  45. data/lib/twitch/resources/unban_requests.rb +2 -5
  46. data/lib/twitch/resources/users.rb +9 -11
  47. data/lib/twitch/resources/videos.rb +1 -3
  48. data/lib/twitch/resources/vips.rb +1 -3
  49. data/lib/twitch/resources/warnings.rb +12 -0
  50. data/lib/twitch/resources/whispers.rb +1 -3
  51. data/lib/twitch/version.rb +1 -1
  52. data/lib/twitch.rb +2 -2
  53. data/lib/twitchrb.rb +1 -1
  54. data/twitchrb.gemspec +3 -3
  55. metadata +5 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitchrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Perry
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-27 00:00:00.000000000 Z
11
+ date: 2024-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -35,6 +35,7 @@ files:
35
35
  - ".github/FUNDING.yml"
36
36
  - ".github/workflows/ci.yml"
37
37
  - ".gitignore"
38
+ - ".rubocop.yml"
38
39
  - Gemfile
39
40
  - Gemfile.lock
40
41
  - LICENSE.txt
@@ -89,6 +90,7 @@ files:
89
90
  - lib/twitch/objects/user_color.rb
90
91
  - lib/twitch/objects/video.rb
91
92
  - lib/twitch/objects/vip.rb
93
+ - lib/twitch/objects/warning.rb
92
94
  - lib/twitch/resource.rb
93
95
  - lib/twitch/resources/announcements.rb
94
96
  - lib/twitch/resources/automod.rb
@@ -126,6 +128,7 @@ files:
126
128
  - lib/twitch/resources/users.rb
127
129
  - lib/twitch/resources/videos.rb
128
130
  - lib/twitch/resources/vips.rb
131
+ - lib/twitch/resources/warnings.rb
129
132
  - lib/twitch/resources/whispers.rb
130
133
  - lib/twitch/version.rb
131
134
  - lib/twitchrb.rb