Commit 34fc68a
Changed files (4)
lib/scim/kit/v2.rb
@@ -75,9 +75,7 @@ module Scim
end
def configure
- builder = ::Scim::Kit::V2::Configuration::Builder.new
- yield builder
- builder.apply_to(configuration)
+ yield ::Scim::Kit::V2::Configuration::Builder.new(configuration)
end
end
end
lib/scim/kit/version.rb
@@ -2,6 +2,6 @@
module Scim
module Kit
- VERSION = '0.3.0'
+ VERSION = '0.3.1'
end
end
spec/scim/kit/v2_spec.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+RSpec.describe Scim::Kit::V2 do
+ subject { described_class }
+
+ describe ".configure" do
+ specify do
+ called = false
+ subject.configure do |config|
+ called = true
+ expect(config).to be_instance_of(Scim::Kit::V2::Configuration::Builder)
+ end
+
+ expect(called).to be(true)
+ end
+ end
+end
CHANGELOG.md
@@ -1,4 +1,4 @@
-Version 0.3.0
+Version 0.3.1
# Changelog
All notable changes to this project will be documented in this file.
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- NA
+## [0.3.1] - 2019-02-23
+### Changed
+- fix bug in `Scim::Kit::V2.configure`
+
## [0.3.0] - 2019-02-21
### Added
- add ServiceProviderConfiguration JSON parsing
@@ -27,7 +31,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- \_assign does not coerce values by default.
- errors are merged together instead of overwritten during attribute validation.
-[Unreleased]: https://github.com/mokhan/scim-kit/compare/v0.3.0...HEAD
+[Unreleased]: https://github.com/mokhan/scim-kit/compare/v0.3.1...HEAD
+[0.3.1]: https://github.com/mokhan/scim-kit/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/mokhan/scim-kit/compare/v0.2.16...v0.3.0
[0.2.16]: https://github.com/mokhan/scim-kit/compare/v0.2.15...v0.2.16
[0.2.15]: https://github.com/mokhan/scim-kit/compare/v0.2.14...v0.2.15