entitlements-app 0.3.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a19d65245ff875ecfe3952b55e47e794cb79762c453b5ad20e0276246459a1ee
4
- data.tar.gz: e376e43125fd225fa897b6eb8f587c388e696ded51711046cc480dcac98eebe6
3
+ metadata.gz: edd2af5e265395fe5de06640cfc7c3579b53d433d2f0744905f4c3f73546438c
4
+ data.tar.gz: afdb53966f6b2187abb7c306972cc6d25128e263004bd5c280bc5574cccb0cf6
5
5
  SHA512:
6
- metadata.gz: c99ea08f0a07149f7d3beb79a800f6614b416f5836768fa2879eb5430c7ec4180b1f1b63d710d8597c853a56ebb0c11d32a65081a5c73a268c90ff6c80db8f51
7
- data.tar.gz: b8eb8d2b8ab832b15b80aee87543d15ab8c8bb604768d7348146696010b6a759c58787993ac0142385bfde7d2584326be059b5ab217d9588b99595a52afb730b
6
+ metadata.gz: dae84ff7606cac9ede726dabd0a61c1bd7c9124a4f2133c6c3bd0ec353056df88d1ef7d11eda2e4a0dc3ef51c15624cce74b6dc72cacc9ee9958c9be42b1fe5a
7
+ data.tar.gz: f034f7180ecd035136ee136181c0ca9f060884fa6f5d9fd2f1b834a4d415e0e944144fc7a4ac3b67a80fd919dc2cf7ac171dc20fa7cea03d5d09cc15f7974dcf
@@ -6,6 +6,7 @@ require "ruby_version_check"
6
6
 
7
7
  # Note that contracts.ruby has two specific ruby-version specific libraries, which we have vendored into lib/
8
8
  if RubyVersionCheck.ruby_version2?
9
+ puts "WARNING: Ruby 2.x is deprecated and will be removed in a future release. Please upgrade to Ruby 3.x."
9
10
  $LOAD_PATH.unshift(File.expand_path(File.join(__dir__, "../lib/contracts-ruby2/lib")))
10
11
  else
11
12
  $LOAD_PATH.unshift(File.expand_path(File.join(__dir__, "../lib/contracts-ruby3/lib")))
@@ -275,7 +275,7 @@ module Entitlements
275
275
  raw_key, operator, val = Regexp.last_match(1), Regexp.last_match(2), Regexp.last_match(3)
276
276
 
277
277
  key = if filter_keywords.include?(raw_key)
278
- "filter_#{raw_key}"
278
+ "filter_#{raw_key}"
279
279
  elsif MODIFIERS.include?(raw_key)
280
280
  "modifier_#{raw_key}"
281
281
  else
@@ -68,7 +68,7 @@ module Entitlements
68
68
  end
69
69
 
70
70
  values = if val.is_a?(String)
71
- [val]
71
+ [val]
72
72
  elsif val.is_a?(Array)
73
73
  val
74
74
  else
@@ -164,7 +164,7 @@ module Entitlements
164
164
  Contract C::None => C::HashOf[String => C::Any]
165
165
  def parsed_data
166
166
  @parsed_data ||= if RubyVersionCheck.ruby_version2?
167
- ::YAML.load(File.read(filename)).to_h
167
+ ::YAML.load(File.read(filename)).to_h
168
168
  else
169
169
  ::YAML.load(File.read(filename), permitted_classes: [Date]).to_h
170
170
  end
@@ -80,7 +80,7 @@ module Entitlements
80
80
 
81
81
  # :nocov:
82
82
  raw_person_data = if RubyVersionCheck.ruby_version2?
83
- ::YAML.load(File.read(filename)).to_h
83
+ ::YAML.load(File.read(filename)).to_h
84
84
  else
85
85
  ::YAML.load(File.read(filename), permitted_classes: [Date]).to_h
86
86
  end
@@ -27,7 +27,7 @@ module Entitlements
27
27
  entry = ldap.read(value)
28
28
  unless entry
29
29
  message = if filename
30
- "Failed to read ldap_group = #{value} (referenced in #{filename})"
30
+ "Failed to read ldap_group = #{value} (referenced in #{filename})"
31
31
  else
32
32
  # :nocov:
33
33
  "Failed to read ldap_group = #{value}"
@@ -383,7 +383,7 @@ module Entitlements
383
383
  Contract Net::LDAP::Entry => C::ArrayOf[String]
384
384
  def self.member_array(entry)
385
385
  members = if entry[:objectclass].include?("groupOfUniqueNames")
386
- entry[:uniquemember]
386
+ entry[:uniquemember]
387
387
  elsif entry[:objectclass].include?("groupOfNames")
388
388
  entry[:member]
389
389
  elsif entry[:objectclass].include?("posixGroup")
@@ -26,7 +26,7 @@ module Entitlements
26
26
  end
27
27
 
28
28
  file = if plugin["file"] !~ %r{/}
29
- File.expand_path(File.join("../plugins", plugin["file"]), File.dirname(__FILE__))
29
+ File.expand_path(File.join("../plugins", plugin["file"]), File.dirname(__FILE__))
30
30
  elsif plugin["file"].start_with?("/")
31
31
  plugin["file"]
32
32
  else
@@ -81,7 +81,7 @@ module Entitlements
81
81
 
82
82
  dir = Entitlements.config["groups"][group]["dir"]
83
83
  result_dir = if dir.nil?
84
- File.join(Entitlements.config_path, group)
84
+ File.join(Entitlements.config_path, group)
85
85
  elsif dir.start_with?("/")
86
86
  dir
87
87
  else
data/lib/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Entitlements
4
4
  module Version
5
- VERSION = "0.3.4"
5
+ VERSION = "1.0.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,49 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entitlements-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc. Security Ops
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-29 00:00:00.000000000 Z
11
+ date: 2024-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.9
19
+ version: '1.3'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.3.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - '='
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - - ">="
25
31
  - !ruby/object:Gem::Version
26
- version: 1.1.9
32
+ version: 1.3.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: faraday
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - ">"
37
+ - - "~>"
32
38
  - !ruby/object:Gem::Version
33
39
  version: '2.0'
34
- - - "<="
35
- - !ruby/object:Gem::Version
36
- version: 2.7.10
37
40
  type: :runtime
38
41
  prerelease: false
39
42
  version_requirements: !ruby/object:Gem::Requirement
40
43
  requirements:
41
- - - ">"
44
+ - - "~>"
42
45
  - !ruby/object:Gem::Version
43
46
  version: '2.0'
44
- - - "<="
45
- - !ruby/object:Gem::Version
46
- version: 2.7.10
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: net-ldap
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -76,16 +76,16 @@ dependencies:
76
76
  name: optimist
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - '='
79
+ - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: 3.0.0
81
+ version: '3.1'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '='
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: 3.0.0
88
+ version: '3.1'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: debug
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -104,32 +104,24 @@ dependencies:
104
104
  name: rake
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - '='
108
- - !ruby/object:Gem::Version
109
- version: 13.0.6
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - '='
107
+ - - "~>"
115
108
  - !ruby/object:Gem::Version
116
- version: 13.0.6
117
- - !ruby/object:Gem::Dependency
118
- name: rspec
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - '='
109
+ version: '13.2'
110
+ - - ">="
122
111
  - !ruby/object:Gem::Version
123
- version: 3.8.0
112
+ version: 13.2.1
124
113
  type: :development
125
114
  prerelease: false
126
115
  version_requirements: !ruby/object:Gem::Requirement
127
116
  requirements:
128
- - - '='
117
+ - - "~>"
129
118
  - !ruby/object:Gem::Version
130
- version: 3.8.0
119
+ version: '13.2'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 13.2.1
131
123
  - !ruby/object:Gem::Dependency
132
- name: rspec-core
124
+ name: rspec
133
125
  requirement: !ruby/object:Gem::Requirement
134
126
  requirements:
135
127
  - - '='
@@ -146,44 +138,44 @@ dependencies:
146
138
  name: rubocop
147
139
  requirement: !ruby/object:Gem::Requirement
148
140
  requirements:
149
- - - '='
141
+ - - "~>"
150
142
  - !ruby/object:Gem::Version
151
- version: 1.29.1
143
+ version: '1.64'
152
144
  type: :development
153
145
  prerelease: false
154
146
  version_requirements: !ruby/object:Gem::Requirement
155
147
  requirements:
156
- - - '='
148
+ - - "~>"
157
149
  - !ruby/object:Gem::Version
158
- version: 1.29.1
150
+ version: '1.64'
159
151
  - !ruby/object:Gem::Dependency
160
152
  name: rubocop-github
161
153
  requirement: !ruby/object:Gem::Requirement
162
154
  requirements:
163
- - - '='
155
+ - - "~>"
164
156
  - !ruby/object:Gem::Version
165
- version: 0.17.0
157
+ version: '0.20'
166
158
  type: :development
167
159
  prerelease: false
168
160
  version_requirements: !ruby/object:Gem::Requirement
169
161
  requirements:
170
- - - '='
162
+ - - "~>"
171
163
  - !ruby/object:Gem::Version
172
- version: 0.17.0
164
+ version: '0.20'
173
165
  - !ruby/object:Gem::Dependency
174
166
  name: rubocop-performance
175
167
  requirement: !ruby/object:Gem::Requirement
176
168
  requirements:
177
- - - '='
169
+ - - "~>"
178
170
  - !ruby/object:Gem::Version
179
- version: 1.13.3
171
+ version: '1.21'
180
172
  type: :development
181
173
  prerelease: false
182
174
  version_requirements: !ruby/object:Gem::Requirement
183
175
  requirements:
184
- - - '='
176
+ - - "~>"
185
177
  - !ruby/object:Gem::Version
186
- version: 1.13.3
178
+ version: '1.21'
187
179
  - !ruby/object:Gem::Dependency
188
180
  name: rugged
189
181
  requirement: !ruby/object:Gem::Requirement
@@ -208,58 +200,70 @@ dependencies:
208
200
  name: simplecov
209
201
  requirement: !ruby/object:Gem::Requirement
210
202
  requirements:
211
- - - '='
203
+ - - "~>"
212
204
  - !ruby/object:Gem::Version
213
- version: 0.16.1
205
+ version: 0.22.0
214
206
  type: :development
215
207
  prerelease: false
216
208
  version_requirements: !ruby/object:Gem::Requirement
217
209
  requirements:
218
- - - '='
210
+ - - "~>"
219
211
  - !ruby/object:Gem::Version
220
- version: 0.16.1
212
+ version: 0.22.0
221
213
  - !ruby/object:Gem::Dependency
222
214
  name: simplecov-erb
223
215
  requirement: !ruby/object:Gem::Requirement
224
216
  requirements:
225
- - - '='
217
+ - - "~>"
218
+ - !ruby/object:Gem::Version
219
+ version: '1.0'
220
+ - - ">="
226
221
  - !ruby/object:Gem::Version
227
222
  version: 1.0.1
228
223
  type: :development
229
224
  prerelease: false
230
225
  version_requirements: !ruby/object:Gem::Requirement
231
226
  requirements:
232
- - - '='
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '1.0'
230
+ - - ">="
233
231
  - !ruby/object:Gem::Version
234
232
  version: 1.0.1
235
233
  - !ruby/object:Gem::Dependency
236
234
  name: vcr
237
235
  requirement: !ruby/object:Gem::Requirement
238
236
  requirements:
239
- - - '='
237
+ - - "~>"
240
238
  - !ruby/object:Gem::Version
241
- version: 4.0.0
239
+ version: '6.2'
242
240
  type: :development
243
241
  prerelease: false
244
242
  version_requirements: !ruby/object:Gem::Requirement
245
243
  requirements:
246
- - - '='
244
+ - - "~>"
247
245
  - !ruby/object:Gem::Version
248
- version: 4.0.0
246
+ version: '6.2'
249
247
  - !ruby/object:Gem::Dependency
250
248
  name: webmock
251
249
  requirement: !ruby/object:Gem::Requirement
252
250
  requirements:
253
- - - '='
251
+ - - "~>"
254
252
  - !ruby/object:Gem::Version
255
- version: 3.4.2
253
+ version: '3.23'
254
+ - - ">="
255
+ - !ruby/object:Gem::Version
256
+ version: 3.23.1
256
257
  type: :development
257
258
  prerelease: false
258
259
  version_requirements: !ruby/object:Gem::Requirement
259
260
  requirements:
260
- - - '='
261
+ - - "~>"
262
+ - !ruby/object:Gem::Version
263
+ version: '3.23'
264
+ - - ">="
261
265
  - !ruby/object:Gem::Version
262
- version: 3.4.2
266
+ version: 3.23.1
263
267
  description: The Ruby Gem that Powers Entitlements - GitHub's Identity and Access
264
268
  Management System
265
269
  email: opensource+entitlements-app@github.com
@@ -502,7 +506,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
502
506
  requirements:
503
507
  - - ">="
504
508
  - !ruby/object:Gem::Version
505
- version: '0'
509
+ version: 3.0.0
506
510
  required_rubygems_version: !ruby/object:Gem::Requirement
507
511
  requirements:
508
512
  - - ">="