Skip to content

Commit

Permalink
Small improvements and code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sosolidkk committed Jun 3, 2024
1 parent 038765c commit c382dad
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 28 deletions.
2 changes: 0 additions & 2 deletions .dockerdev/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.4'

services:
gem:
build:
Expand Down
3 changes: 0 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@ vendor/bundle/
# Specs
spec/

# CI
.gitlab-ci.yml

# Dev tools
.rspec_status
6 changes: 0 additions & 6 deletions .pronto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,5 @@
- 'spec/**/*'
- 'coverage/**/*'
- 'bin/**/*'
- '.gitlab-ci.yml'

# gitlab:
# slug: 13888337 # GitLab's project ID
# api_endpoint: https://gitlab.com/api/v4
# # api_private_token: # use PRONTO_GITLAB_API_PRIVATE_TOKEN env var

verbose: true
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
steam_api (0.4.0)
steam_api (0.5.0)
activesupport
dry-configurable (~> 1.1.0)
dry-struct (~> 1.6)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ client.player_level.retrieve(76561198160009756)
- Arguments
- **appid**: The ID for the game you're requesting.
- By default, the current implementation of the SteamApi supports multiple AppIDs at the same time. But this gem does not (yet) supports it.
- **filters (optional)**: The filters for the data you want to be fetched.
- Any key names except those listed under basic are acceptable as filter values. There are the keys returned when the basic filter is used:
- **filters (optional)**: The filters for the data you want to be fetched. For the complete filter listing please access the [StoreFrontAPI](https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI#appdetails) for appdetails endpoint.
- The filter `basic` returns the following keys:
- `type`
- `name`
- `steam_appid`
Expand Down
26 changes: 13 additions & 13 deletions lib/steam_api/structs/app_details/details.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ class Details < Base
attribute :response do
attribute :success, Types::Bool
attribute :data do
attribute :type, Types::String
attribute :name, Types::String
attribute :required_age, Types::Integer
attribute :is_free, Types::Bool
attribute :dlc, Types::Array
attribute :detailed_description, Types::String
attribute? :type, Types::String
attribute? :name, Types::String
attribute? :required_age, Types::Coercible::Integer
attribute? :is_free, Types::Bool
attribute? :dlc, Types::Array.of(Types::Coercible::Integer)
attribute? :detailed_description, Types::String
attribute? :about_the_game, Types::String
attribute :short_description, Types::String
attribute :supported_languages, Types::String
attribute :header_image, Types::String
attribute :website, Types::String
attribute :pc_requirements, SteamApi::Structs::AppDetails::Requirements
attribute :mac_requirements, SteamApi::Structs::AppDetails::Requirements
attribute :linux_requirements, SteamApi::Structs::AppDetails::Requirements
attribute? :short_description, Types::String
attribute? :supported_languages, Types::String
attribute? :header_image, Types::String
attribute? :website, Types::String
attribute? :pc_requirements, SteamApi::Structs::AppDetails::Requirements
attribute? :mac_requirements, SteamApi::Structs::AppDetails::Requirements
attribute? :linux_requirements, SteamApi::Structs::AppDetails::Requirements
attribute? :developers, Types::Array.of(Types::Coercible::String)
attribute? :publishers, Types::Array.of(Types::Coercible::String)
attribute? :price_overview do
Expand Down
2 changes: 1 addition & 1 deletion lib/steam_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module SteamApi
VERSION = '0.4.0'
VERSION = '0.5.0'
end

0 comments on commit c382dad

Please sign in to comment.