File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 5
5
- 2.4.5
6
6
- 2.5.3
7
7
- 2.6.0
8
+ - 2.7.0
8
9
- truffleruby
9
10
gemfile :
10
11
- gemfiles/rails_4.2.gemfile
@@ -14,7 +15,10 @@ gemfile:
14
15
- gemfiles/sinatra.gemfile
15
16
matrix :
16
17
exclude :
17
- # truffleruby does not seem to work with Rails
18
+ # Bundler 2.x coming with Ruby 2.7 does not work well with rails 4.2
19
+ - rvm : 2.7.0
20
+ gemfile : gemfiles/rails_4.2.gemfile
21
+ # TruffleRuby does not seem to work with Rails
18
22
- rvm : truffleruby
19
23
gemfile : gemfiles/rails_4.2.gemfile
20
24
- rvm : truffleruby
Original file line number Diff line number Diff line change 7
7
* Get rid of unused Rails Engine class definition ([ #247 ] ( https://github.com/railsconfig/config/pull/247 ) )
8
8
* Require dry-validation only when schema is specified ([ #253 ] ( https://github.com/railsconfig/config/pull/253 ) )
9
9
10
+ ### Bug fixes
11
+
12
+ * Fix missing new_ostruct_member in Ruby 2.7 ([ #255 ] ( https://github.com/railsconfig/config/pull/255 ) )
13
+
10
14
### Changes
11
15
12
16
* Use sprockets 3.x when running unit tests for Rails 4.2 ([ #256 ] ( https://github.com/railsconfig/config/pull/256 ) )
Original file line number Diff line number Diff line change @@ -201,15 +201,14 @@ def __convert(h) #:nodoc:
201
201
202
202
h . each do |k , v |
203
203
k = k . to_s if !k . respond_to? ( :to_sym ) && k . respond_to? ( :to_s )
204
- s . new_ostruct_member ( k )
205
204
206
205
if v . is_a? ( Hash )
207
206
v = v [ "type" ] == "hash" ? v [ "contents" ] : __convert ( v )
208
207
elsif v . is_a? ( Array )
209
208
v = v . collect { |e | e . instance_of? ( Hash ) ? __convert ( e ) : e }
210
209
end
211
210
212
- s . send ( " #{ k } =" . to_sym , v )
211
+ s [ k ] = v
213
212
end
214
213
s
215
214
end
You can’t perform that action at this time.
0 commit comments