Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
Using args instead of extras and fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmanuelramallo committed Jun 15, 2020
1 parent 4ac0150 commit b70cbb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/rsgem/dependencies/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/rsgem/tasks/create_gem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b70cbb8

Please sign in to comment.