scim-kit 0.2.0 → 0.2.1

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: c615da7460744208a93f82d9731fcb99fd00dd9f6b9e841d54b96394e0b24d49
4
- data.tar.gz: ea7cb0fb6aa0b69e781728c5677e9fdf119553ef1b7c2828187d62a56ca500db
3
+ metadata.gz: ac439680a326531f8bb77df0501d11f8d36b3b5cb6f3a26623c21729fd20cee1
4
+ data.tar.gz: 0fa1382a12a178b1e2f9e3ee4e9ba1f4ea2b7457515a6511832e937a318ea90c
5
5
  SHA512:
6
- metadata.gz: 3ef6cb2e6c3b791b837c4cb6158bf9e1b80d074acc40a75d4ea4b194b93a0b6101c827b1a9f5376ed98395fdf0bd690c2692f83177d0d1ed0af36da748eb84bd
7
- data.tar.gz: 67a78548780b91ca3d671fcbbbf52eb99c320b04b51255e202b15a97a5ee19ee83eec3b5b023df4ad269f787dd6ad3e42f1cddda367408f2069638d3ebfbae57
6
+ metadata.gz: 9411c5db41027d8ad20065ac76d7e6d9bab7c20dd31b42f2c5600bf1ca1952946c55970a90be1688f835e79fc4c37ef1a5d05d69c2c7b538696a63e810d61e43
7
+ data.tar.gz: 07a69f09dc046a851cd3380b011b7d637b772af360209d78f4a2c7fd87eca764ff5026e0decece19baf78e1c46530c7c015e7913fbdee9d4386e75171ce926e9
data/README.md CHANGED
@@ -25,9 +25,9 @@ Or install it yourself as:
25
25
  ```ruby
26
26
  def user_schema
27
27
  Scim::Kit::V2::Schema.build(
28
- id: Scim::Kit::V2::Schema::USER,
28
+ id: Scim::Kit::V2::Schemas::USER,
29
29
  name: "User",
30
- location: scim_v2_schema_url(id: Scim::Kit::V2::Schema::USER)
30
+ location: scim_v2_schema_url(id: Scim::Kit::V2::Schemas::USER)
31
31
  ) do |schema|
32
32
  schema.description = "User Account"
33
33
  schema.add_attribute(name: 'userName') do |x|
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Scim
4
+ module Kit
5
+ module V2
6
+ module Messages
7
+ CORE = 'urn:ietf:params:scim:api:messages:2.0'
8
+ LIST_RESPONSE = "#{CORE}:ListResponse"
9
+ SEARCH_REQUEST = "#{CORE}:SearchRequest"
10
+ ERROR = "#{CORE}:Error"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -7,13 +7,6 @@ module Scim
7
7
  class Schema
8
8
  include Templatable
9
9
 
10
- CORE = 'urn:ietf:params:scim:schemas:core:2.0'
11
- ERROR = 'urn:ietf:params:scim:api:messages:2.0:Error'
12
- GROUP = "#{CORE}:Group"
13
- RESOURCE_TYPE = "#{CORE}:ResourceType"
14
- SERVICE_PROVIDER_CONFIGURATION = "#{CORE}:ServiceProviderConfig"
15
- USER = "#{CORE}:User"
16
-
17
10
  attr_reader :id, :name, :location, :attributes
18
11
  attr_accessor :description
19
12
 
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Scim
4
+ module Kit
5
+ module V2
6
+ module Schemas
7
+ CORE = 'urn:ietf:params:scim:schemas:core:2.0'
8
+ GROUP = "#{CORE}:Group"
9
+ RESOURCE_TYPE = "#{CORE}:ResourceType"
10
+ SERVICE_PROVIDER_CONFIGURATION = "#{CORE}:ServiceProviderConfig"
11
+ USER = "#{CORE}:User"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -4,7 +4,7 @@ json.key_format! camelize: :lower
4
4
  json.meta do
5
5
  render meta, json: json
6
6
  end
7
- json.schemas [Scim::Kit::V2::Schema::RESOURCE_TYPE]
7
+ json.schemas [Scim::Kit::V2::Schemas::RESOURCE_TYPE]
8
8
  json.id id
9
9
  json.name name
10
10
  json.description description
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  json.key_format! camelize: :lower
4
- json.schemas [Scim::Kit::V2::Schema::SERVICE_PROVIDER_CONFIGURATION]
4
+ json.schemas [Scim::Kit::V2::Schemas::SERVICE_PROVIDER_CONFIGURATION]
5
5
  json.documentation_uri documentation_uri
6
6
  json.patch do
7
7
  render patch, json: json
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Scim
4
4
  module Kit
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
data/lib/scim/kit.rb CHANGED
@@ -10,11 +10,13 @@ require 'scim/kit/version'
10
10
 
11
11
  require 'scim/kit/v2/attribute_type'
12
12
  require 'scim/kit/v2/authentication_scheme'
13
+ require 'scim/kit/v2/messages'
13
14
  require 'scim/kit/v2/meta'
14
15
  require 'scim/kit/v2/mutability'
15
16
  require 'scim/kit/v2/resource_type'
16
17
  require 'scim/kit/v2/returned'
17
18
  require 'scim/kit/v2/schema'
19
+ require 'scim/kit/v2/schemas'
18
20
  require 'scim/kit/v2/service_provider_configuration'
19
21
  require 'scim/kit/v2/supportable'
20
22
  require 'scim/kit/v2/uniqueness'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scim-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-05 00:00:00.000000000 Z
11
+ date: 2019-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt
@@ -179,11 +179,13 @@ files:
179
179
  - lib/scim/kit/template.rb
180
180
  - lib/scim/kit/v2/attribute_type.rb
181
181
  - lib/scim/kit/v2/authentication_scheme.rb
182
+ - lib/scim/kit/v2/messages.rb
182
183
  - lib/scim/kit/v2/meta.rb
183
184
  - lib/scim/kit/v2/mutability.rb
184
185
  - lib/scim/kit/v2/resource_type.rb
185
186
  - lib/scim/kit/v2/returned.rb
186
187
  - lib/scim/kit/v2/schema.rb
188
+ - lib/scim/kit/v2/schemas.rb
187
189
  - lib/scim/kit/v2/service_provider_configuration.rb
188
190
  - lib/scim/kit/v2/supportable.rb
189
191
  - lib/scim/kit/v2/templates/attribute_type.json.jbuilder