diff --git a/lib/.envied.rb.swp b/lib/.envied.rb.swp new file mode 100644 index 0000000..da942a4 Binary files /dev/null and b/lib/.envied.rb.swp differ diff --git a/lib/envied.rb b/lib/envied.rb index e557b45..ba274d5 100644 --- a/lib/envied.rb +++ b/lib/envied.rb @@ -15,13 +15,13 @@ class << self def self.require(*args, **options) requested_groups = (args && !args.empty?) ? args : ENV['ENVIED_GROUPS'] - env!(requested_groups, options) - error_on_duplicate_variables!(options) - error_on_missing_variables!(options) - error_on_uncoercible_variables!(options) + env!(requested_groups, **options) + error_on_duplicate_variables!(**options) + error_on_missing_variables!(**options) + error_on_uncoercible_variables!(**options) intercept_env_vars! - ensure_spring_after_fork_require(args, options) + ensure_spring_after_fork_require(args, **options) end def self.env!(requested_groups, **options) diff --git a/lib/envied/configuration.rb b/lib/envied/configuration.rb index 64b643c..437939b 100644 --- a/lib/envied/configuration.rb +++ b/lib/envied/configuration.rb @@ -32,7 +32,7 @@ def variable(name, type = :string, **options) raise ArgumentError, "#{type.inspect} is not a supported type. Should be one of #{coercer.supported_types}" end options[:group] = current_group if current_group - variables << ENVied::Variable.new(name, type, options) + variables << ENVied::Variable.new(name, type, **options) end def group(*names, &block) diff --git a/spec/configuration_spec.rb b/spec/configuration_spec.rb index 04be813..828b75c 100644 --- a/spec/configuration_spec.rb +++ b/spec/configuration_spec.rb @@ -3,7 +3,7 @@ it { is_expected.to respond_to :group } def with_envfile(**options, &block) - @config = ENVied::Configuration.new(options, &block) + @config = ENVied::Configuration.new(**options, &block) end attr_reader :config diff --git a/spec/envied_spec.rb b/spec/envied_spec.rb index 9108120..15e801d 100644 --- a/spec/envied_spec.rb +++ b/spec/envied_spec.rb @@ -22,7 +22,7 @@ def set_ENV(env = {}) end def configure(**options, &block) - @config = ENVied::Configuration.new(options, &block) + @config = ENVied::Configuration.new(**options, &block) end def configured_with(**hash)