Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix issue with Solargraph.

Matthew Kennedy35f4f817b921
diff --git a/.solargraph.yml b/.solargraph.yml
index 0aa781c4c2..fa2d038b07 100644
--- a/.solargraph.yml
+++ b/.solargraph.yml
@@ -8,6 +8,7 @@ exclude:
- vendor/**/*
- ".bundle/**/*"
- sample/**/*
+- cmd/lib/spree_cmd/templates/extension
- guides/**/*
- sandbox/**/*
- pkg/**/*
diff --git a/backend/app/helpers/spree/admin/base_helper.rb b/backend/app/helpers/spree/admin/base_helper.rb
index f0874a392b..35c2082afd 100644
--- a/backend/app/helpers/spree/admin/base_helper.rb
+++ b/backend/app/helpers/spree/admin/base_helper.rb
@@ -33,7 +33,7 @@ module Spree
def spree_humanize_dropdown_values(object, options = {})
formatted_options = []
- const = options[:const] ||= nil
+ const = options[:const] || nil
attribute_name = options[:attr] || nil
if object.is_a? String
diff --git a/cmd/lib/spree_cmd/templates/extension/extension.gemspec b/cmd/lib/spree_cmd/templates/extension/extension.gemspec
index a9d776446b..a9b66757c5 100644
--- a/cmd/lib/spree_cmd/templates/extension/extension.gemspec
+++ b/cmd/lib/spree_cmd/templates/extension/extension.gemspec
@@ -2,12 +2,12 @@
lib = File.expand_path('../lib/', __FILE__)
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
-require '<%=file_name%>/version'
+require '<%= file_name %>/version'
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = '<%= file_name %>'
- s.version = <%= class_name %>.version
+ s.version = '<%= class_name %>.version'
s.summary = 'Add extension summary here'
s.description = 'Add (optional) extension description here'
s.required_ruby_version = '>= 2.5'