vpndetection 1.3.0 → 1.4.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: ac3ab63566525ffe3548718c280db04cb361d382e311fb05b707c006402a0d96
4
- data.tar.gz: 7720b3e6db751cff5a9109a5675938cf80d76dfd92f6934f70b7dd2a1120be1d
3
+ metadata.gz: 61370f27acc1d441f1702d4f3175db88e98ba99fb4939713a2f68c52483c6d26
4
+ data.tar.gz: da533a4067d406f96d5b0ecc930be9a76d9c2f410cf5a3c61a0d5ccb26e95a19
5
5
  SHA512:
6
- metadata.gz: 8edcd1ca5b1f8d6744c0a30ba9ac37f1ebdc28afc81eba7c5947b803ad4981a3a7cb261711c2df5e351c0de745b08c91dfd8de10f69295ca9b65f8c9ecdd256a
7
- data.tar.gz: db5f5ea04869904bd62182c2f7b80e19079abf86899a1650eb8b8a0825025983816015704b558c9da381818eb6b6351de2cb453bdf02cc180392e4e40781c9c0
6
+ metadata.gz: c3cc5f5ef9def4e2e02218f198ec63f1f1d72ae39dc8128455689d7905755460d729842a64363c04e9547da738b0dbc0d24fcb3927d2fba782572ff6512a75bf
7
+ data.tar.gz: 0e5ef9c66651db04caf353862592b838804321c9d34f304ae219a97b77651b43c14400dd97038460a5f7ba360f86a517729532e44a4d1cdfa6916116d3f78baa
@@ -152,6 +152,8 @@ module VPNDetection
152
152
 
153
153
  if attributes.key?(:'summary')
154
154
  self.summary = attributes[:'summary']
155
+ else
156
+ self.summary = nil
155
157
  end
156
158
 
157
159
  if attributes.key?(:'license_type')
@@ -162,18 +164,26 @@ module VPNDetection
162
164
 
163
165
  if attributes.key?(:'starts')
164
166
  self.starts = attributes[:'starts']
167
+ else
168
+ self.starts = nil
165
169
  end
166
170
 
167
171
  if attributes.key?(:'expires')
168
172
  self.expires = attributes[:'expires']
173
+ else
174
+ self.expires = nil
169
175
  end
170
176
 
171
177
  if attributes.key?(:'renews_at')
172
178
  self.renews_at = attributes[:'renews_at']
179
+ else
180
+ self.renews_at = nil
173
181
  end
174
182
 
175
183
  if attributes.key?(:'notice_due_at')
176
184
  self.notice_due_at = attributes[:'notice_due_at']
185
+ else
186
+ self.notice_due_at = nil
177
187
  end
178
188
 
179
189
  if attributes.key?(:'in_term')
@@ -210,6 +220,10 @@ module VPNDetection
210
220
  invalid_properties.push('invalid value for "name", name cannot be nil.')
211
221
  end
212
222
 
223
+ if @summary.nil?
224
+ invalid_properties.push('invalid value for "summary", summary cannot be nil.')
225
+ end
226
+
213
227
  if @license_type.nil?
214
228
  invalid_properties.push('invalid value for "license_type", license_type cannot be nil.')
215
229
  end
@@ -235,6 +249,7 @@ module VPNDetection
235
249
  warn '[DEPRECATED] the `valid?` method is obsolete'
236
250
  return false if @base.nil?
237
251
  return false if @name.nil?
252
+ return false if @summary.nil?
238
253
  return false if @license_type.nil?
239
254
  license_type_validator = EnumAttributeValidator.new('String', ["evaluation", "standard", "redistribute"])
240
255
  return false unless license_type_validator.valid?(@license_type)
@@ -266,6 +281,16 @@ module VPNDetection
266
281
  @name = name
267
282
  end
268
283
 
284
+ # Custom attribute writer method with validation
285
+ # @param [Object] summary Value to be assigned
286
+ def summary=(summary)
287
+ if summary.nil?
288
+ fail ArgumentError, 'summary cannot be nil'
289
+ end
290
+
291
+ @summary = summary
292
+ end
293
+
269
294
  # Custom attribute writer method checking allowed values (enum).
270
295
  # @param [Object] license_type Object to be assigned
271
296
  def license_type=(license_type)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VPNDetection
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vpndetection
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev