configurations 2.0.0.pre → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -7
  2. data/.travis.yml +4 -2
  3. data/License.txt +1 -1
  4. data/README.md +23 -7
  5. data/Rakefile +1 -1
  6. data/configurations.gemspec +7 -3
  7. data/lib/configurations.rb +8 -4
  8. data/lib/configurations/arbitrary.rb +124 -0
  9. data/lib/configurations/blank_object.rb +60 -0
  10. data/lib/configurations/configurable.rb +153 -42
  11. data/lib/configurations/configuration.rb +96 -213
  12. data/lib/configurations/strict.rb +170 -0
  13. data/test/configurations/arbitrary/test.rb +23 -0
  14. data/test/configurations/arbitrary/test_defaults.rb +5 -0
  15. data/test/configurations/arbitrary/test_hash_methods.rb +11 -0
  16. data/test/configurations/arbitrary/test_methods.rb +5 -0
  17. data/test/configurations/arbitrary/test_not_configured.rb +5 -0
  18. data/test/configurations/arbitrary/test_not_configured_default.rb +5 -0
  19. data/test/configurations/shared/defaults.rb +43 -0
  20. data/test/configurations/shared/hash_methods.rb +40 -0
  21. data/test/configurations/shared/kernel_methods.rb +9 -0
  22. data/test/configurations/shared/methods.rb +31 -0
  23. data/test/configurations/shared/not_configured_callbacks.rb +42 -0
  24. data/test/configurations/shared/not_configured_default_callback.rb +42 -0
  25. data/test/configurations/shared/properties.rb +46 -0
  26. data/test/configurations/shared/properties_outside_block.rb +40 -0
  27. data/test/configurations/shared/strict_hash_methods.rb +43 -0
  28. data/test/configurations/strict/test.rb +20 -0
  29. data/test/configurations/strict/test_defaults.rb +6 -0
  30. data/test/configurations/strict/test_hash_methods.rb +11 -0
  31. data/test/configurations/strict/test_methods.rb +6 -0
  32. data/test/configurations/strict/test_not_configured.rb +6 -0
  33. data/test/configurations/strict/test_not_configured_default.rb +6 -0
  34. data/test/configurations/strict_types/test.rb +18 -0
  35. data/test/configurations/strict_types/test_defaults.rb +6 -0
  36. data/test/configurations/strict_types/test_hash_methods.rb +11 -0
  37. data/test/configurations/strict_types/test_methods.rb +6 -0
  38. data/test/configurations/strict_types/test_not_configured.rb +6 -0
  39. data/test/configurations/strict_types/test_not_configured_default.rb +6 -0
  40. data/test/configurations/strict_types_with_blocks/test.rb +22 -0
  41. data/test/configurations/strict_types_with_blocks/test_defaults.rb +6 -0
  42. data/test/configurations/strict_types_with_blocks/test_hash_methods.rb +14 -0
  43. data/test/configurations/strict_types_with_blocks/test_methods.rb +6 -0
  44. data/test/configurations/strict_types_with_blocks/test_not_configured.rb +6 -0
  45. data/test/configurations/strict_types_with_blocks/test_not_configured_default.rb +6 -0
  46. data/test/configurations/strict_with_blocks/test.rb +16 -0
  47. data/test/configurations/strict_with_blocks/test_defaults.rb +6 -0
  48. data/test/configurations/strict_with_blocks/test_hash_methods.rb +14 -0
  49. data/test/configurations/strict_with_blocks/test_methods.rb +6 -0
  50. data/test/configurations/strict_with_blocks/test_not_configured.rb +6 -0
  51. data/test/configurations/strict_with_blocks/test_not_configured_default.rb +6 -0
  52. data/test/support/setup.rb +173 -0
  53. data/test/support/shared.rb +11 -0
  54. data/test/test_helper.rb +6 -5
  55. metadata +148 -65
  56. data/test/configurations/test_configurable_with_blocks_configuration.rb +0 -54
  57. data/test/configurations/test_configuration.rb +0 -182
  58. data/test/configurations/test_configuration_methods.rb +0 -85
  59. data/test/configurations/test_stricter_configuration.rb +0 -173
  60. data/test/support/testmodules.rb +0 -10
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestMethodsOnStrict < ConfigurationsTest
4
+ setup_with :strict
5
+ shares_tests :methods
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictNotConfigured < ConfigurationsTest
4
+ setup_with :strict
5
+ shares_tests :not_configured_callbacks
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictNotConfiguredDefault < ConfigurationsTest
4
+ shares_tests :not_configured_default_callback
5
+ setup_with :strict
6
+ end
@@ -0,0 +1,18 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictTypes < ConfigurationsTest
4
+ setup_with :strict_types
5
+ shares_tests :properties, :properties_outside_block, :kernel_methods
6
+
7
+ def test_configure_with_wrong_type
8
+ assert_raises Configurations::ConfigurationError do
9
+ @configuration.p1 = :symbol
10
+ end
11
+ end
12
+
13
+ def test_configure_nested_with_wrong_type
14
+ assert_raises Configurations::ConfigurationError do
15
+ @configuration.p3.p5.p6 = 'STRING'
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictTypesWithDefaults < ConfigurationsTest
4
+ setup_with :strict_types
5
+ shares_tests :defaults
6
+ end
@@ -0,0 +1,11 @@
1
+ require 'test_helper'
2
+
3
+ class TestHashMethodsOnStrictTypes < ConfigurationsTest
4
+ setup_with :strict_types
5
+ shares_tests :hash_methods
6
+
7
+ def test_from_h_outside_block
8
+ old_to_h = @configuration.to_h.dup
9
+ assert_equal(old_to_h, @configuration.from_h(old_to_h).to_h)
10
+ end
11
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestMethodsOnStrictTypes < ConfigurationsTest
4
+ setup_with :strict_types
5
+ shares_tests :methods
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictTypesNotConfigured < ConfigurationsTest
4
+ setup_with :strict_types
5
+ shares_tests :not_configured_callbacks
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictTypesNotConfiguredDefault < ConfigurationsTest
4
+ shares_tests :not_configured_default_callback
5
+ setup_with :strict_types
6
+ end
@@ -0,0 +1,22 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictTypesWithBlocks < ConfigurationsTest
4
+ shares_tests :properties, :properties_outside_block, :kernel_methods
5
+ setup_with :strict_types_with_blocks
6
+
7
+ def test_blocks
8
+ @configuration.p2 = -2
9
+ assert_equal 2, @configuration.p2
10
+ end
11
+
12
+ def test_blocks_come_after_typecheck
13
+ assert_raises Configurations::ConfigurationError do
14
+ @configuration.p3.p5.p6 = nil
15
+ end
16
+ end
17
+
18
+ def test_set_nested_property_outside_block
19
+ @configuration.p3.p5.p6 = %w(OUTSIDE BLOCK P3 P5 P6)
20
+ assert_equal %w(P6 P5 P3 BLOCK OUTSIDE), @configuration.p3.p5.p6
21
+ end
22
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictTypesWithBlocksWithDefaults < ConfigurationsTest
4
+ shares_tests :defaults
5
+ setup_with :strict_types_with_blocks
6
+ end
@@ -0,0 +1,14 @@
1
+ require 'test_helper'
2
+
3
+ class TestHashMethodsOnStrictTypesWithBlocks < ConfigurationsTest
4
+ shares_tests :hash_methods, :strict_hash_methods
5
+ setup_with :strict_types_with_blocks do |c|
6
+ c.p1 = 'CONFIGURED P1'
7
+ c.p2 = -2
8
+ c.p3.p4 = 'CONFIGURED P3P4'
9
+ c.p3.p5.p6 = %w(P6 P5 P3)
10
+ c.p3.p5.p7 = { config: 'hash' }
11
+ c.class = :class
12
+ c.puts = Class
13
+ end
14
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestMethodsOnStrictTypesWithBlocks < ConfigurationsTest
4
+ shares_tests :methods
5
+ setup_with :strict_types_with_blocks
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictTypesWithBlocksNotConfigured < ConfigurationsTest
4
+ shares_tests :not_configured_callbacks
5
+ setup_with :strict_types_with_blocks
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictTypesWithBlocksNotConfiguredDefault < ConfigurationsTest
4
+ shares_tests :not_configured_default_callback
5
+ setup_with :strict_types_with_blocks
6
+ end
@@ -0,0 +1,16 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictWithBlocks < ConfigurationsTest
4
+ shares_tests :properties, :properties_outside_block, :kernel_methods
5
+ setup_with :strict_with_blocks
6
+
7
+ def test_blocks
8
+ @configuration.p2 = -2
9
+ assert_equal 2, @configuration.p2
10
+ end
11
+
12
+ def test_set_nested_property_outside_block
13
+ @configuration.p3.p5.p6 = %w(OUTSIDE BLOCK P3 P5 P6)
14
+ assert_equal %w(P6 P5 P3 BLOCK OUTSIDE), @configuration.p3.p5.p6
15
+ end
16
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictWithBlocksWithDefaults < ConfigurationsTest
4
+ shares_tests :defaults
5
+ setup_with :strict_with_blocks
6
+ end
@@ -0,0 +1,14 @@
1
+ require 'test_helper'
2
+
3
+ class TestHashMethodsOnStrictWithBlocks < ConfigurationsTest
4
+ shares_tests :hash_methods, :strict_hash_methods
5
+ setup_with :strict_with_blocks do |c|
6
+ c.p1 = 'CONFIGURED P1'
7
+ c.p2 = -2
8
+ c.p3.p4 = 'CONFIGURED P3P4'
9
+ c.p3.p5.p6 = %w(P6 P5 P3)
10
+ c.p3.p5.p7 = { config: 'hash' }
11
+ c.class = :class
12
+ c.puts = Class
13
+ end
14
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestMethodsOnStrictWithBlocks < ConfigurationsTest
4
+ shares_tests :methods
5
+ setup_with :strict_with_blocks
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictWithBlocksNotConfigured < ConfigurationsTest
4
+ shares_tests :not_configured_callbacks
5
+ setup_with :strict_with_blocks
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class TestStrictWithBlocksNotConfiguredDefault < ConfigurationsTest
4
+ shares_tests :not_configured_default_callback
5
+ setup_with :strict_with_blocks
6
+ end
@@ -0,0 +1,173 @@
1
+ module Test
2
+ module Support
3
+ module Setup
4
+ def self.included(base)
5
+ base.instance_eval do
6
+ def self.inherited(child)
7
+ super
8
+
9
+ child.extend ClassMethods
10
+ child.send :include, InstanceMethods
11
+ child.class_eval <<-CODE
12
+ module TestModule
13
+ include Configurations
14
+ end
15
+ CODE
16
+ end
17
+ end
18
+ end
19
+
20
+ module ClassMethods
21
+ attr_writer :configuration_block
22
+
23
+ class ContextClass
24
+ attr_reader :props
25
+ def initialize(*props)
26
+ @props = props
27
+ end
28
+ end
29
+
30
+ def configuration_block
31
+ @configuration_block ||= lambda do |c|
32
+ c.p1 = 'CONFIGURED P1'
33
+ c.p2 = 2
34
+ c.p3.p4 = 'CONFIGURED P3P4'
35
+ c.p3.p5.p6 = %w(P3 P5 P6)
36
+ c.p3.p5.p7 = { config: 'hash' }
37
+ c.class = :class
38
+ c.module = ->(a) { a }
39
+ c.puts = Class
40
+ end
41
+ end
42
+
43
+ def setup_with(*features, &block)
44
+ mod = const_get(:TestModule)
45
+
46
+ features.each do |feature|
47
+ method = method(feature)
48
+ mod.module_eval{ |m| method.call(m) }
49
+ end
50
+
51
+ @configuration_block = block if block_given?
52
+ end
53
+
54
+ def defaults(base)
55
+ base.configuration_defaults do |c|
56
+ c.p1 = 'P1'
57
+
58
+ c.p3.p4 = 'P3 P4'
59
+ c.p3.p5.p7 = { hash: :hash }
60
+
61
+ c.module = -> { 'M' }
62
+ c.class = :class
63
+ end
64
+ end
65
+
66
+ def strict(base)
67
+ base.configurable :p1, :p2, :class, :module, :puts, p3: [
68
+ :p4, {
69
+ p5: [
70
+ :p6,
71
+ :p7
72
+ ]
73
+ }
74
+ ]
75
+ end
76
+
77
+ def strict_types(base)
78
+ base.class_eval do
79
+ configurable String, :p1
80
+ configurable Fixnum, :p2
81
+ configurable String, p3: :p4
82
+ configurable Array, p3: { p5: :p6 }
83
+ configurable Hash, p3: { p5: :p7 }
84
+ configurable Symbol, :class
85
+ configurable Proc, :module
86
+ configurable Class, :puts
87
+ end
88
+ end
89
+
90
+ def strict_with_blocks(base)
91
+ base.class_eval do
92
+ configurable :p2 do |value|
93
+ value.abs
94
+ end
95
+ configurable p3: :p4 do |value|
96
+ lambda { value }.call
97
+ end
98
+ configurable p3: { p5: :p6 } do |value|
99
+ value.reverse
100
+ end
101
+ configurable :p1, :class, :module, :puts, p3: { p5: :p7 }
102
+ end
103
+ end
104
+
105
+ def strict_types_with_blocks(base)
106
+ base.class_eval do
107
+ configurable String, :p1
108
+ configurable Fixnum, :p2 do |value|
109
+ value.abs
110
+ end
111
+ configurable String, p3: :p4 do |value|
112
+ lambda { value }.call
113
+ end
114
+ configurable Array, p3: { p5: :p6 } do |value|
115
+ value.reverse
116
+ end
117
+ configurable Hash, p3: { p5: :p7 }
118
+ configurable Symbol, :class
119
+ configurable Proc, :module
120
+ configurable Class, :puts
121
+ end
122
+ end
123
+
124
+ def methods(base)
125
+ base.class_eval do
126
+ configuration_method :method1 do
127
+ ContextClass.new(p1, p2)
128
+ end
129
+
130
+ context = 'CONTEXT'
131
+ configuration_method :method2 do
132
+ context + p1.to_s
133
+ end
134
+ configuration_method :method3 do |arg|
135
+ arg + p1.to_s
136
+ end
137
+ configuration_method :kernel_raise do
138
+ fail NotImplementedError, 'KERNEL RAISE'
139
+ end
140
+ configuration_method p3: { p5: :combination } do
141
+ { a: :b }.merge(p7)
142
+ end
143
+ end
144
+ end
145
+
146
+ def not_configured_callbacks(base)
147
+ base.class_eval do
148
+ not_configured :p1, :p2, :puts do |_prop|
149
+ fail NotImplementedError
150
+ end
151
+
152
+ not_configured p3: { p5: [:p6, :p7] } do |_prop|
153
+ fail NotImplementedError
154
+ end
155
+ end
156
+ end
157
+
158
+ def not_configured_default_callback(base)
159
+ base.not_configured do |_prop|
160
+ fail ArgumentError
161
+ end
162
+ end
163
+ end
164
+
165
+ module InstanceMethods
166
+ def setup
167
+ @module = self.class.const_get(:TestModule)
168
+ @configuration = @module.configure(&self.class.configuration_block)
169
+ end
170
+ end
171
+ end
172
+ end
173
+ end
@@ -0,0 +1,11 @@
1
+ module Test
2
+ module Support
3
+ module Shared
4
+ def shares_tests(*tests)
5
+ tests.each do |test|
6
+ include Tests::Shared.const_get(test.to_s.split('_').map(&:capitalize).join)
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,4 +1,4 @@
1
- require "codeclimate-test-reporter"
1
+ require 'codeclimate-test-reporter'
2
2
  CodeClimate::TestReporter.start
3
3
 
4
4
  require 'pathname'
@@ -7,15 +7,16 @@ require 'minitest'
7
7
  PATH = Pathname.new(File.dirname(__FILE__))
8
8
 
9
9
  $LOAD_PATH.unshift PATH, File.expand_path('../../lib', __FILE__)
10
+ require 'configurations'
10
11
 
11
12
  Dir[PATH.join('support', '**', '*.rb')].each(&method(:require))
13
+ Dir[PATH.join('configurations', 'shared', '*.rb')].each(&method(:require))
12
14
 
13
- Minitest::Test.class_eval do
14
- extend TestModules
15
+ class ConfigurationsTest < Minitest::Test
16
+ include Test::Support::Setup
17
+ extend Test::Support::Shared
15
18
  end
16
19
 
17
20
  require 'minitest/autorun'
18
21
  require 'minitest/pride'
19
22
  require 'test/unit/assertions'
20
-
21
- require 'configurations'
metadata CHANGED
@@ -1,104 +1,187 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: configurations
3
- version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Beat Richartz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2014-11-02 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+ date: 2015-01-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
15
14
  name: minitest
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: "5.4"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.4'
22
20
  type: :development
23
- version_requirements: *id001
24
- - !ruby/object:Gem::Dependency
25
- name: yard
26
21
  prerelease: false
27
- requirement: &id002 !ruby/object:Gem::Requirement
28
- requirements:
29
- - - ~>
30
- - !ruby/object:Gem::Version
31
- version: "0.8"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: yard
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.8'
32
34
  type: :development
33
- version_requirements: *id002
34
- - !ruby/object:Gem::Dependency
35
- name: rake
36
35
  prerelease: false
37
- requirement: &id003 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ~>
40
- - !ruby/object:Gem::Version
41
- version: "10"
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10'
42
48
  type: :development
43
- version_requirements: *id003
44
- description: Configurations provides a unified approach to do configurations with the flexibility to do everything from arbitrary configurations to type asserted configurations for your gem or any other ruby code.
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10'
55
+ description: |
56
+ Configurations provides a unified approach to do configurations with the flexibility to do everything
57
+ from arbitrary configurations to type asserted configurations for your gem or any other ruby code.
45
58
  email: attr_accessor@gmail.com
46
59
  executables: []
47
-
48
60
  extensions: []
49
-
50
61
  extra_rdoc_files: []
51
-
52
- files:
53
- - .gitignore
54
- - .travis.yml
62
+ files:
63
+ - ".gitignore"
64
+ - ".travis.yml"
55
65
  - Gemfile
56
66
  - License.txt
57
67
  - README.md
58
68
  - Rakefile
59
69
  - configurations.gemspec
60
70
  - lib/configurations.rb
71
+ - lib/configurations/arbitrary.rb
72
+ - lib/configurations/blank_object.rb
61
73
  - lib/configurations/configurable.rb
62
74
  - lib/configurations/configuration.rb
63
75
  - lib/configurations/error.rb
64
- - test/configurations/test_configurable_with_blocks_configuration.rb
65
- - test/configurations/test_configuration.rb
66
- - test/configurations/test_configuration_methods.rb
67
- - test/configurations/test_stricter_configuration.rb
68
- - test/support/testmodules.rb
76
+ - lib/configurations/strict.rb
77
+ - test/configurations/arbitrary/test.rb
78
+ - test/configurations/arbitrary/test_defaults.rb
79
+ - test/configurations/arbitrary/test_hash_methods.rb
80
+ - test/configurations/arbitrary/test_methods.rb
81
+ - test/configurations/arbitrary/test_not_configured.rb
82
+ - test/configurations/arbitrary/test_not_configured_default.rb
83
+ - test/configurations/shared/defaults.rb
84
+ - test/configurations/shared/hash_methods.rb
85
+ - test/configurations/shared/kernel_methods.rb
86
+ - test/configurations/shared/methods.rb
87
+ - test/configurations/shared/not_configured_callbacks.rb
88
+ - test/configurations/shared/not_configured_default_callback.rb
89
+ - test/configurations/shared/properties.rb
90
+ - test/configurations/shared/properties_outside_block.rb
91
+ - test/configurations/shared/strict_hash_methods.rb
92
+ - test/configurations/strict/test.rb
93
+ - test/configurations/strict/test_defaults.rb
94
+ - test/configurations/strict/test_hash_methods.rb
95
+ - test/configurations/strict/test_methods.rb
96
+ - test/configurations/strict/test_not_configured.rb
97
+ - test/configurations/strict/test_not_configured_default.rb
98
+ - test/configurations/strict_types/test.rb
99
+ - test/configurations/strict_types/test_defaults.rb
100
+ - test/configurations/strict_types/test_hash_methods.rb
101
+ - test/configurations/strict_types/test_methods.rb
102
+ - test/configurations/strict_types/test_not_configured.rb
103
+ - test/configurations/strict_types/test_not_configured_default.rb
104
+ - test/configurations/strict_types_with_blocks/test.rb
105
+ - test/configurations/strict_types_with_blocks/test_defaults.rb
106
+ - test/configurations/strict_types_with_blocks/test_hash_methods.rb
107
+ - test/configurations/strict_types_with_blocks/test_methods.rb
108
+ - test/configurations/strict_types_with_blocks/test_not_configured.rb
109
+ - test/configurations/strict_types_with_blocks/test_not_configured_default.rb
110
+ - test/configurations/strict_with_blocks/test.rb
111
+ - test/configurations/strict_with_blocks/test_defaults.rb
112
+ - test/configurations/strict_with_blocks/test_hash_methods.rb
113
+ - test/configurations/strict_with_blocks/test_methods.rb
114
+ - test/configurations/strict_with_blocks/test_not_configured.rb
115
+ - test/configurations/strict_with_blocks/test_not_configured_default.rb
116
+ - test/support/setup.rb
117
+ - test/support/shared.rb
69
118
  - test/test_helper.rb
70
119
  homepage: http://github.com/beatrichartz/configurations
71
- licenses:
120
+ licenses:
72
121
  - MIT
73
122
  metadata: {}
74
-
75
123
  post_install_message:
76
124
  rdoc_options: []
77
-
78
- require_paths:
125
+ require_paths:
79
126
  - lib
80
- required_ruby_version: !ruby/object:Gem::Requirement
81
- requirements:
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
82
134
  - - ">="
83
- - !ruby/object:Gem::Version
84
- version: "0"
85
- required_rubygems_version: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">"
88
- - !ruby/object:Gem::Version
89
- version: 1.3.1
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
90
137
  requirements: []
91
-
92
138
  rubyforge_project:
93
- rubygems_version: 2.2.2
139
+ rubygems_version: 2.4.5
94
140
  signing_key:
95
141
  specification_version: 4
96
- summary: Configurations with a configure block from arbitrary to type-restricted for your gem or other ruby code.
97
- test_files:
98
- - test/configurations/test_configurable_with_blocks_configuration.rb
99
- - test/configurations/test_configuration.rb
100
- - test/configurations/test_configuration_methods.rb
101
- - test/configurations/test_stricter_configuration.rb
102
- - test/support/testmodules.rb
142
+ summary: Configurations with a configure block from arbitrary to type-restricted for
143
+ your gem or other ruby code.
144
+ test_files:
145
+ - test/configurations/arbitrary/test.rb
146
+ - test/configurations/arbitrary/test_defaults.rb
147
+ - test/configurations/arbitrary/test_hash_methods.rb
148
+ - test/configurations/arbitrary/test_methods.rb
149
+ - test/configurations/arbitrary/test_not_configured.rb
150
+ - test/configurations/arbitrary/test_not_configured_default.rb
151
+ - test/configurations/shared/defaults.rb
152
+ - test/configurations/shared/hash_methods.rb
153
+ - test/configurations/shared/kernel_methods.rb
154
+ - test/configurations/shared/methods.rb
155
+ - test/configurations/shared/not_configured_callbacks.rb
156
+ - test/configurations/shared/not_configured_default_callback.rb
157
+ - test/configurations/shared/properties.rb
158
+ - test/configurations/shared/properties_outside_block.rb
159
+ - test/configurations/shared/strict_hash_methods.rb
160
+ - test/configurations/strict/test.rb
161
+ - test/configurations/strict/test_defaults.rb
162
+ - test/configurations/strict/test_hash_methods.rb
163
+ - test/configurations/strict/test_methods.rb
164
+ - test/configurations/strict/test_not_configured.rb
165
+ - test/configurations/strict/test_not_configured_default.rb
166
+ - test/configurations/strict_types/test.rb
167
+ - test/configurations/strict_types/test_defaults.rb
168
+ - test/configurations/strict_types/test_hash_methods.rb
169
+ - test/configurations/strict_types/test_methods.rb
170
+ - test/configurations/strict_types/test_not_configured.rb
171
+ - test/configurations/strict_types/test_not_configured_default.rb
172
+ - test/configurations/strict_types_with_blocks/test.rb
173
+ - test/configurations/strict_types_with_blocks/test_defaults.rb
174
+ - test/configurations/strict_types_with_blocks/test_hash_methods.rb
175
+ - test/configurations/strict_types_with_blocks/test_methods.rb
176
+ - test/configurations/strict_types_with_blocks/test_not_configured.rb
177
+ - test/configurations/strict_types_with_blocks/test_not_configured_default.rb
178
+ - test/configurations/strict_with_blocks/test.rb
179
+ - test/configurations/strict_with_blocks/test_defaults.rb
180
+ - test/configurations/strict_with_blocks/test_hash_methods.rb
181
+ - test/configurations/strict_with_blocks/test_methods.rb
182
+ - test/configurations/strict_with_blocks/test_not_configured.rb
183
+ - test/configurations/strict_with_blocks/test_not_configured_default.rb
184
+ - test/support/setup.rb
185
+ - test/support/shared.rb
103
186
  - test/test_helper.rb
104
187
  has_rdoc: