configurations 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 877c1c2cfb4af009d16fa6a91452fc214e846b13
4
+ data.tar.gz: d87d69a891eb5a54160ad0a4424f86ec0b927a0e
5
+ SHA512:
6
+ metadata.gz: 35339199e77ff86125b9624a52033eed03592fe599c48e067cb6215cb2899541c437f1b62768772a8b53cb5367bd7167651bd22139766e7386ea1cd576ae2f90
7
+ data.tar.gz: 3f6c9f7c82910f9d766345a4e7f2637f6aaa6cb3a6d9d5a235cb11beee5ba0d0bace240765228357589470c2abf77400243f73ac2176ec46e35870d5ef34d562
@@ -12,5 +12,5 @@ module Configurations
12
12
 
13
13
  # Version number of Configurations
14
14
  #
15
- VERSION = '1.3.3'
15
+ VERSION = '1.3.4'
16
16
  end
@@ -170,9 +170,9 @@ module Configurations
170
170
  # @param [Any] value the given value
171
171
  #
172
172
  def _assign!(property, value)
173
+ _assert_type!(property, value)
173
174
  v = _evaluate_block!(property, value)
174
175
  value = v unless v.nil?
175
- _assert_type!(property, value)
176
176
  @configuration[property] = value
177
177
  end
178
178
 
@@ -35,6 +35,14 @@ class TestStricterConfigurationWithBlock < Minitest::Test
35
35
  assert_equal 'bye', @configuration.property4.property6
36
36
  end
37
37
 
38
+ def test_evaluates_block_after_type_assertion
39
+ assert_raises Configurations::ConfigurationError, 'TEST2' do
40
+ BlocksConfigurationTestModule.configure do |c|
41
+ c.property4.property5 = :bla
42
+ end
43
+ end
44
+ end
45
+
38
46
  def test_evaluates_block_for_nested_properties_when_set_configurable_with_block
39
47
  assert_raises ArgumentError, 'TEST2' do
40
48
  BlocksConfigurationTestModule.configure do |c|
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configurations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
5
- prerelease:
4
+ version: 1.3.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Beat Richartz
@@ -14,49 +13,43 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: minitest
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '5.4'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '5.4'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: yard
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0.8'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0.8'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '10'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '10'
62
55
  description: Configurations provides a unified approach to do configurations with
@@ -67,8 +60,8 @@ executables: []
67
60
  extensions: []
68
61
  extra_rdoc_files: []
69
62
  files:
70
- - .gitignore
71
- - .travis.yml
63
+ - ".gitignore"
64
+ - ".travis.yml"
72
65
  - Gemfile
73
66
  - License.txt
74
67
  - README.md
@@ -87,27 +80,26 @@ files:
87
80
  homepage: http://github.com/beatrichartz/configurations
88
81
  licenses:
89
82
  - MIT
83
+ metadata: {}
90
84
  post_install_message:
91
85
  rdoc_options: []
92
86
  require_paths:
93
87
  - lib
94
88
  required_ruby_version: !ruby/object:Gem::Requirement
95
- none: false
96
89
  requirements:
97
- - - ! '>='
90
+ - - ">="
98
91
  - !ruby/object:Gem::Version
99
92
  version: '0'
100
93
  required_rubygems_version: !ruby/object:Gem::Requirement
101
- none: false
102
94
  requirements:
103
- - - ! '>='
95
+ - - ">="
104
96
  - !ruby/object:Gem::Version
105
97
  version: '0'
106
98
  requirements: []
107
99
  rubyforge_project:
108
- rubygems_version: 1.8.23.2
100
+ rubygems_version: 2.2.2
109
101
  signing_key:
110
- specification_version: 3
102
+ specification_version: 4
111
103
  summary: Configurations with a configure block from arbitrary to type-restricted for
112
104
  your gem or other ruby code.
113
105
  test_files: