Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Update new extensions template #25

Merged
merged 5 commits into from
Oct 3, 2018
Merged

Conversation

kennyadsl
Copy link
Member

This PR is related to solidusio/solidus#2835 but it also updates the new extensions template to reflect what we are actually doing for the majority of Solidus extensions.

This could be needed to setup CI correctly and implement other
logic based on the Solidus version
@kennyadsl kennyadsl self-assigned this Oct 3, 2018
Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Unable to find gem relaxed-rubocop; is the gem installed? Gem::MissingSpecError
Unable to find gem relaxed-rubocop; is the gem installed? Gem::MissingSpecError
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:189:in `rescue in gem_config_path'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:185:in `gem_config_path'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:47:in `block (2 levels) in resolve_inheritance_from_gems'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:45:in `each'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:45:in `block in resolve_inheritance_from_gems'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:38:in `each_pair'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:38:in `resolve_inheritance_from_gems'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader.rb:48:in `load_file'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader.rb:83:in `configuration_from_file'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_store.rb:44:in `for'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/cli.rb:181:in `apply_default_formatter'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/cli.rb:40:in `run'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/bin/rubocop:13:in `block in '
/home/.asdf/installs/ruby/2.5.1/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/bin/rubocop:12:in `'
/home/.asdf/installs/ruby/2.5.1/bin/rubocop:23:in `load'
/home/.asdf/installs/ruby/2.5.1/bin/rubocop:23:in `'

Copy link
Contributor

@jacobherrington jacobherrington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks.

@@ -5,4 +5,20 @@ bundler_args: --quiet
script:
- bundle exec rake
rvm:
- 2.1.5
- 2.5.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small typo. But this is 👍

This is needed to avoid incompatibilities between this extension and
old versions of solidus (< 2.5). This can be reverted when Solidus 2.4
reaches EOL. See solidusio/solidus#2835
This allows to install only the version of the database needed.
Also, removes sqlite3, since postgres will be the default instead.

Please remember that this is just a template (what we do more frequently)
but it can be changed anytime by the extension developer.
Maybe we should find a way to make this dynamic?
@kennyadsl kennyadsl force-pushed the update-extension-template branch from 21bc49d to 9bc3481 Compare October 3, 2018 14:28
Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Unable to find gem relaxed-rubocop; is the gem installed? Gem::MissingSpecError
Unable to find gem relaxed-rubocop; is the gem installed? Gem::MissingSpecError
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:189:in `rescue in gem_config_path'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:185:in `gem_config_path'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:47:in `block (2 levels) in resolve_inheritance_from_gems'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:45:in `each'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:45:in `block in resolve_inheritance_from_gems'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:38:in `each_pair'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader_resolver.rb:38:in `resolve_inheritance_from_gems'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader.rb:48:in `load_file'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_loader.rb:83:in `configuration_from_file'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/config_store.rb:44:in `for'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/cli.rb:181:in `apply_default_formatter'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/lib/rubocop/cli.rb:40:in `run'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/bin/rubocop:13:in `block in '
/home/.asdf/installs/ruby/2.5.1/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
/home/.asdf/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/rubocop-0.54.0/bin/rubocop:12:in `'
/home/.asdf/installs/ruby/2.5.1/bin/rubocop:23:in `load'
/home/.asdf/installs/ruby/2.5.1/bin/rubocop:23:in `'

@kennyadsl kennyadsl merged commit 7f07d16 into master Oct 3, 2018
@kennyadsl kennyadsl deleted the update-extension-template branch October 3, 2018 14:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants