restiny 0.4.0 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 741ac894abe43506371ddd982baddc4fc151742a1b60a7d7c0fdf702d69c5a46
4
- data.tar.gz: 2bde117539309611f7bb2f7f859903195352cad1ba1158546238876496d3efa3
3
+ metadata.gz: b64ce91b4d100a18724e027008c5f22feaea7749e99ed3903f881cdf57dd514e
4
+ data.tar.gz: 4494857bb6bcc684b92fa8215eebbaad2f1406d4236cb8be4e22f956eb98d8e6
5
5
  SHA512:
6
- metadata.gz: c301404d8149756a2cfab53a871fdbb8e1f68dd3cecd0a9d52698c54d421d6547588ea9dd8bc0f34584b9f9471d59a46df8af3f3d8c7603a13205fee619a9202
7
- data.tar.gz: dae32ebf9a7646304782d6f3ccaca965d704bd0d62f0a8429abd1820877570deeb4054cc4ccbd9f77f58800d366cda30589e1e6d912b6d6576e3cae6f682f026
6
+ metadata.gz: af7e65d052b3860b97fee42d8c38430e61aed8ab2e6e0435ff25ab74aa27433aebbf6e5267bd13b800d53559e9a6d99a3cc2e9e08972d1fbb8c5097d10bdc484
7
+ data.tar.gz: 96d3dff6141def2d34948409525a9d66a80c3c4ed394c922fe44eb20b9026b59486eea93dec3962d94438fcb7ff641821ce091aeeebf3ef1bb9617569856de44
@@ -1,10 +1,39 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- PLATFORM_ALL = -1
4
- PLATFORM_XBOX = 1
5
- PLATFORM_PSN = 2
6
- PLATFORM_STEAM = 3
7
- PLATFORM_EPIC = 6
3
+ module Restiny
4
+ module Platform
5
+ ALL = -1
6
+ XBOX = 1
7
+ PSN = 2
8
+ STEAM = 3
9
+ EPIC = 6
10
+ end
11
+
12
+ module ComponentType
13
+ PROFILES = "Profiles"
14
+ PROFILE_INVENTORIES = "ProfileInventories"
15
+ CHARACTERS = "Characters"
16
+ CHARACTER_INVENTORIES = "CharacterInventories"
17
+ end
18
+
19
+ module ItemLocation
20
+ UNKNOWN = 0
21
+ INVENTORY = 1
22
+ VAULT = 2
23
+ VENDOR = 3
24
+ POSTMASTER = 4
25
+ end
26
+
27
+ module TierType
28
+ UNKNOWN = 0
29
+ CURRENCY = 1
30
+ BASIC = 2
31
+ COMMON = 3
32
+ RARE = 4
33
+ SUPERIOR = 5
34
+ EXOTIC = 6
35
+ end
36
+ end
8
37
 
9
38
  COMPONENT_TYPE_PROFILES = "Profiles"
10
39
  COMPONENT_TYPE_PROFILE_INVENTORIES = "ProfileInventories"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Restiny
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restiny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bogan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-20 00:00:00.000000000 Z
11
+ date: 2023-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -161,7 +161,6 @@ files:
161
161
  - lib/restiny/constants.rb
162
162
  - lib/restiny/errors.rb
163
163
  - lib/restiny/manifest.rb
164
- - lib/restiny/membership.rb
165
164
  - lib/restiny/version.rb
166
165
  homepage: http://github.com/waferbaby/restiny
167
166
  licenses:
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Restiny
4
- class Membership
5
- attr_reader :id, :type, :cross_save_override, :icon_path, :is_public, :types
6
-
7
- def self.platform(type)
8
- case type
9
- when PLATFORM_XBOX
10
- :xbox
11
- when PLATFORM_PSN
12
- :playstation
13
- when PLATFORM_STEAM
14
- :steam
15
- when PLATFORM_EPIC
16
- :epic
17
- end
18
- end
19
-
20
- def initialize(id:, type:, cross_save_override:, icon_path:, is_public:, types:)
21
- @id = id
22
- @type = type
23
- @cross_save_override = cross_save_override
24
- @icon_path = icon_path
25
- @is_public = is_public
26
- @types = types
27
- end
28
- end
29
- end