Skip to content

Commit

Permalink
Temp: Use unreleased solidus_support with Flickwerk support
Browse files Browse the repository at this point in the history
  • Loading branch information
mamhoff committed Jan 14, 2025
1 parent cc9958e commit b3500d1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ end
# resolve gems based on the required ruby version.
gem 'async', '< 3' if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3')

# Temporarily use the `solidus_support` gem with Flickwerk support
gem "solidus_support", github: "mamhoff/solidus_support", branch: "re-enable-flickwerk"

gemspec

# Use a local Gemfile to include development dependencies that might not be
Expand Down
1 change: 0 additions & 1 deletion lib/solidus_braintree.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require 'flickwerk'
require 'solidus_core'
require 'solidus_support'
require 'braintree'
Expand Down
14 changes: 0 additions & 14 deletions lib/solidus_braintree/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,6 @@
module SolidusBraintree
class Engine < Rails::Engine
include SolidusSupport::EngineExtensions
include Flickwerk

include Flickwerk

Flickwerk.aliases["Spree.user_class"] = Spree.user_class_name

if SolidusSupport.backend_available?
config.autoload_paths += root.join("lib", "patches", "backend").glob("*")
end

initializer "solidus_braintree_backend_patches", before: "flickwerk.add_patch_paths" do
patch_path = root.join("lib", "patches", "backend")
Flickwerk.patch_paths += [patch_path]
end

isolate_namespace SolidusBraintree
engine_name 'solidus_braintree'
Expand Down
1 change: 0 additions & 1 deletion solidus_braintree.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Gem::Specification.new do |spec|

spec.add_dependency 'activemerchant', '~> 1.48'
spec.add_dependency 'braintree', '~> 4.2'
spec.add_dependency 'flickwerk', '~> 0.3.1'
spec.add_dependency 'solidus_api', ['>= 3.4.0.dev', '< 5']
spec.add_dependency 'solidus_backend', ['>= 3.4.0.dev', '< 5']
spec.add_dependency 'solidus_core', ['>= 3.4.0.dev', '< 5']
Expand Down

0 comments on commit b3500d1

Please sign in to comment.