steam_api_client 0.9.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 +7 -0
- data/.dockerignore +21 -0
- data/.pronto.yml +12 -0
- data/.reek.yml +25 -0
- data/.rspec +4 -0
- data/.ruby-version +1 -0
- data/.standard.yml +3 -0
- data/.tool-versions +1 -0
- data/CHANGELOG.md +9 -0
- data/CLAUDE.md +52 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +34 -0
- data/Gemfile.lock +220 -0
- data/LICENSE +21 -0
- data/README.md +158 -0
- data/lib/steam_api_client/client.rb +112 -0
- data/lib/steam_api_client/errors/api_error.rb +48 -0
- data/lib/steam_api_client/errors/response_parse_error.rb +19 -0
- data/lib/steam_api_client/errors/url_error.rb +5 -0
- data/lib/steam_api_client/failure_handler.rb +46 -0
- data/lib/steam_api_client/request.rb +86 -0
- data/lib/steam_api_client/requestors/app_details.rb +27 -0
- data/lib/steam_api_client/requestors/app_global_achievements.rb +19 -0
- data/lib/steam_api_client/requestors/app_news.rb +23 -0
- data/lib/steam_api_client/requestors/base.rb +32 -0
- data/lib/steam_api_client/requestors/game_current_players.rb +19 -0
- data/lib/steam_api_client/requestors/player_achievements.rb +21 -0
- data/lib/steam_api_client/requestors/player_friends.rb +21 -0
- data/lib/steam_api_client/requestors/player_game_stats.rb +21 -0
- data/lib/steam_api_client/requestors/player_level.rb +18 -0
- data/lib/steam_api_client/requestors/player_owned_games.rb +23 -0
- data/lib/steam_api_client/requestors/player_recent_games.rb +21 -0
- data/lib/steam_api_client/requestors/player_steamid.rb +19 -0
- data/lib/steam_api_client/requestors/player_summaries.rb +19 -0
- data/lib/steam_api_client/response.rb +64 -0
- data/lib/steam_api_client/structs/app_details/achievement.rb +12 -0
- data/lib/steam_api_client/structs/app_details/category.rb +12 -0
- data/lib/steam_api_client/structs/app_details/details.rb +82 -0
- data/lib/steam_api_client/structs/app_details/genre.rb +12 -0
- data/lib/steam_api_client/structs/app_details/movie.rb +25 -0
- data/lib/steam_api_client/structs/app_details/package_group.rb +18 -0
- data/lib/steam_api_client/structs/app_details/requirements.rb +12 -0
- data/lib/steam_api_client/structs/app_details/screenshot.rb +13 -0
- data/lib/steam_api_client/structs/app_details/sub.rb +18 -0
- data/lib/steam_api_client/structs/app_global_achievements.rb +18 -0
- data/lib/steam_api_client/structs/app_new.rb +20 -0
- data/lib/steam_api_client/structs/app_news.rb +13 -0
- data/lib/steam_api_client/structs/base.rb +15 -0
- data/lib/steam_api_client/structs/game_current_players.rb +12 -0
- data/lib/steam_api_client/structs/player_achievements.rb +23 -0
- data/lib/steam_api_client/structs/player_friends.rb +17 -0
- data/lib/steam_api_client/structs/player_game_stats.rb +20 -0
- data/lib/steam_api_client/structs/player_level.rb +11 -0
- data/lib/steam_api_client/structs/player_owned_games.rb +25 -0
- data/lib/steam_api_client/structs/player_recent_games.rb +22 -0
- data/lib/steam_api_client/structs/player_steamid.rb +16 -0
- data/lib/steam_api_client/structs/player_summaries.rb +11 -0
- data/lib/steam_api_client/structs/player_summary.rb +34 -0
- data/lib/steam_api_client/structs/requests/abstract.rb +59 -0
- data/lib/steam_api_client/structs/requests/get_app_details.rb +54 -0
- data/lib/steam_api_client/structs/requests/get_app_global_achievements.rb +54 -0
- data/lib/steam_api_client/structs/requests/get_app_news.rb +62 -0
- data/lib/steam_api_client/structs/requests/get_game_current_players.rb +54 -0
- data/lib/steam_api_client/structs/requests/get_player_achievements.rb +54 -0
- data/lib/steam_api_client/structs/requests/get_player_friends.rb +57 -0
- data/lib/steam_api_client/structs/requests/get_player_game_stats.rb +54 -0
- data/lib/steam_api_client/structs/requests/get_player_level.rb +48 -0
- data/lib/steam_api_client/structs/requests/get_player_owned_games.rb +56 -0
- data/lib/steam_api_client/structs/requests/get_player_recent_games.rb +54 -0
- data/lib/steam_api_client/structs/requests/get_player_steamid.rb +48 -0
- data/lib/steam_api_client/structs/requests/get_player_summaries.rb +52 -0
- data/lib/steam_api_client/structs/requests/storefront_abstract.rb +58 -0
- data/lib/steam_api_client/structs/types.rb +14 -0
- data/lib/steam_api_client/version.rb +5 -0
- data/lib/steam_api_client.rb +75 -0
- metadata +161 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "dry-configurable"
|
|
4
|
+
require "dry-struct"
|
|
5
|
+
require "json"
|
|
6
|
+
require "singleton"
|
|
7
|
+
require "typhoeus"
|
|
8
|
+
|
|
9
|
+
require_relative "steam_api_client/version"
|
|
10
|
+
require_relative "steam_api_client/request"
|
|
11
|
+
require_relative "steam_api_client/response"
|
|
12
|
+
require_relative "steam_api_client/failure_handler"
|
|
13
|
+
|
|
14
|
+
require_relative "steam_api_client/errors/api_error"
|
|
15
|
+
require_relative "steam_api_client/errors/response_parse_error"
|
|
16
|
+
require_relative "steam_api_client/errors/url_error"
|
|
17
|
+
|
|
18
|
+
require_relative "steam_api_client/requestors/base"
|
|
19
|
+
require_relative "steam_api_client/requestors/app_details"
|
|
20
|
+
require_relative "steam_api_client/requestors/app_global_achievements"
|
|
21
|
+
require_relative "steam_api_client/requestors/app_news"
|
|
22
|
+
require_relative "steam_api_client/requestors/game_current_players"
|
|
23
|
+
require_relative "steam_api_client/requestors/player_achievements"
|
|
24
|
+
require_relative "steam_api_client/requestors/player_friends"
|
|
25
|
+
require_relative "steam_api_client/requestors/player_game_stats"
|
|
26
|
+
require_relative "steam_api_client/requestors/player_level"
|
|
27
|
+
require_relative "steam_api_client/requestors/player_owned_games"
|
|
28
|
+
require_relative "steam_api_client/requestors/player_recent_games"
|
|
29
|
+
require_relative "steam_api_client/requestors/player_steamid"
|
|
30
|
+
require_relative "steam_api_client/requestors/player_summaries"
|
|
31
|
+
|
|
32
|
+
require_relative "steam_api_client/structs/types"
|
|
33
|
+
require_relative "steam_api_client/structs/base"
|
|
34
|
+
require_relative "steam_api_client/structs/app_details/achievement"
|
|
35
|
+
require_relative "steam_api_client/structs/app_details/category"
|
|
36
|
+
require_relative "steam_api_client/structs/app_details/genre"
|
|
37
|
+
require_relative "steam_api_client/structs/app_details/movie"
|
|
38
|
+
require_relative "steam_api_client/structs/app_details/sub"
|
|
39
|
+
require_relative "steam_api_client/structs/app_details/package_group"
|
|
40
|
+
require_relative "steam_api_client/structs/app_details/requirements"
|
|
41
|
+
require_relative "steam_api_client/structs/app_details/screenshot"
|
|
42
|
+
require_relative "steam_api_client/structs/app_details/details"
|
|
43
|
+
require_relative "steam_api_client/structs/app_global_achievements"
|
|
44
|
+
require_relative "steam_api_client/structs/app_new"
|
|
45
|
+
require_relative "steam_api_client/structs/app_news"
|
|
46
|
+
require_relative "steam_api_client/structs/game_current_players"
|
|
47
|
+
require_relative "steam_api_client/structs/player_summary"
|
|
48
|
+
require_relative "steam_api_client/structs/player_achievements"
|
|
49
|
+
require_relative "steam_api_client/structs/player_friends"
|
|
50
|
+
require_relative "steam_api_client/structs/player_game_stats"
|
|
51
|
+
require_relative "steam_api_client/structs/player_level"
|
|
52
|
+
require_relative "steam_api_client/structs/player_owned_games"
|
|
53
|
+
require_relative "steam_api_client/structs/player_recent_games"
|
|
54
|
+
require_relative "steam_api_client/structs/player_steamid"
|
|
55
|
+
require_relative "steam_api_client/structs/player_summaries"
|
|
56
|
+
|
|
57
|
+
require_relative "steam_api_client/structs/requests/abstract"
|
|
58
|
+
require_relative "steam_api_client/structs/requests/storefront_abstract"
|
|
59
|
+
require_relative "steam_api_client/structs/requests/get_app_details"
|
|
60
|
+
require_relative "steam_api_client/structs/requests/get_app_global_achievements"
|
|
61
|
+
require_relative "steam_api_client/structs/requests/get_app_news"
|
|
62
|
+
require_relative "steam_api_client/structs/requests/get_game_current_players"
|
|
63
|
+
require_relative "steam_api_client/structs/requests/get_player_achievements"
|
|
64
|
+
require_relative "steam_api_client/structs/requests/get_player_friends"
|
|
65
|
+
require_relative "steam_api_client/structs/requests/get_player_game_stats"
|
|
66
|
+
require_relative "steam_api_client/structs/requests/get_player_level"
|
|
67
|
+
require_relative "steam_api_client/structs/requests/get_player_owned_games"
|
|
68
|
+
require_relative "steam_api_client/structs/requests/get_player_recent_games"
|
|
69
|
+
require_relative "steam_api_client/structs/requests/get_player_steamid"
|
|
70
|
+
require_relative "steam_api_client/structs/requests/get_player_summaries"
|
|
71
|
+
|
|
72
|
+
require_relative "steam_api_client/client"
|
|
73
|
+
|
|
74
|
+
# Main module
|
|
75
|
+
module SteamApiClient; end
|
metadata
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: steam_api_client
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.9.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- João Pedro
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-10-23 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: dry-configurable
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 1.1.0
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 1.1.0
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: dry-struct
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '1.6'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '1.6'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: typhoeus
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '1.4'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '1.4'
|
|
55
|
+
description:
|
|
56
|
+
email:
|
|
57
|
+
- pedrochaveslimas3@gmail.com
|
|
58
|
+
executables: []
|
|
59
|
+
extensions: []
|
|
60
|
+
extra_rdoc_files: []
|
|
61
|
+
files:
|
|
62
|
+
- ".dockerignore"
|
|
63
|
+
- ".pronto.yml"
|
|
64
|
+
- ".reek.yml"
|
|
65
|
+
- ".rspec"
|
|
66
|
+
- ".ruby-version"
|
|
67
|
+
- ".standard.yml"
|
|
68
|
+
- ".tool-versions"
|
|
69
|
+
- CHANGELOG.md
|
|
70
|
+
- CLAUDE.md
|
|
71
|
+
- CODE_OF_CONDUCT.md
|
|
72
|
+
- Gemfile
|
|
73
|
+
- Gemfile.lock
|
|
74
|
+
- LICENSE
|
|
75
|
+
- README.md
|
|
76
|
+
- lib/steam_api_client.rb
|
|
77
|
+
- lib/steam_api_client/client.rb
|
|
78
|
+
- lib/steam_api_client/errors/api_error.rb
|
|
79
|
+
- lib/steam_api_client/errors/response_parse_error.rb
|
|
80
|
+
- lib/steam_api_client/errors/url_error.rb
|
|
81
|
+
- lib/steam_api_client/failure_handler.rb
|
|
82
|
+
- lib/steam_api_client/request.rb
|
|
83
|
+
- lib/steam_api_client/requestors/app_details.rb
|
|
84
|
+
- lib/steam_api_client/requestors/app_global_achievements.rb
|
|
85
|
+
- lib/steam_api_client/requestors/app_news.rb
|
|
86
|
+
- lib/steam_api_client/requestors/base.rb
|
|
87
|
+
- lib/steam_api_client/requestors/game_current_players.rb
|
|
88
|
+
- lib/steam_api_client/requestors/player_achievements.rb
|
|
89
|
+
- lib/steam_api_client/requestors/player_friends.rb
|
|
90
|
+
- lib/steam_api_client/requestors/player_game_stats.rb
|
|
91
|
+
- lib/steam_api_client/requestors/player_level.rb
|
|
92
|
+
- lib/steam_api_client/requestors/player_owned_games.rb
|
|
93
|
+
- lib/steam_api_client/requestors/player_recent_games.rb
|
|
94
|
+
- lib/steam_api_client/requestors/player_steamid.rb
|
|
95
|
+
- lib/steam_api_client/requestors/player_summaries.rb
|
|
96
|
+
- lib/steam_api_client/response.rb
|
|
97
|
+
- lib/steam_api_client/structs/app_details/achievement.rb
|
|
98
|
+
- lib/steam_api_client/structs/app_details/category.rb
|
|
99
|
+
- lib/steam_api_client/structs/app_details/details.rb
|
|
100
|
+
- lib/steam_api_client/structs/app_details/genre.rb
|
|
101
|
+
- lib/steam_api_client/structs/app_details/movie.rb
|
|
102
|
+
- lib/steam_api_client/structs/app_details/package_group.rb
|
|
103
|
+
- lib/steam_api_client/structs/app_details/requirements.rb
|
|
104
|
+
- lib/steam_api_client/structs/app_details/screenshot.rb
|
|
105
|
+
- lib/steam_api_client/structs/app_details/sub.rb
|
|
106
|
+
- lib/steam_api_client/structs/app_global_achievements.rb
|
|
107
|
+
- lib/steam_api_client/structs/app_new.rb
|
|
108
|
+
- lib/steam_api_client/structs/app_news.rb
|
|
109
|
+
- lib/steam_api_client/structs/base.rb
|
|
110
|
+
- lib/steam_api_client/structs/game_current_players.rb
|
|
111
|
+
- lib/steam_api_client/structs/player_achievements.rb
|
|
112
|
+
- lib/steam_api_client/structs/player_friends.rb
|
|
113
|
+
- lib/steam_api_client/structs/player_game_stats.rb
|
|
114
|
+
- lib/steam_api_client/structs/player_level.rb
|
|
115
|
+
- lib/steam_api_client/structs/player_owned_games.rb
|
|
116
|
+
- lib/steam_api_client/structs/player_recent_games.rb
|
|
117
|
+
- lib/steam_api_client/structs/player_steamid.rb
|
|
118
|
+
- lib/steam_api_client/structs/player_summaries.rb
|
|
119
|
+
- lib/steam_api_client/structs/player_summary.rb
|
|
120
|
+
- lib/steam_api_client/structs/requests/abstract.rb
|
|
121
|
+
- lib/steam_api_client/structs/requests/get_app_details.rb
|
|
122
|
+
- lib/steam_api_client/structs/requests/get_app_global_achievements.rb
|
|
123
|
+
- lib/steam_api_client/structs/requests/get_app_news.rb
|
|
124
|
+
- lib/steam_api_client/structs/requests/get_game_current_players.rb
|
|
125
|
+
- lib/steam_api_client/structs/requests/get_player_achievements.rb
|
|
126
|
+
- lib/steam_api_client/structs/requests/get_player_friends.rb
|
|
127
|
+
- lib/steam_api_client/structs/requests/get_player_game_stats.rb
|
|
128
|
+
- lib/steam_api_client/structs/requests/get_player_level.rb
|
|
129
|
+
- lib/steam_api_client/structs/requests/get_player_owned_games.rb
|
|
130
|
+
- lib/steam_api_client/structs/requests/get_player_recent_games.rb
|
|
131
|
+
- lib/steam_api_client/structs/requests/get_player_steamid.rb
|
|
132
|
+
- lib/steam_api_client/structs/requests/get_player_summaries.rb
|
|
133
|
+
- lib/steam_api_client/structs/requests/storefront_abstract.rb
|
|
134
|
+
- lib/steam_api_client/structs/types.rb
|
|
135
|
+
- lib/steam_api_client/version.rb
|
|
136
|
+
homepage: https://github.com/sosolidkk/steam_api
|
|
137
|
+
licenses:
|
|
138
|
+
- MIT
|
|
139
|
+
metadata:
|
|
140
|
+
homepage_uri: https://github.com/sosolidkk/steam_api
|
|
141
|
+
rubygems_mfa_required: 'true'
|
|
142
|
+
post_install_message:
|
|
143
|
+
rdoc_options: []
|
|
144
|
+
require_paths:
|
|
145
|
+
- lib
|
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
|
+
requirements:
|
|
148
|
+
- - ">="
|
|
149
|
+
- !ruby/object:Gem::Version
|
|
150
|
+
version: '3.0'
|
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
|
+
requirements:
|
|
153
|
+
- - ">="
|
|
154
|
+
- !ruby/object:Gem::Version
|
|
155
|
+
version: '0'
|
|
156
|
+
requirements: []
|
|
157
|
+
rubygems_version: 3.5.11
|
|
158
|
+
signing_key:
|
|
159
|
+
specification_version: 4
|
|
160
|
+
summary: A ruby client to fetch from the public Steam Web API
|
|
161
|
+
test_files: []
|