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 +4 -4
- data/lib/restiny/constants.rb +34 -5
- data/lib/restiny/version.rb +1 -1
- metadata +2 -3
- data/lib/restiny/membership.rb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b64ce91b4d100a18724e027008c5f22feaea7749e99ed3903f881cdf57dd514e
|
4
|
+
data.tar.gz: 4494857bb6bcc684b92fa8215eebbaad2f1406d4236cb8be4e22f956eb98d8e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af7e65d052b3860b97fee42d8c38430e61aed8ab2e6e0435ff25ab74aa27433aebbf6e5267bd13b800d53559e9a6d99a3cc2e9e08972d1fbb8c5097d10bdc484
|
7
|
+
data.tar.gz: 96d3dff6141def2d34948409525a9d66a80c3c4ed394c922fe44eb20b9026b59486eea93dec3962d94438fcb7ff641821ce091aeeebf3ef1bb9617569856de44
|
data/lib/restiny/constants.rb
CHANGED
@@ -1,10 +1,39 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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"
|
data/lib/restiny/version.rb
CHANGED
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
|
+
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-
|
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:
|
data/lib/restiny/membership.rb
DELETED
@@ -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
|