scim-kit 0.2.2 → 0.2.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f07e64ed2c091198ba651f39de121391022c9323a534ea0dcbf8c1969ea0c33
|
4
|
+
data.tar.gz: 1cecee46465d3c8382f8421aedf0a4baa66ec632b5287b965b9ff0367b1e7da2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee04c1962c3b85fbc4555eb50e620766a747a477032434998a87f15206418836e422601148b3ce705d64130fd975981fff05f884859c279f53cb5b69efa8cdff
|
7
|
+
data.tar.gz: 4b8d9e13fed9a4ad8bc04a7cfee0b5533bce988da1f6da5a65f14bcd99bf56c71555f9fc8f5ad51f6b79c9eff6a60fb086214999cb2aa8c107f146b03b6a21bc
|
@@ -9,10 +9,7 @@ module Scim
|
|
9
9
|
|
10
10
|
def define_attributes_for(types)
|
11
11
|
@dynamic_attributes = {}.with_indifferent_access
|
12
|
-
types.each
|
13
|
-
dynamic_attributes[type.name] = Attribute.new(type: type)
|
14
|
-
extend(create_module_for(type))
|
15
|
-
end
|
12
|
+
types.each { |x| attribute(x) }
|
16
13
|
end
|
17
14
|
|
18
15
|
private
|
@@ -44,6 +41,11 @@ module Scim
|
|
44
41
|
end
|
45
42
|
end
|
46
43
|
end
|
44
|
+
|
45
|
+
def attribute(type)
|
46
|
+
dynamic_attributes[type.name] = Attribute.new(type: type)
|
47
|
+
extend(create_module_for(type))
|
48
|
+
end
|
47
49
|
end
|
48
50
|
end
|
49
51
|
end
|
@@ -12,11 +12,13 @@ module Scim
|
|
12
12
|
attr_accessor :description
|
13
13
|
attr_accessor :endpoint
|
14
14
|
attr_accessor :schema
|
15
|
+
attr_accessor :schema_extensions
|
15
16
|
attr_reader :meta
|
16
17
|
|
17
18
|
def initialize(location:)
|
18
19
|
@meta = Meta.new('ResourceType', location)
|
19
20
|
@meta.version = @meta.created = @meta.last_modified = nil
|
21
|
+
@schema_extensions = []
|
20
22
|
end
|
21
23
|
|
22
24
|
def self.build(*args)
|
data/lib/scim/kit/version.rb
CHANGED