gitlab-license 1.2.0 → 1.3.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: e6aecf2ddad9be921880a1603714f79947534ede972c8f47f8b5121c96d912c1
4
- data.tar.gz: 66b55835b29c3c9c2fdd175b31113523d616802e6a8cfa6898a98f080039760b
3
+ metadata.gz: 7576ad0e3380471a2dfd3d4c1b0723af40aa4098e92ad07f81f6a57417c73d0a
4
+ data.tar.gz: 51f9db1de53aef2224d5b19dd7d36a7df3e26956ca7973b95cf09afe1af0937a
5
5
  SHA512:
6
- metadata.gz: 1ca37a34899d853c22871e36f70aac9196e127ea92b6c7ef1cdda167eab9e595c9e092ae072857c343158881dad8961b2430150b3e730d2408facac6b94b1c1e
7
- data.tar.gz: 5d77bbd654db4ad8e4e4458748d15720a3092d6085e73e06ac717b4f5fe6594f52ed517dedcc6e4c33398f3a1f419b7573578d37dae61a0f84b3543e2557383d
6
+ metadata.gz: 63425904d6d344e22258d2282e332fc14cec787d5a774bbcb98e7bc97db9ca5631ea5ae7368f7084fc32dea7330128c7b7d8424106f933e68553f69c932b84d8
7
+ data.tar.gz: a807d41b598fde56eaeceedff4f14986430c29b484dc9d0ceeed40637e8c5b3dd8f10a71814f2bc991649f8e511c7583f4d721b15b8a3420b342ed05b2ffc877
@@ -50,10 +50,9 @@ module Gitlab
50
50
  end
51
51
 
52
52
  attr_reader :version
53
- attr_accessor :licensee, :starts_at, :expires_at
54
- attr_accessor :notify_admins_at, :notify_users_at, :block_changes_at
55
- attr_accessor :type, :last_synced_at, :next_sync_at, :block_changes_without_sync_at
56
- attr_accessor :restrictions
53
+ attr_accessor :licensee, :starts_at, :expires_at, :notify_admins_at,
54
+ :notify_users_at, :block_changes_at, :type, :last_synced_at,
55
+ :next_sync_at, :restrictions
57
56
 
58
57
  alias_method :issued_at, :starts_at
59
58
  alias_method :issued_at=, :starts_at=
@@ -79,9 +78,7 @@ module Gitlab
79
78
  false
80
79
  elsif next_sync_at && !next_sync_at.is_a?(DateTime)
81
80
  false
82
- elsif block_changes_without_sync_at && !block_changes_without_sync_at.is_a?(Date)
83
- false
84
- elsif type && type != 'sync'
81
+ elsif type && type != 'cloud'
85
82
  false
86
83
  elsif restrictions && !restrictions.is_a?(Hash)
87
84
  false
@@ -110,10 +107,6 @@ module Gitlab
110
107
  block_changes_at
111
108
  end
112
109
 
113
- def will_block_changes_without_sync?
114
- block_changes_without_sync_at
115
- end
116
-
117
110
  def will_sync?
118
111
  next_sync_at
119
112
  end
@@ -134,10 +127,6 @@ module Gitlab
134
127
  will_block_changes? && Date.today >= block_changes_at
135
128
  end
136
129
 
137
- def block_changes_without_sync?
138
- will_block_changes_without_sync? && Date.today >= block_changes_without_sync_at
139
- end
140
-
141
130
  def restricted?(key = nil)
142
131
  if key
143
132
  restricted? && restrictions.has_key?(key)
@@ -161,7 +150,6 @@ module Gitlab
161
150
  hash['notify_users_at'] = notify_users_at if will_notify_users?
162
151
  hash['block_changes_at'] = block_changes_at if will_block_changes?
163
152
 
164
- hash['block_changes_without_sync_at'] = block_changes_without_sync_at if will_block_changes_without_sync?
165
153
  hash['next_sync_at'] = next_sync_at if will_sync?
166
154
  hash['last_synced_at'] = last_synced_at if will_sync?
167
155
  hash['type'] = type
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  class License
3
- VERSION = '1.2.0'.freeze
3
+ VERSION = '1.3.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-license
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douwe Maan
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-11-17 00:00:00.000000000 Z
13
+ date: 2021-02-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler