twitchrb 1.11.0 → 2.1.0
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 +4 -4
- data/CHANGELOG.md +97 -0
- data/LICENSE.txt +1 -1
- data/README.md +373 -46
- data/lib/twitch/client.rb +109 -20
- data/lib/twitch/collection.rb +54 -8
- data/lib/twitch/eventsub_webhook.rb +140 -0
- data/lib/twitch/oauth.rb +51 -14
- data/lib/twitch/object.rb +93 -14
- data/lib/twitch/objects/ad_schedule.rb +4 -0
- data/lib/twitch/objects/analytics_report.rb +4 -0
- data/lib/twitch/objects/bits_leaderboard_entry.rb +4 -0
- data/lib/twitch/objects/charity_donation.rb +4 -0
- data/lib/twitch/objects/chat_settings.rb +4 -0
- data/lib/twitch/objects/cheermote.rb +4 -0
- data/lib/twitch/objects/content_classification_label.rb +4 -0
- data/lib/twitch/objects/drops_entitlement.rb +4 -0
- data/lib/twitch/objects/drops_entitlement_update.rb +4 -0
- data/lib/twitch/objects/extension.rb +4 -0
- data/lib/twitch/objects/extension_bits_product.rb +4 -0
- data/lib/twitch/objects/extension_configuration_segment.rb +4 -0
- data/lib/twitch/objects/extension_live_channel.rb +4 -0
- data/lib/twitch/objects/extension_secret.rb +4 -0
- data/lib/twitch/objects/extension_transaction.rb +4 -0
- data/lib/twitch/objects/guest_star_invite.rb +4 -0
- data/lib/twitch/objects/guest_star_session.rb +4 -0
- data/lib/twitch/objects/guest_star_settings.rb +4 -0
- data/lib/twitch/objects/shield_mode_status.rb +4 -0
- data/lib/twitch/objects/{tag.rb → team.rb} +1 -1
- data/lib/twitch/objects/user_active_extensions.rb +4 -0
- data/lib/twitch/objects/user_extension.rb +4 -0
- data/lib/twitch/resource.rb +29 -0
- data/lib/twitch/resources/ads.rb +18 -0
- data/lib/twitch/resources/analytics.rb +19 -0
- data/lib/twitch/resources/announcements.rb +1 -1
- data/lib/twitch/resources/automod.rb +7 -7
- data/lib/twitch/resources/badges.rb +2 -2
- data/lib/twitch/resources/banned_users.rb +3 -3
- data/lib/twitch/resources/bits.rb +16 -0
- data/lib/twitch/resources/blocked_terms.rb +3 -3
- data/lib/twitch/resources/channels.rb +4 -4
- data/lib/twitch/resources/charity_campaigns.rb +8 -0
- data/lib/twitch/resources/chat_settings.rb +20 -0
- data/lib/twitch/resources/chatters.rb +1 -1
- data/lib/twitch/resources/clips.rb +3 -9
- data/lib/twitch/resources/content_classification_labels.rb +8 -0
- data/lib/twitch/resources/custom_power_ups.rb +1 -1
- data/lib/twitch/resources/custom_reward_redemptions.rb +3 -4
- data/lib/twitch/resources/custom_rewards.rb +5 -5
- data/lib/twitch/resources/drops_entitlements.rb +17 -0
- data/lib/twitch/resources/emotes.rb +3 -3
- data/lib/twitch/resources/eventsub_conduits.rb +14 -4
- data/lib/twitch/resources/eventsub_subscriptions.rb +1 -1
- data/lib/twitch/resources/extensions.rb +99 -0
- data/lib/twitch/resources/games.rb +3 -3
- data/lib/twitch/resources/goals.rb +1 -1
- data/lib/twitch/resources/guest_star.rb +102 -0
- data/lib/twitch/resources/moderators.rb +3 -3
- data/lib/twitch/resources/pinned_chat_messages.rb +4 -11
- data/lib/twitch/resources/polls.rb +1 -1
- data/lib/twitch/resources/predictions.rb +1 -1
- data/lib/twitch/resources/raids.rb +2 -3
- data/lib/twitch/resources/search.rb +2 -2
- data/lib/twitch/resources/shield_mode.rb +18 -0
- data/lib/twitch/resources/shoutouts.rb +1 -1
- data/lib/twitch/resources/stream_markers.rb +1 -1
- data/lib/twitch/resources/stream_schedule.rb +4 -5
- data/lib/twitch/resources/streams.rb +2 -2
- data/lib/twitch/resources/subscriptions.rb +13 -2
- data/lib/twitch/resources/suspicious_users.rb +1 -1
- data/lib/twitch/resources/teams.rb +20 -0
- data/lib/twitch/resources/unban_requests.rb +2 -2
- data/lib/twitch/resources/users.rb +30 -34
- data/lib/twitch/resources/videos.rb +2 -2
- data/lib/twitch/resources/vips.rb +2 -2
- data/lib/twitch/resources/warnings.rb +2 -2
- data/lib/twitch/resources/whispers.rb +1 -1
- data/lib/twitch/version.rb +1 -1
- data/lib/twitch.rb +33 -10
- metadata +42 -46
- data/.env.example +0 -3
- data/.github/FUNDING.yml +0 -5
- data/.github/dependabot.yml +0 -11
- data/.github/workflows/ci.yml +0 -39
- data/.gitignore +0 -9
- data/.rubocop.yml +0 -16
- data/Gemfile +0 -13
- data/Gemfile.lock +0 -144
- data/Rakefile +0 -10
- data/bin/console +0 -23
- data/bin/setup +0 -8
- data/bin/smoke +0 -118
- data/lib/twitch/objects/banned_event.rb +0 -4
- data/lib/twitch/objects/followed_user.rb +0 -4
- data/lib/twitch/objects/hype_train_event.rb +0 -4
- data/lib/twitch/objects/moderator_event.rb +0 -4
- data/lib/twitch/resources/banned_events.rb +0 -8
- data/lib/twitch/resources/hype_train_events.rb +0 -10
- data/lib/twitch/resources/moderator_events.rb +0 -9
- data/lib/twitch/resources/tags.rb +0 -18
- data/mise.toml +0 -2
- data/twitchrb.gemspec +0 -29
data/lib/twitch.rb
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
require "faraday"
|
|
2
2
|
require "json"
|
|
3
|
-
require "ostruct"
|
|
4
3
|
require "twitch/version"
|
|
5
4
|
|
|
6
5
|
module Twitch
|
|
@@ -18,6 +17,7 @@ module Twitch
|
|
|
18
17
|
autoload :Object, "twitch/object"
|
|
19
18
|
|
|
20
19
|
autoload :OAuth, "twitch/oauth"
|
|
20
|
+
autoload :EventsubWebhook, "twitch/eventsub_webhook"
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
autoload :UsersResource, "twitch/resources/users"
|
|
@@ -29,10 +29,8 @@ module Twitch
|
|
|
29
29
|
autoload :ClipsResource, "twitch/resources/clips"
|
|
30
30
|
autoload :EventsubSubscriptionsResource, "twitch/resources/eventsub_subscriptions"
|
|
31
31
|
autoload :EventsubConduitsResource, "twitch/resources/eventsub_conduits"
|
|
32
|
-
autoload :BannedEventsResource, "twitch/resources/banned_events"
|
|
33
32
|
autoload :BannedUsersResource, "twitch/resources/banned_users"
|
|
34
33
|
autoload :ModeratorsResource, "twitch/resources/moderators"
|
|
35
|
-
autoload :ModeratorEventsResource, "twitch/resources/moderator_events"
|
|
36
34
|
autoload :PollsResource, "twitch/resources/polls"
|
|
37
35
|
autoload :PredictionsResource, "twitch/resources/predictions"
|
|
38
36
|
autoload :StreamScheduleResource, "twitch/resources/stream_schedule"
|
|
@@ -40,12 +38,10 @@ module Twitch
|
|
|
40
38
|
autoload :StreamsResource, "twitch/resources/streams"
|
|
41
39
|
autoload :StreamMarkersResource, "twitch/resources/stream_markers"
|
|
42
40
|
autoload :SubscriptionsResource, "twitch/resources/subscriptions"
|
|
43
|
-
autoload :TagsResource, "twitch/resources/tags"
|
|
44
41
|
autoload :CustomRewardsResource, "twitch/resources/custom_rewards"
|
|
45
42
|
autoload :CustomRewardRedemptionsResource, "twitch/resources/custom_reward_redemptions"
|
|
46
43
|
autoload :CustomPowerUpsResource, "twitch/resources/custom_power_ups"
|
|
47
44
|
autoload :GoalsResource, "twitch/resources/goals"
|
|
48
|
-
autoload :HypeTrainEventsResource, "twitch/resources/hype_train_events"
|
|
49
45
|
autoload :HypeTrainStatusResource, "twitch/resources/hype_train_status"
|
|
50
46
|
autoload :AnnouncementsResource, "twitch/resources/announcements"
|
|
51
47
|
autoload :RaidsResource, "twitch/resources/raids"
|
|
@@ -62,10 +58,19 @@ module Twitch
|
|
|
62
58
|
autoload :UnbanRequestsResource, "twitch/resources/unban_requests"
|
|
63
59
|
autoload :WarningsResource, "twitch/resources/warnings"
|
|
64
60
|
autoload :SuspiciousUsersResource, "twitch/resources/suspicious_users"
|
|
61
|
+
autoload :AdsResource, "twitch/resources/ads"
|
|
62
|
+
autoload :AnalyticsResource, "twitch/resources/analytics"
|
|
63
|
+
autoload :BitsResource, "twitch/resources/bits"
|
|
64
|
+
autoload :ChatSettingsResource, "twitch/resources/chat_settings"
|
|
65
|
+
autoload :ContentClassificationLabelsResource, "twitch/resources/content_classification_labels"
|
|
66
|
+
autoload :DropsEntitlementsResource, "twitch/resources/drops_entitlements"
|
|
67
|
+
autoload :ExtensionsResource, "twitch/resources/extensions"
|
|
68
|
+
autoload :GuestStarResource, "twitch/resources/guest_star"
|
|
69
|
+
autoload :ShieldModeResource, "twitch/resources/shield_mode"
|
|
70
|
+
autoload :TeamsResource, "twitch/resources/teams"
|
|
65
71
|
|
|
66
72
|
|
|
67
73
|
autoload :User, "twitch/objects/user"
|
|
68
|
-
autoload :FollowedUser, "twitch/objects/followed_user"
|
|
69
74
|
autoload :BlockedUser, "twitch/objects/blocked_user"
|
|
70
75
|
autoload :StreamKey, "twitch/objects/stream_key"
|
|
71
76
|
|
|
@@ -80,10 +85,8 @@ module Twitch
|
|
|
80
85
|
autoload :EventsubSubscription, "twitch/objects/eventsub_subscription"
|
|
81
86
|
autoload :EventsubConduit, "twitch/objects/eventsub_conduit"
|
|
82
87
|
autoload :EventsubConduitShard, "twitch/objects/eventsub_conduit_shard"
|
|
83
|
-
autoload :BannedEvent, "twitch/objects/banned_event"
|
|
84
88
|
autoload :BannedUser, "twitch/objects/banned_user"
|
|
85
89
|
autoload :Moderator, "twitch/objects/moderator"
|
|
86
|
-
autoload :ModeratorEvent, "twitch/objects/moderator_event"
|
|
87
90
|
autoload :Poll, "twitch/objects/poll"
|
|
88
91
|
autoload :Prediction, "twitch/objects/prediction"
|
|
89
92
|
autoload :StreamSchedule, "twitch/objects/stream_schedule"
|
|
@@ -92,12 +95,10 @@ module Twitch
|
|
|
92
95
|
autoload :StreamMarker, "twitch/objects/stream_marker"
|
|
93
96
|
autoload :Subscription, "twitch/objects/subscription"
|
|
94
97
|
autoload :SubscriptionCount, "twitch/objects/subscription_count"
|
|
95
|
-
autoload :Tag, "twitch/objects/tag"
|
|
96
98
|
autoload :CustomReward, "twitch/objects/custom_reward"
|
|
97
99
|
autoload :CustomRewardRedemption, "twitch/objects/custom_reward_redemption"
|
|
98
100
|
autoload :CustomPowerUp, "twitch/objects/custom_power_up"
|
|
99
101
|
autoload :Goal, "twitch/objects/goal"
|
|
100
|
-
autoload :HypeTrainEvent, "twitch/objects/hype_train_event"
|
|
101
102
|
autoload :HypeTrainStatus, "twitch/objects/hype_train_status"
|
|
102
103
|
autoload :FollowCount, "twitch/objects/follow_count"
|
|
103
104
|
autoload :Raid, "twitch/objects/raid"
|
|
@@ -115,4 +116,26 @@ module Twitch
|
|
|
115
116
|
autoload :Warning, "twitch/objects/warning"
|
|
116
117
|
autoload :SuspiciousUser, "twitch/objects/suspicious_user"
|
|
117
118
|
autoload :UserAuthorization, "twitch/objects/user_authorization"
|
|
119
|
+
autoload :AdSchedule, "twitch/objects/ad_schedule"
|
|
120
|
+
autoload :AnalyticsReport, "twitch/objects/analytics_report"
|
|
121
|
+
autoload :BitsLeaderboardEntry, "twitch/objects/bits_leaderboard_entry"
|
|
122
|
+
autoload :Cheermote, "twitch/objects/cheermote"
|
|
123
|
+
autoload :CharityDonation, "twitch/objects/charity_donation"
|
|
124
|
+
autoload :ChatSettings, "twitch/objects/chat_settings"
|
|
125
|
+
autoload :ContentClassificationLabel, "twitch/objects/content_classification_label"
|
|
126
|
+
autoload :DropsEntitlement, "twitch/objects/drops_entitlement"
|
|
127
|
+
autoload :DropsEntitlementUpdate, "twitch/objects/drops_entitlement_update"
|
|
128
|
+
autoload :ShieldModeStatus, "twitch/objects/shield_mode_status"
|
|
129
|
+
autoload :Team, "twitch/objects/team"
|
|
130
|
+
autoload :UserExtension, "twitch/objects/user_extension"
|
|
131
|
+
autoload :UserActiveExtensions, "twitch/objects/user_active_extensions"
|
|
132
|
+
autoload :Extension, "twitch/objects/extension"
|
|
133
|
+
autoload :ExtensionLiveChannel, "twitch/objects/extension_live_channel"
|
|
134
|
+
autoload :ExtensionConfigurationSegment, "twitch/objects/extension_configuration_segment"
|
|
135
|
+
autoload :ExtensionSecret, "twitch/objects/extension_secret"
|
|
136
|
+
autoload :ExtensionBitsProduct, "twitch/objects/extension_bits_product"
|
|
137
|
+
autoload :ExtensionTransaction, "twitch/objects/extension_transaction"
|
|
138
|
+
autoload :GuestStarSettings, "twitch/objects/guest_star_settings"
|
|
139
|
+
autoload :GuestStarSession, "twitch/objects/guest_star_session"
|
|
140
|
+
autoload :GuestStarInvite, "twitch/objects/guest_star_invite"
|
|
118
141
|
end
|
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twitchrb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dean Perry
|
|
8
|
-
bindir:
|
|
8
|
+
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
@@ -29,83 +29,73 @@ dependencies:
|
|
|
29
29
|
- - "<"
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
31
|
version: '3'
|
|
32
|
-
- !ruby/object:Gem::Dependency
|
|
33
|
-
name: ostruct
|
|
34
|
-
requirement: !ruby/object:Gem::Requirement
|
|
35
|
-
requirements:
|
|
36
|
-
- - "~>"
|
|
37
|
-
- !ruby/object:Gem::Version
|
|
38
|
-
version: 0.6.0
|
|
39
|
-
type: :runtime
|
|
40
|
-
prerelease: false
|
|
41
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
42
|
-
requirements:
|
|
43
|
-
- - "~>"
|
|
44
|
-
- !ruby/object:Gem::Version
|
|
45
|
-
version: 0.6.0
|
|
46
32
|
email:
|
|
47
|
-
- dean@
|
|
33
|
+
- dean@voupe.com
|
|
48
34
|
executables: []
|
|
49
35
|
extensions: []
|
|
50
36
|
extra_rdoc_files: []
|
|
51
37
|
files:
|
|
52
|
-
- ".env.example"
|
|
53
|
-
- ".github/FUNDING.yml"
|
|
54
|
-
- ".github/dependabot.yml"
|
|
55
|
-
- ".github/workflows/ci.yml"
|
|
56
|
-
- ".gitignore"
|
|
57
|
-
- ".rubocop.yml"
|
|
58
38
|
- CHANGELOG.md
|
|
59
|
-
- Gemfile
|
|
60
|
-
- Gemfile.lock
|
|
61
39
|
- LICENSE.txt
|
|
62
40
|
- README.md
|
|
63
|
-
- Rakefile
|
|
64
|
-
- bin/console
|
|
65
|
-
- bin/setup
|
|
66
|
-
- bin/smoke
|
|
67
41
|
- lib/twitch.rb
|
|
68
42
|
- lib/twitch/client.rb
|
|
69
43
|
- lib/twitch/collection.rb
|
|
70
44
|
- lib/twitch/error.rb
|
|
71
45
|
- lib/twitch/error_generator.rb
|
|
46
|
+
- lib/twitch/eventsub_webhook.rb
|
|
72
47
|
- lib/twitch/oauth.rb
|
|
73
48
|
- lib/twitch/object.rb
|
|
49
|
+
- lib/twitch/objects/ad_schedule.rb
|
|
50
|
+
- lib/twitch/objects/analytics_report.rb
|
|
74
51
|
- lib/twitch/objects/automod_setting.rb
|
|
75
52
|
- lib/twitch/objects/automod_status.rb
|
|
76
53
|
- lib/twitch/objects/badge.rb
|
|
77
|
-
- lib/twitch/objects/banned_event.rb
|
|
78
54
|
- lib/twitch/objects/banned_user.rb
|
|
55
|
+
- lib/twitch/objects/bits_leaderboard_entry.rb
|
|
79
56
|
- lib/twitch/objects/blocked_term.rb
|
|
80
57
|
- lib/twitch/objects/blocked_user.rb
|
|
81
58
|
- lib/twitch/objects/channel.rb
|
|
82
59
|
- lib/twitch/objects/channel_editor.rb
|
|
83
60
|
- lib/twitch/objects/charity_campaign.rb
|
|
61
|
+
- lib/twitch/objects/charity_donation.rb
|
|
84
62
|
- lib/twitch/objects/chat_message.rb
|
|
63
|
+
- lib/twitch/objects/chat_settings.rb
|
|
85
64
|
- lib/twitch/objects/chatter.rb
|
|
65
|
+
- lib/twitch/objects/cheermote.rb
|
|
86
66
|
- lib/twitch/objects/clip.rb
|
|
87
67
|
- lib/twitch/objects/clip_download.rb
|
|
68
|
+
- lib/twitch/objects/content_classification_label.rb
|
|
88
69
|
- lib/twitch/objects/custom_power_up.rb
|
|
89
70
|
- lib/twitch/objects/custom_reward.rb
|
|
90
71
|
- lib/twitch/objects/custom_reward_redemption.rb
|
|
72
|
+
- lib/twitch/objects/drops_entitlement.rb
|
|
73
|
+
- lib/twitch/objects/drops_entitlement_update.rb
|
|
91
74
|
- lib/twitch/objects/emote.rb
|
|
92
75
|
- lib/twitch/objects/eventsub_conduit.rb
|
|
93
76
|
- lib/twitch/objects/eventsub_conduit_shard.rb
|
|
94
77
|
- lib/twitch/objects/eventsub_subscription.rb
|
|
78
|
+
- lib/twitch/objects/extension.rb
|
|
79
|
+
- lib/twitch/objects/extension_bits_product.rb
|
|
80
|
+
- lib/twitch/objects/extension_configuration_segment.rb
|
|
81
|
+
- lib/twitch/objects/extension_live_channel.rb
|
|
82
|
+
- lib/twitch/objects/extension_secret.rb
|
|
83
|
+
- lib/twitch/objects/extension_transaction.rb
|
|
95
84
|
- lib/twitch/objects/follow_count.rb
|
|
96
|
-
- lib/twitch/objects/followed_user.rb
|
|
97
85
|
- lib/twitch/objects/game.rb
|
|
98
86
|
- lib/twitch/objects/goal.rb
|
|
99
|
-
- lib/twitch/objects/
|
|
87
|
+
- lib/twitch/objects/guest_star_invite.rb
|
|
88
|
+
- lib/twitch/objects/guest_star_session.rb
|
|
89
|
+
- lib/twitch/objects/guest_star_settings.rb
|
|
100
90
|
- lib/twitch/objects/hype_train_status.rb
|
|
101
91
|
- lib/twitch/objects/moderator.rb
|
|
102
|
-
- lib/twitch/objects/moderator_event.rb
|
|
103
92
|
- lib/twitch/objects/pinned_chat_message.rb
|
|
104
93
|
- lib/twitch/objects/poll.rb
|
|
105
94
|
- lib/twitch/objects/prediction.rb
|
|
106
95
|
- lib/twitch/objects/raid.rb
|
|
107
96
|
- lib/twitch/objects/search_result.rb
|
|
108
97
|
- lib/twitch/objects/shared_chat_session.rb
|
|
98
|
+
- lib/twitch/objects/shield_mode_status.rb
|
|
109
99
|
- lib/twitch/objects/stream.rb
|
|
110
100
|
- lib/twitch/objects/stream_key.rb
|
|
111
101
|
- lib/twitch/objects/stream_marker.rb
|
|
@@ -113,38 +103,45 @@ files:
|
|
|
113
103
|
- lib/twitch/objects/subscription.rb
|
|
114
104
|
- lib/twitch/objects/subscription_count.rb
|
|
115
105
|
- lib/twitch/objects/suspicious_user.rb
|
|
116
|
-
- lib/twitch/objects/
|
|
106
|
+
- lib/twitch/objects/team.rb
|
|
117
107
|
- lib/twitch/objects/unban_request.rb
|
|
118
108
|
- lib/twitch/objects/user.rb
|
|
109
|
+
- lib/twitch/objects/user_active_extensions.rb
|
|
119
110
|
- lib/twitch/objects/user_authorization.rb
|
|
120
111
|
- lib/twitch/objects/user_color.rb
|
|
112
|
+
- lib/twitch/objects/user_extension.rb
|
|
121
113
|
- lib/twitch/objects/video.rb
|
|
122
114
|
- lib/twitch/objects/vip.rb
|
|
123
115
|
- lib/twitch/objects/warning.rb
|
|
124
116
|
- lib/twitch/rate_limiter.rb
|
|
125
117
|
- lib/twitch/resource.rb
|
|
118
|
+
- lib/twitch/resources/ads.rb
|
|
119
|
+
- lib/twitch/resources/analytics.rb
|
|
126
120
|
- lib/twitch/resources/announcements.rb
|
|
127
121
|
- lib/twitch/resources/automod.rb
|
|
128
122
|
- lib/twitch/resources/badges.rb
|
|
129
|
-
- lib/twitch/resources/banned_events.rb
|
|
130
123
|
- lib/twitch/resources/banned_users.rb
|
|
124
|
+
- lib/twitch/resources/bits.rb
|
|
131
125
|
- lib/twitch/resources/blocked_terms.rb
|
|
132
126
|
- lib/twitch/resources/channels.rb
|
|
133
127
|
- lib/twitch/resources/charity_campaigns.rb
|
|
134
128
|
- lib/twitch/resources/chat_messages.rb
|
|
129
|
+
- lib/twitch/resources/chat_settings.rb
|
|
135
130
|
- lib/twitch/resources/chatters.rb
|
|
136
131
|
- lib/twitch/resources/clips.rb
|
|
132
|
+
- lib/twitch/resources/content_classification_labels.rb
|
|
137
133
|
- lib/twitch/resources/custom_power_ups.rb
|
|
138
134
|
- lib/twitch/resources/custom_reward_redemptions.rb
|
|
139
135
|
- lib/twitch/resources/custom_rewards.rb
|
|
136
|
+
- lib/twitch/resources/drops_entitlements.rb
|
|
140
137
|
- lib/twitch/resources/emotes.rb
|
|
141
138
|
- lib/twitch/resources/eventsub_conduits.rb
|
|
142
139
|
- lib/twitch/resources/eventsub_subscriptions.rb
|
|
140
|
+
- lib/twitch/resources/extensions.rb
|
|
143
141
|
- lib/twitch/resources/games.rb
|
|
144
142
|
- lib/twitch/resources/goals.rb
|
|
145
|
-
- lib/twitch/resources/
|
|
143
|
+
- lib/twitch/resources/guest_star.rb
|
|
146
144
|
- lib/twitch/resources/hype_train_status.rb
|
|
147
|
-
- lib/twitch/resources/moderator_events.rb
|
|
148
145
|
- lib/twitch/resources/moderators.rb
|
|
149
146
|
- lib/twitch/resources/pinned_chat_messages.rb
|
|
150
147
|
- lib/twitch/resources/polls.rb
|
|
@@ -152,13 +149,14 @@ files:
|
|
|
152
149
|
- lib/twitch/resources/raids.rb
|
|
153
150
|
- lib/twitch/resources/search.rb
|
|
154
151
|
- lib/twitch/resources/shared_chat_sessions.rb
|
|
152
|
+
- lib/twitch/resources/shield_mode.rb
|
|
155
153
|
- lib/twitch/resources/shoutouts.rb
|
|
156
154
|
- lib/twitch/resources/stream_markers.rb
|
|
157
155
|
- lib/twitch/resources/stream_schedule.rb
|
|
158
156
|
- lib/twitch/resources/streams.rb
|
|
159
157
|
- lib/twitch/resources/subscriptions.rb
|
|
160
158
|
- lib/twitch/resources/suspicious_users.rb
|
|
161
|
-
- lib/twitch/resources/
|
|
159
|
+
- lib/twitch/resources/teams.rb
|
|
162
160
|
- lib/twitch/resources/unban_requests.rb
|
|
163
161
|
- lib/twitch/resources/users.rb
|
|
164
162
|
- lib/twitch/resources/videos.rb
|
|
@@ -167,15 +165,13 @@ files:
|
|
|
167
165
|
- lib/twitch/resources/whispers.rb
|
|
168
166
|
- lib/twitch/version.rb
|
|
169
167
|
- lib/twitchrb.rb
|
|
170
|
-
|
|
171
|
-
- twitchrb.gemspec
|
|
172
|
-
homepage: https://deanpcmad.com
|
|
168
|
+
homepage: https://github.com/d34ndev/twitchrb
|
|
173
169
|
licenses:
|
|
174
170
|
- MIT
|
|
175
171
|
metadata:
|
|
176
|
-
homepage_uri: https://
|
|
177
|
-
|
|
178
|
-
|
|
172
|
+
homepage_uri: https://github.com/d34ndev/twitchrb
|
|
173
|
+
changelog_uri: https://github.com/d34ndev/twitchrb/blob/main/CHANGELOG.md
|
|
174
|
+
bug_tracker_uri: https://github.com/d34ndev/twitchrb/issues
|
|
179
175
|
rdoc_options: []
|
|
180
176
|
require_paths:
|
|
181
177
|
- lib
|
|
@@ -183,14 +179,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
183
179
|
requirements:
|
|
184
180
|
- - ">="
|
|
185
181
|
- !ruby/object:Gem::Version
|
|
186
|
-
version:
|
|
182
|
+
version: '3.3'
|
|
187
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
184
|
requirements:
|
|
189
185
|
- - ">="
|
|
190
186
|
- !ruby/object:Gem::Version
|
|
191
187
|
version: '0'
|
|
192
188
|
requirements: []
|
|
193
|
-
rubygems_version: 4.0.
|
|
189
|
+
rubygems_version: 4.0.20
|
|
194
190
|
specification_version: 4
|
|
195
191
|
summary: A Ruby library for interacting with the Twitch Helix API
|
|
196
192
|
test_files: []
|
data/.env.example
DELETED
data/.github/FUNDING.yml
DELETED
data/.github/dependabot.yml
DELETED
data/.github/workflows/ci.yml
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
pull_request:
|
|
5
|
-
jobs:
|
|
6
|
-
lint:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
continue-on-error: true
|
|
9
|
-
steps:
|
|
10
|
-
- name: Checkout code
|
|
11
|
-
uses: actions/checkout@v7
|
|
12
|
-
- name: Set up Ruby
|
|
13
|
-
uses: ruby/setup-ruby@v1
|
|
14
|
-
with:
|
|
15
|
-
ruby-version: '4.0'
|
|
16
|
-
bundler-cache: true
|
|
17
|
-
- name: Lint code for consistent style
|
|
18
|
-
run: bundle exec rubocop -f github
|
|
19
|
-
|
|
20
|
-
test:
|
|
21
|
-
runs-on: ubuntu-latest
|
|
22
|
-
needs: lint
|
|
23
|
-
strategy:
|
|
24
|
-
fail-fast: false
|
|
25
|
-
matrix:
|
|
26
|
-
ruby_version:
|
|
27
|
-
- '3.3'
|
|
28
|
-
- '3.4'
|
|
29
|
-
- '4.0'
|
|
30
|
-
steps:
|
|
31
|
-
- uses: actions/checkout@v7
|
|
32
|
-
- uses: ruby/setup-ruby@v1
|
|
33
|
-
with:
|
|
34
|
-
ruby-version: ${{ matrix.ruby_version }}
|
|
35
|
-
bundler: default
|
|
36
|
-
bundler-cache: true
|
|
37
|
-
|
|
38
|
-
- name: Run tests
|
|
39
|
-
run: bundle exec rake test
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Omakase Ruby styling for Rails
|
|
2
|
-
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
|
|
3
|
-
|
|
4
|
-
AllCops:
|
|
5
|
-
Exclude:
|
|
6
|
-
- 'test/**/*'
|
|
7
|
-
TargetRubyVersion: 4.0
|
|
8
|
-
|
|
9
|
-
# Overwrite or add rules to create your own house style
|
|
10
|
-
#
|
|
11
|
-
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
|
|
12
|
-
# Layout/SpaceInsideArrayLiteralBrackets:
|
|
13
|
-
# Enabled: false
|
|
14
|
-
|
|
15
|
-
Rails/RefuteMethods:
|
|
16
|
-
Enabled: false
|
data/Gemfile
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
source "https://rubygems.org"
|
|
2
|
-
|
|
3
|
-
# Specify your gem's dependencies in twitch.gemspec
|
|
4
|
-
gemspec
|
|
5
|
-
|
|
6
|
-
gem "rake", "~> 12.0"
|
|
7
|
-
gem "minitest", "~> 5.0"
|
|
8
|
-
gem "dotenv"
|
|
9
|
-
gem "webmock"
|
|
10
|
-
gem "rubocop-rails-omakase", require: false
|
|
11
|
-
gem "activesupport", ">= 4.2.0", "< 8.0"
|
|
12
|
-
gem "irb"
|
|
13
|
-
gem "cgi"
|
data/Gemfile.lock
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
twitchrb (1.10.0)
|
|
5
|
-
faraday (>= 2.14.3, < 3)
|
|
6
|
-
ostruct (~> 0.6.0)
|
|
7
|
-
|
|
8
|
-
GEM
|
|
9
|
-
remote: https://rubygems.org/
|
|
10
|
-
specs:
|
|
11
|
-
activesupport (7.2.3.1)
|
|
12
|
-
base64
|
|
13
|
-
benchmark (>= 0.3)
|
|
14
|
-
bigdecimal
|
|
15
|
-
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
16
|
-
connection_pool (>= 2.2.5)
|
|
17
|
-
drb
|
|
18
|
-
i18n (>= 1.6, < 2)
|
|
19
|
-
logger (>= 1.4.2)
|
|
20
|
-
minitest (>= 5.1, < 6)
|
|
21
|
-
securerandom (>= 0.3)
|
|
22
|
-
tzinfo (~> 2.0, >= 2.0.5)
|
|
23
|
-
addressable (2.9.0)
|
|
24
|
-
public_suffix (>= 2.0.2, < 8.0)
|
|
25
|
-
ast (2.4.3)
|
|
26
|
-
base64 (0.3.0)
|
|
27
|
-
benchmark (0.5.0)
|
|
28
|
-
bigdecimal (4.1.2)
|
|
29
|
-
cgi (0.5.1)
|
|
30
|
-
concurrent-ruby (1.3.8)
|
|
31
|
-
connection_pool (3.0.2)
|
|
32
|
-
crack (1.0.1)
|
|
33
|
-
bigdecimal
|
|
34
|
-
rexml
|
|
35
|
-
date (3.5.1)
|
|
36
|
-
dotenv (3.2.0)
|
|
37
|
-
drb (2.2.3)
|
|
38
|
-
erb (6.0.4)
|
|
39
|
-
faraday (2.14.3)
|
|
40
|
-
faraday-net_http (>= 2.0, < 3.5)
|
|
41
|
-
json
|
|
42
|
-
logger
|
|
43
|
-
faraday-net_http (3.4.2)
|
|
44
|
-
net-http (~> 0.5)
|
|
45
|
-
hashdiff (1.2.1)
|
|
46
|
-
i18n (1.14.8)
|
|
47
|
-
concurrent-ruby (~> 1.0)
|
|
48
|
-
io-console (0.8.2)
|
|
49
|
-
irb (1.18.0)
|
|
50
|
-
pp (>= 0.6.0)
|
|
51
|
-
prism (>= 1.3.0)
|
|
52
|
-
rdoc (>= 4.0.0)
|
|
53
|
-
reline (>= 0.4.2)
|
|
54
|
-
json (2.21.2)
|
|
55
|
-
language_server-protocol (3.17.0.5)
|
|
56
|
-
lint_roller (1.1.0)
|
|
57
|
-
logger (1.7.0)
|
|
58
|
-
minitest (5.27.0)
|
|
59
|
-
net-http (0.9.1)
|
|
60
|
-
uri (>= 0.11.1)
|
|
61
|
-
ostruct (0.6.3)
|
|
62
|
-
parallel (2.1.0)
|
|
63
|
-
parser (3.3.11.1)
|
|
64
|
-
ast (~> 2.4.1)
|
|
65
|
-
racc
|
|
66
|
-
pp (0.6.3)
|
|
67
|
-
prettyprint
|
|
68
|
-
prettyprint (0.2.0)
|
|
69
|
-
prism (1.9.0)
|
|
70
|
-
psych (5.3.1)
|
|
71
|
-
date
|
|
72
|
-
stringio
|
|
73
|
-
public_suffix (7.0.5)
|
|
74
|
-
racc (1.8.1)
|
|
75
|
-
rack (3.2.6)
|
|
76
|
-
rainbow (3.1.1)
|
|
77
|
-
rake (12.3.3)
|
|
78
|
-
rdoc (7.2.0)
|
|
79
|
-
erb
|
|
80
|
-
psych (>= 4.0.0)
|
|
81
|
-
tsort
|
|
82
|
-
regexp_parser (2.12.0)
|
|
83
|
-
reline (0.6.3)
|
|
84
|
-
io-console (~> 0.5)
|
|
85
|
-
rexml (3.4.4)
|
|
86
|
-
rubocop (1.86.2)
|
|
87
|
-
json (~> 2.3)
|
|
88
|
-
language_server-protocol (~> 3.17.0.2)
|
|
89
|
-
lint_roller (~> 1.1.0)
|
|
90
|
-
parallel (>= 1.10)
|
|
91
|
-
parser (>= 3.3.0.2)
|
|
92
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
93
|
-
regexp_parser (>= 2.9.3, < 3.0)
|
|
94
|
-
rubocop-ast (>= 1.49.0, < 2.0)
|
|
95
|
-
ruby-progressbar (~> 1.7)
|
|
96
|
-
unicode-display_width (>= 2.4.0, < 4.0)
|
|
97
|
-
rubocop-ast (1.49.1)
|
|
98
|
-
parser (>= 3.3.7.2)
|
|
99
|
-
prism (~> 1.7)
|
|
100
|
-
rubocop-performance (1.26.1)
|
|
101
|
-
lint_roller (~> 1.1)
|
|
102
|
-
rubocop (>= 1.75.0, < 2.0)
|
|
103
|
-
rubocop-ast (>= 1.47.1, < 2.0)
|
|
104
|
-
rubocop-rails (2.35.0)
|
|
105
|
-
activesupport (>= 4.2.0)
|
|
106
|
-
lint_roller (~> 1.1)
|
|
107
|
-
rack (>= 1.1)
|
|
108
|
-
rubocop (>= 1.75.0, < 2.0)
|
|
109
|
-
rubocop-ast (>= 1.44.0, < 2.0)
|
|
110
|
-
rubocop-rails-omakase (1.1.0)
|
|
111
|
-
rubocop (>= 1.72)
|
|
112
|
-
rubocop-performance (>= 1.24)
|
|
113
|
-
rubocop-rails (>= 2.30)
|
|
114
|
-
ruby-progressbar (1.13.0)
|
|
115
|
-
securerandom (0.4.1)
|
|
116
|
-
stringio (3.2.0)
|
|
117
|
-
tsort (0.2.0)
|
|
118
|
-
tzinfo (2.0.6)
|
|
119
|
-
concurrent-ruby (~> 1.0)
|
|
120
|
-
unicode-display_width (3.2.0)
|
|
121
|
-
unicode-emoji (~> 4.1)
|
|
122
|
-
unicode-emoji (4.2.0)
|
|
123
|
-
uri (1.1.1)
|
|
124
|
-
webmock (3.26.2)
|
|
125
|
-
addressable (>= 2.8.0)
|
|
126
|
-
crack (>= 0.3.2)
|
|
127
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
|
128
|
-
|
|
129
|
-
PLATFORMS
|
|
130
|
-
ruby
|
|
131
|
-
|
|
132
|
-
DEPENDENCIES
|
|
133
|
-
activesupport (>= 4.2.0, < 8.0)
|
|
134
|
-
cgi
|
|
135
|
-
dotenv
|
|
136
|
-
irb
|
|
137
|
-
minitest (~> 5.0)
|
|
138
|
-
rake (~> 12.0)
|
|
139
|
-
rubocop-rails-omakase
|
|
140
|
-
twitchrb!
|
|
141
|
-
webmock
|
|
142
|
-
|
|
143
|
-
BUNDLED WITH
|
|
144
|
-
4.0.11
|
data/Rakefile
DELETED
data/bin/console
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "twitch"
|
|
5
|
-
|
|
6
|
-
# Load environment variables from .env file
|
|
7
|
-
require 'dotenv/load'
|
|
8
|
-
|
|
9
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
10
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
11
|
-
|
|
12
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
13
|
-
# require "pry"
|
|
14
|
-
# Pry.start
|
|
15
|
-
|
|
16
|
-
@oauth = Twitch::OAuth.new(client_id: ENV["TWITCH_CLIENT_ID"], client_secret: ENV["TWITCH_CLIENT_SECRET"])
|
|
17
|
-
|
|
18
|
-
@client = Twitch::Client.new(client_id: ENV["TWITCH_CLIENT_ID"], access_token: ENV["TWITCH_ACCESS_TOKEN"])
|
|
19
|
-
|
|
20
|
-
@clientapp = Twitch::Client.new(client_id: ENV["TWITCH_CLIENT_ID"], access_token: ENV["TWITCH_APP_ACCESS_TOKEN"])
|
|
21
|
-
|
|
22
|
-
require "irb"
|
|
23
|
-
IRB.start(__FILE__)
|