kleister 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,21 +14,19 @@ require 'time'
14
14
  module Kleister
15
15
  # Model to represent version
16
16
  class Version
17
- attr_accessor :id, :file, :mod_id, :mod, :slug, :name, :public, :created_at, :updated_at, :builds
17
+ attr_accessor :id, :file, :mod, :slug, :name, :public, :created_at, :updated_at
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
22
  id: :id,
23
23
  file: :file,
24
- mod_id: :mod_id,
25
24
  mod: :mod,
26
25
  slug: :slug,
27
26
  name: :name,
28
27
  public: :public,
29
28
  created_at: :created_at,
30
- updated_at: :updated_at,
31
- builds: :builds
29
+ updated_at: :updated_at
32
30
  }
33
31
  end
34
32
 
@@ -42,14 +40,12 @@ module Kleister
42
40
  {
43
41
  id: :String,
44
42
  file: :VersionFile,
45
- mod_id: :String,
46
43
  mod: :Mod,
47
44
  slug: :String,
48
45
  name: :String,
49
46
  public: :Boolean,
50
47
  created_at: :Time,
51
- updated_at: :Time,
52
- builds: :'Array<BuildVersion>'
48
+ updated_at: :Time
53
49
  }
54
50
  end
55
51
 
@@ -59,7 +55,6 @@ module Kleister
59
55
  slug
60
56
  name
61
57
  public
62
- builds
63
58
  ])
64
59
  end
65
60
 
@@ -87,10 +82,6 @@ module Kleister
87
82
  self.file = attributes[:file]
88
83
  end
89
84
 
90
- if attributes.key?(:mod_id)
91
- self.mod_id = attributes[:mod_id]
92
- end
93
-
94
85
  if attributes.key?(:mod)
95
86
  self.mod = attributes[:mod]
96
87
  end
@@ -114,10 +105,6 @@ module Kleister
114
105
  if attributes.key?(:updated_at)
115
106
  self.updated_at = attributes[:updated_at]
116
107
  end
117
-
118
- if attributes.key?(:builds) && (value = attributes[:builds]).is_a?(Array)
119
- self.builds = value
120
- end
121
108
  end
122
109
 
123
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -142,14 +129,12 @@ module Kleister
142
129
  self.class == other.class &&
143
130
  id == other.id &&
144
131
  file == other.file &&
145
- mod_id == other.mod_id &&
146
132
  mod == other.mod &&
147
133
  slug == other.slug &&
148
134
  name == other.name &&
149
135
  public == other.public &&
150
136
  created_at == other.created_at &&
151
- updated_at == other.updated_at &&
152
- builds == other.builds
137
+ updated_at == other.updated_at
153
138
  end
154
139
 
155
140
  # @see the `==` method
@@ -161,7 +146,7 @@ module Kleister
161
146
  # Calculates hash code according to all attributes.
162
147
  # @return [Integer] Hash code
163
148
  def hash
164
- [id, file, mod_id, mod, slug, name, public, created_at, updated_at, builds].hash
149
+ [id, file, mod, slug, name, public, created_at, updated_at].hash
165
150
  end
166
151
 
167
152
  # Builds the object from hash
@@ -14,14 +14,12 @@ require 'time'
14
14
  module Kleister
15
15
  # Model to represent version file
16
16
  class VersionFile
17
- attr_accessor :id, :version_id, :version, :slug, :content_type, :md5, :path, :url, :upload, :created_at, :updated_at
17
+ attr_accessor :id, :slug, :content_type, :md5, :path, :url, :upload, :created_at, :updated_at
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
22
  id: :id,
23
- version_id: :version_id,
24
- version: :version,
25
23
  slug: :slug,
26
24
  content_type: :content_type,
27
25
  md5: :md5,
@@ -42,8 +40,6 @@ module Kleister
42
40
  def self.openapi_types
43
41
  {
44
42
  id: :String,
45
- version_id: :String,
46
- version: :Version,
47
43
  slug: :String,
48
44
  content_type: :String,
49
45
  md5: :String,
@@ -87,14 +83,6 @@ module Kleister
87
83
  self.id = attributes[:id]
88
84
  end
89
85
 
90
- if attributes.key?(:version_id)
91
- self.version_id = attributes[:version_id]
92
- end
93
-
94
- if attributes.key?(:version)
95
- self.version = attributes[:version]
96
- end
97
-
98
86
  if attributes.key?(:slug)
99
87
  self.slug = attributes[:slug]
100
88
  end
@@ -149,8 +137,6 @@ module Kleister
149
137
 
150
138
  self.class == other.class &&
151
139
  id == other.id &&
152
- version_id == other.version_id &&
153
- version == other.version &&
154
140
  slug == other.slug &&
155
141
  content_type == other.content_type &&
156
142
  md5 == other.md5 &&
@@ -170,7 +156,7 @@ module Kleister
170
156
  # Calculates hash code according to all attributes.
171
157
  # @return [Integer] Hash code
172
158
  def hash
173
- [id, version_id, version, slug, content_type, md5, path, url, upload, created_at, updated_at].hash
159
+ [id, slug, content_type, md5, path, url, upload, created_at, updated_at].hash
174
160
  end
175
161
 
176
162
  # Builds the object from hash
@@ -9,5 +9,5 @@
9
9
  #
10
10
 
11
11
  module Kleister
12
- VERSION = '1.0.0'.freeze
12
+ VERSION = '1.2.0'.freeze
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kleister
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Boerger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-04 00:00:00.000000000 Z
11
+ date: 2024-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  requirements: []
176
- rubygems_version: 3.5.9
176
+ rubygems_version: 3.5.11
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: Manage mod packs for Minecraft