File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
lib/dry/initializer/plugins Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 88rvm :
99 - ' 2.2'
1010 - ' 2.3.0'
11+ - ' 2.4.0'
1112 # - rbx-2
1213 - ruby-head
1314 - jruby-9.1.0.0
Original file line number Diff line number Diff line change 55
66group :benchmarks do
77 gem "benchmark-ips" , "~> 2.5"
8- gem "activesupport" , "< 5"
8+
9+ if RUBY_VERSION < "2.4"
10+ gem "activesupport" , "< 5"
11+ else
12+ gem "activesupport"
13+ end
14+
915 gem "active_attr"
1016 gem "anima"
1117 gem "attr_extras"
Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ def call
1111 ivar = :"@#{ rename } "
1212 lambda do |*|
1313 value = instance_variable_get ( ivar )
14- return if value == Dry ::Initializer ::UNDEFINED
15- instance_variable_set ivar , type . call ( value )
14+
15+ if value != Dry ::Initializer ::UNDEFINED
16+ instance_variable_set ivar , type . call ( value )
17+ end
1618 end
1719 end
1820 end
You can’t perform that action at this time.
0 commit comments