diff --git a/lib/rsgem/dependencies/base.rb b/lib/rsgem/dependencies/base.rb index 3b016b1..e46994c 100644 --- a/lib/rsgem/dependencies/base.rb +++ b/lib/rsgem/dependencies/base.rb @@ -6,13 +6,13 @@ class Base attr_reader :config_file_destination, :config_file_source, :mode, :name, :post_install_task, :version - def initialize(name:, **extras) - @config_file_source = extras[:config_file_source] - @config_file_destination = extras[:config_file_destination] - @mode = extras[:mode] || 'development' # Either `development' or `runtime' + def initialize(name:, **args) + @config_file_source = args[:config_file_source] + @config_file_destination = args[:config_file_destination] + @mode = args[:mode] || 'development' # Either `development' or `runtime' @name = name - @post_install_task = extras[:post_install_task] - version = extras[:version] + @post_install_task = args[:post_install_task] + version = args[:version] @version = version ? "'#{version}'" : nil end diff --git a/lib/rsgem/tasks/create_gem.rb b/lib/rsgem/tasks/create_gem.rb index 5b3cc96..dd567ee 100644 --- a/lib/rsgem/tasks/create_gem.rb +++ b/lib/rsgem/tasks/create_gem.rb @@ -28,7 +28,7 @@ def message def shell_command [ - "bundle gem #{context.gem_name}", + "bundle gem #{context.gem_name} --test=rspec --coc --mit", bundler_options ].compact.join(' ') end