Comparing changes
v0.5.2
→
v0.5.3
15 commits
7 files changed
Commits
0fd5824
Merge pull request #45 from xlgmokha/dependabot/bundler/activemodel-6.1.6
2022-05-09 21:32:22
b84df6d
Merge pull request #42 from xlgmokha/dependabot/bundler/activemodel-6.1.5
2022-03-11 21:20:36
4de7787
Merge pull request #41 from xlgmokha/dependabot/bundler/activemodel-6.1.4.7
2022-03-09 16:44:05
32da535
Merge pull request #40 from xlgmokha/dependabot/bundler/activemodel-6.1.4.6
2022-02-14 22:29:29
78da888
chore(deps): update activemodel requirement from ~> 6.1 to >= 6.1, < 8.0
2022-02-11 20:06:16
Changed files (7)
lib
scim
kit
spec
scim
kit
lib/scim/kit/v2/error.rb
@@ -6,9 +6,9 @@ module Scim
# Represents a SCIM Error
class Error < Resource
SCIM_TYPES = %w[
+ invalidFilter
invalidPath
invalidSyntax
- invalidSyntax
invalidValue
invalidVers
mutability
@@ -32,7 +32,7 @@ module Scim
attribute.canonical_values = SCIM_TYPES
end
x.add_attribute(name: :detail)
- x.add_attribute(name: :status, type: :integer)
+ x.add_attribute(name: :status, type: :string)
end
end
end
lib/scim/kit/version.rb
@@ -2,6 +2,6 @@
module Scim
module Kit
- VERSION = '0.5.2'
+ VERSION = '0.5.3'
end
end
spec/scim/kit/v2/error_spec.rb
@@ -12,5 +12,5 @@ RSpec.describe Scim::Kit::V2::Error do
specify { expect(subject.to_h[:schemas]).to match_array([Scim::Kit::V2::Messages::ERROR]) }
specify { expect(subject.to_h[:scimType]).to eql('invalidSyntax') }
specify { expect(subject.to_h[:detail]).to eql('error') }
- specify { expect(subject.to_h[:status]).to be(400) }
+ specify { expect(subject.to_h[:status]).to eql('400') }
end
spec/scim/kit/v2/resource_spec.rb
@@ -590,6 +590,6 @@ RSpec.describe Scim::Kit::V2::Resource do
specify { expect(subject.to_h[:schemas]).to match_array([Scim::Kit::V2::Messages::ERROR]) }
specify { expect(subject.to_h[:scimType]).to eql('invalidSyntax') }
specify { expect(subject.to_h[:detail]).to eql('error') }
- specify { expect(subject.to_h[:status]).to be(400) }
+ specify { expect(subject.to_h[:status]).to eql('400') }
end
end
CHANGELOG.md
@@ -1,4 +1,4 @@
-Version 0.5.2
+Version 0.5.3
# Changelog
All notable changes to this project will be documented in this file.
@@ -8,6 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+## [0.5.3] - 2022-05-13
+### Fixed
+
+- fix: change `status` attribute to type string in [error schema](https://www.rfc-editor.org/rfc/rfc7644.html#section-3.12)
+- fix: remove duplicate `invalidSyntax`
+- fix: add mising `invalidFilter`
+
## [0.5.2] - 2020-05-20
### Fixed
Gemfile.lock
@@ -1,8 +1,8 @@
PATH
remote: .
specs:
- scim-kit (0.5.2)
- activemodel (~> 6.1)
+ scim-kit (0.5.3)
+ activemodel (>= 6.1, < 8.0)
net-hippie (~> 1.0)
parslet (~> 2.0)
tilt (~> 2.0)
@@ -11,15 +11,15 @@ PATH
GEM
remote: https://rubygems.org/
specs:
- actionview (6.1.4.4)
- activesupport (= 6.1.4.4)
+ actionview (6.1.6)
+ activesupport (= 6.1.6)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
- activemodel (6.1.4.4)
- activesupport (= 6.1.4.4)
- activesupport (6.1.4.4)
+ activemodel (6.1.6)
+ activesupport (= 6.1.6)
+ activesupport (6.1.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
@@ -32,20 +32,20 @@ GEM
bundler-audit (0.9.0.1)
bundler (>= 1.2.0, < 3)
thor (~> 1.0)
- concurrent-ruby (1.1.9)
+ concurrent-ruby (1.1.10)
crack (0.4.5)
rexml
crass (1.0.6)
diff-lcs (1.5.0)
erubi (1.10.0)
- ffaker (2.20.0)
+ ffaker (2.21.0)
hashdiff (1.0.1)
- i18n (1.8.11)
+ i18n (1.10.0)
concurrent-ruby (~> 1.0)
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
- loofah (2.13.0)
+ loofah (2.17.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mini_portile2 (2.6.1)
@@ -71,19 +71,19 @@ GEM
rake (13.0.6)
regexp_parser (2.2.0)
rexml (3.2.5)
- rspec (3.10.0)
- rspec-core (~> 3.10.0)
- rspec-expectations (~> 3.10.0)
- rspec-mocks (~> 3.10.0)
- rspec-core (3.10.1)
- rspec-support (~> 3.10.0)
- rspec-expectations (3.10.2)
+ rspec (3.11.0)
+ rspec-core (~> 3.11.0)
+ rspec-expectations (~> 3.11.0)
+ rspec-mocks (~> 3.11.0)
+ rspec-core (3.11.0)
+ rspec-support (~> 3.11.0)
+ rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
- rspec-support (~> 3.10.0)
- rspec-mocks (3.10.2)
+ rspec-support (~> 3.11.0)
+ rspec-mocks (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
- rspec-support (~> 3.10.0)
- rspec-support (3.10.3)
+ rspec-support (~> 3.11.0)
+ rspec-support (3.11.0)
rubocop (0.93.1)
parallel (~> 1.10)
parser (>= 2.7.1.5)
@@ -111,7 +111,7 @@ GEM
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
- zeitwerk (2.5.3)
+ zeitwerk (2.5.4)
PLATFORMS
ruby
scim-kit.gemspec
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
spec.metadata['yard.run'] = 'yri'
- spec.add_dependency 'activemodel', '~> 6.1'
+ spec.add_dependency 'activemodel', '>= 6.1', '< 8.0'
spec.add_dependency 'net-hippie', '~> 1.0'
spec.add_dependency 'parslet', '~> 2.0'
spec.add_dependency 'tilt', '~> 2.0'