scimitar 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -0
- data/README.md +710 -0
- data/app/controllers/scimitar/active_record_backed_resources_controller.rb +53 -17
- data/app/controllers/scimitar/application_controller.rb +13 -4
- data/app/models/scimitar/complex_types/address.rb +0 -6
- data/app/models/scimitar/resource_invalid_error.rb +1 -1
- data/app/models/scimitar/resources/mixin.rb +4 -1
- data/app/models/scimitar/schema/attribute.rb +3 -3
- data/config/initializers/scimitar.rb +3 -3
- data/lib/scimitar/support/utilities.rb +51 -0
- data/lib/scimitar/version.rb +2 -2
- data/lib/scimitar.rb +1 -0
- data/spec/apps/dummy/app/controllers/custom_create_mock_users_controller.rb +25 -0
- data/spec/apps/dummy/app/controllers/custom_replace_mock_users_controller.rb +25 -0
- data/spec/apps/dummy/app/controllers/custom_update_mock_users_controller.rb +25 -0
- data/spec/apps/dummy/config/routes.rb +15 -3
- data/spec/controllers/scimitar/application_controller_spec.rb +56 -2
- data/spec/controllers/scimitar/schemas_controller_spec.rb +1 -1
- data/spec/models/scimitar/complex_types/address_spec.rb +3 -4
- data/spec/models/scimitar/resources/mixin_spec.rb +22 -0
- data/spec/requests/active_record_backed_resources_controller_spec.rb +410 -50
- data/spec/spec_helper.rb +9 -1
- metadata +34 -11
data/spec/spec_helper.rb
CHANGED
@@ -30,14 +30,22 @@ RSpec.configure do | config |
|
|
30
30
|
config.disable_monkey_patching!
|
31
31
|
config.infer_spec_type_from_file_location!
|
32
32
|
config.filter_rails_from_backtrace!
|
33
|
+
config.raise_errors_for_deprecations!
|
33
34
|
|
34
35
|
config.color = true
|
35
36
|
config.tty = true
|
36
37
|
config.order = :random
|
37
|
-
config.
|
38
|
+
config.fixture_paths = ["#{::Rails.root}/spec/fixtures"]
|
38
39
|
config.use_transactional_fixtures = true
|
39
40
|
|
40
41
|
Kernel.srand config.seed
|
42
|
+
|
43
|
+
config.around :each do | example |
|
44
|
+
original_engine_configuration = Scimitar.instance_variable_get('@engine_configuration')
|
45
|
+
example.run()
|
46
|
+
ensure
|
47
|
+
Scimitar.instance_variable_set('@engine_configuration', original_engine_configuration)
|
48
|
+
end
|
41
49
|
end
|
42
50
|
|
43
51
|
# ============================================================================
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scimitar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RIPA Global
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -25,34 +25,48 @@ dependencies:
|
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '7.0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: nokogiri
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 1.15.5
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 1.15.5
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: rake
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
31
45
|
requirements:
|
32
46
|
- - "~>"
|
33
47
|
- !ruby/object:Gem::Version
|
34
|
-
version: '13.
|
48
|
+
version: '13.1'
|
35
49
|
type: :development
|
36
50
|
prerelease: false
|
37
51
|
version_requirements: !ruby/object:Gem::Requirement
|
38
52
|
requirements:
|
39
53
|
- - "~>"
|
40
54
|
- !ruby/object:Gem::Version
|
41
|
-
version: '13.
|
55
|
+
version: '13.1'
|
42
56
|
- !ruby/object:Gem::Dependency
|
43
57
|
name: pg
|
44
58
|
requirement: !ruby/object:Gem::Requirement
|
45
59
|
requirements:
|
46
60
|
- - "~>"
|
47
61
|
- !ruby/object:Gem::Version
|
48
|
-
version: '1.
|
62
|
+
version: '1.5'
|
49
63
|
type: :development
|
50
64
|
prerelease: false
|
51
65
|
version_requirements: !ruby/object:Gem::Requirement
|
52
66
|
requirements:
|
53
67
|
- - "~>"
|
54
68
|
- !ruby/object:Gem::Version
|
55
|
-
version: '1.
|
69
|
+
version: '1.5'
|
56
70
|
- !ruby/object:Gem::Dependency
|
57
71
|
name: simplecov-rcov
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,28 +87,28 @@ dependencies:
|
|
73
87
|
requirements:
|
74
88
|
- - "~>"
|
75
89
|
- !ruby/object:Gem::Version
|
76
|
-
version: '6.
|
90
|
+
version: '6.6'
|
77
91
|
type: :development
|
78
92
|
prerelease: false
|
79
93
|
version_requirements: !ruby/object:Gem::Requirement
|
80
94
|
requirements:
|
81
95
|
- - "~>"
|
82
96
|
- !ruby/object:Gem::Version
|
83
|
-
version: '6.
|
97
|
+
version: '6.6'
|
84
98
|
- !ruby/object:Gem::Dependency
|
85
99
|
name: rspec-rails
|
86
100
|
requirement: !ruby/object:Gem::Requirement
|
87
101
|
requirements:
|
88
102
|
- - "~>"
|
89
103
|
- !ruby/object:Gem::Version
|
90
|
-
version: '6.
|
104
|
+
version: '6.1'
|
91
105
|
type: :development
|
92
106
|
prerelease: false
|
93
107
|
version_requirements: !ruby/object:Gem::Requirement
|
94
108
|
requirements:
|
95
109
|
- - "~>"
|
96
110
|
- !ruby/object:Gem::Version
|
97
|
-
version: '6.
|
111
|
+
version: '6.1'
|
98
112
|
- !ruby/object:Gem::Dependency
|
99
113
|
name: byebug
|
100
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,6 +144,8 @@ executables: []
|
|
130
144
|
extensions: []
|
131
145
|
extra_rdoc_files: []
|
132
146
|
files:
|
147
|
+
- LICENSE.txt
|
148
|
+
- README.md
|
133
149
|
- Rakefile
|
134
150
|
- app/controllers/scimitar/active_record_backed_resources_controller.rb
|
135
151
|
- app/controllers/scimitar/application_controller.rb
|
@@ -193,10 +209,14 @@ files:
|
|
193
209
|
- lib/scimitar.rb
|
194
210
|
- lib/scimitar/engine.rb
|
195
211
|
- lib/scimitar/support/hash_with_indifferent_case_insensitive_access.rb
|
212
|
+
- lib/scimitar/support/utilities.rb
|
196
213
|
- lib/scimitar/version.rb
|
214
|
+
- spec/apps/dummy/app/controllers/custom_create_mock_users_controller.rb
|
197
215
|
- spec/apps/dummy/app/controllers/custom_destroy_mock_users_controller.rb
|
216
|
+
- spec/apps/dummy/app/controllers/custom_replace_mock_users_controller.rb
|
198
217
|
- spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
|
199
218
|
- spec/apps/dummy/app/controllers/custom_save_mock_users_controller.rb
|
219
|
+
- spec/apps/dummy/app/controllers/custom_update_mock_users_controller.rb
|
200
220
|
- spec/apps/dummy/app/controllers/mock_groups_controller.rb
|
201
221
|
- spec/apps/dummy/app/controllers/mock_users_controller.rb
|
202
222
|
- spec/apps/dummy/app/models/mock_group.rb
|
@@ -261,14 +281,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
281
|
- !ruby/object:Gem::Version
|
262
282
|
version: '0'
|
263
283
|
requirements: []
|
264
|
-
rubygems_version: 3.
|
284
|
+
rubygems_version: 3.5.3
|
265
285
|
signing_key:
|
266
286
|
specification_version: 4
|
267
287
|
summary: SCIM v2 for Rails
|
268
288
|
test_files:
|
289
|
+
- spec/apps/dummy/app/controllers/custom_create_mock_users_controller.rb
|
269
290
|
- spec/apps/dummy/app/controllers/custom_destroy_mock_users_controller.rb
|
291
|
+
- spec/apps/dummy/app/controllers/custom_replace_mock_users_controller.rb
|
270
292
|
- spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
|
271
293
|
- spec/apps/dummy/app/controllers/custom_save_mock_users_controller.rb
|
294
|
+
- spec/apps/dummy/app/controllers/custom_update_mock_users_controller.rb
|
272
295
|
- spec/apps/dummy/app/controllers/mock_groups_controller.rb
|
273
296
|
- spec/apps/dummy/app/controllers/mock_users_controller.rb
|
274
297
|
- spec/apps/dummy/app/models/mock_group.rb
|