Skip to content

Commit efc27e1

Browse files
committed
Fix keyword argument calls
1 parent 3ba8c74 commit efc27e1

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/schema_dev/config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Config
1313
def self._reset ; @@config = nil end # for use by rspec
1414

1515
def self.read
16-
new((YAML.load Pathname.new(CONFIG_FILE).read).symbolize_keys)
16+
new(**(YAML.load Pathname.new(CONFIG_FILE).read).symbolize_keys)
1717
end
1818

1919
def self.load
@@ -25,7 +25,7 @@ def initialize(ruby:, activerecord:, db:, dbversions: nil, exclude: nil, notify:
2525
@activerecord = Array.wrap(activerecord)
2626
@db = Array.wrap(db)
2727
@dbversions = (dbversions || {}).symbolize_keys
28-
@exclude = Array.wrap(exclude).map(&:symbolize_keys).map {|tuple| Tuple.new(tuple)}
28+
@exclude = Array.wrap(exclude).map(&:symbolize_keys).map {|tuple| Tuple.new(**tuple)}
2929
@notify = Array.wrap(notify)
3030
@quick = Array.wrap(quick || {ruby: @ruby.last, activerecord: @activerecord.last, db: @db.last})
3131
end

lib/schema_dev/travis.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def build(config)
6969
else
7070
# we need to include against the various gemfiles so we only use PG for PG tests (and not other DBs)
7171
config.matrix(db: 'postgresql').map { |entry|
72-
gemfile = GemfileSelector.gemfile(entry.slice(:activerecord, :db)).to_s
72+
gemfile = GemfileSelector.gemfile(**entry.slice(:activerecord, :db)).to_s
7373
skip_gemfiles << gemfile
7474
include.concat versions.map {|version|
7575
{
@@ -86,7 +86,7 @@ def build(config)
8686
services << 'mysql'
8787
else
8888
config.matrix(db: 'mysql2').map do |entry|
89-
gemfile = GemfileSelector.gemfile(entry.slice(:activerecord, :db)).to_s
89+
gemfile = GemfileSelector.gemfile(**entry.slice(:activerecord, :db)).to_s
9090
skip_gemfiles << gemfile
9191
include << {
9292
"gemfile" => gemfile,
@@ -99,12 +99,12 @@ def build(config)
9999
end
100100
env = env.join(' ')
101101

102-
gemfiles = config.matrix.map{|entry| GemfileSelector.gemfile(entry.slice(:activerecord, :db)).to_s}.uniq
102+
gemfiles = config.matrix.map{|entry| GemfileSelector.gemfile(**entry.slice(:activerecord, :db)).to_s}.uniq
103103
gemfiles.reject! { |gemfile| skip_gemfiles.include?(gemfile) }
104104

105105
exclude = config.matrix(excluded: :only).map { |entry| {}.tap {|ex|
106106
ex["rvm"] = entry[:ruby]
107-
ex["gemfile"] = GemfileSelector.gemfile(entry.slice(:activerecord, :db)).to_s
107+
ex["gemfile"] = GemfileSelector.gemfile(**entry.slice(:activerecord, :db)).to_s
108108
}}.reject{|ex| not gemfiles.include? ex["gemfile"]}
109109

110110
{}.tap { |travis|

0 commit comments

Comments
 (0)