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 +4 -4
- data/lib/gitlab/license.rb +4 -16
- data/lib/gitlab/license/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7576ad0e3380471a2dfd3d4c1b0723af40aa4098e92ad07f81f6a57417c73d0a
|
4
|
+
data.tar.gz: 51f9db1de53aef2224d5b19dd7d36a7df3e26956ca7973b95cf09afe1af0937a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63425904d6d344e22258d2282e332fc14cec787d5a774bbcb98e7bc97db9ca5631ea5ae7368f7084fc32dea7330128c7b7d8424106f933e68553f69c932b84d8
|
7
|
+
data.tar.gz: a807d41b598fde56eaeceedff4f14986430c29b484dc9d0ceeed40637e8c5b3dd8f10a71814f2bc991649f8e511c7583f4d721b15b8a3420b342ed05b2ffc877
|
data/lib/gitlab/license.rb
CHANGED
@@ -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
|
-
|
55
|
-
|
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
|
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
|
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.
|
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:
|
13
|
+
date: 2021-02-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|