solidus_paypal_commerce_platform 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/README.md +1 -1
- data/app/models/solidus_paypal_commerce_platform/gateway.rb +1 -1
- data/lib/generators/solidus_paypal_commerce_platform/install/install_generator.rb +7 -1
- data/lib/solidus_paypal_commerce_platform/engine.rb +4 -0
- data/lib/solidus_paypal_commerce_platform/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfb7ee341074d3d81cfc59a715ef14aeb98cae039965ee08fcdd398bc09a223b
|
4
|
+
data.tar.gz: '0491f84853194b9b601a19b22242604bb5c92c2b692e5f85ee61b704c4623fad'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 945f8991754ec669587007c1cd0349d012fa27e0c7ac30e87d3a239555c1f70b6a701df67b099d182f9a5fd291c8520df2fe61bc4d987f99d023d0f70ab7a092
|
7
|
+
data.tar.gz: cbff4cf00b1dfa87c052cb6e6e30b77af87e27cab7866fccb515ca37e33f7034bba609182516c83f50eb28645b779a6609aa0b3e411229401f8a706d30875316
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Solidus Paypal Commerce Platform
|
2
2
|
|
3
3
|
[](https://circleci.com/gh/solidusio/solidus_paypal_commerce_platform)
|
4
|
-
[](https://codecov.io/gh/solidusio-contrib/solidus_paypal_commerce_platform)
|
5
5
|
|
6
6
|
The official PayPal integration of Solidus.
|
7
7
|
|
@@ -6,7 +6,7 @@ module SolidusPaypalCommercePlatform
|
|
6
6
|
include PayPalCheckoutSdk::Payments
|
7
7
|
|
8
8
|
def initialize(options)
|
9
|
-
# Cannot use kwargs because of how the Gateway is
|
9
|
+
# Cannot use kwargs because of how the Gateway is initialized by Solidus.
|
10
10
|
@client = Client.new(
|
11
11
|
test_mode: options.fetch(:test_mode, nil),
|
12
12
|
client_id: options.fetch(:client_id),
|
@@ -25,7 +25,7 @@ module SolidusPaypalCommercePlatform
|
|
25
25
|
directory 'config/initializers', 'config/initializers'
|
26
26
|
rake 'railties:install:migrations FROM=solidus_paypal_commerce_platform'
|
27
27
|
run 'bin/rails db:migrate' if options[:migrate]
|
28
|
-
route "mount SolidusPaypalCommercePlatform::Engine, at: '
|
28
|
+
route "mount SolidusPaypalCommercePlatform::Engine, at: '#{solidus_mount_point}solidus_paypal_commerce_platform'"
|
29
29
|
end
|
30
30
|
|
31
31
|
def install_solidus_backend_support
|
@@ -91,6 +91,12 @@ module SolidusPaypalCommercePlatform
|
|
91
91
|
|
92
92
|
private
|
93
93
|
|
94
|
+
def solidus_mount_point
|
95
|
+
mount_point = ::Spree::Core::Engine.routes.find_script_name({})
|
96
|
+
mount_point += "/" unless mount_point.end_with?("/")
|
97
|
+
mount_point
|
98
|
+
end
|
99
|
+
|
94
100
|
def support_code_for(component_name, &block)
|
95
101
|
if @components[component_name]
|
96
102
|
say_status :install, "[#{engine.engine_name}] solidus_#{component_name}", :blue
|
@@ -14,6 +14,10 @@ module SolidusPaypalCommercePlatform
|
|
14
14
|
|
15
15
|
engine_name 'solidus_paypal_commerce_platform'
|
16
16
|
|
17
|
+
initializer "solidus_paypal_commerce_platform.zeitwerk_ignore_deface_overrides", before: :eager_load! do |app|
|
18
|
+
app.autoloaders.main.ignore(root.join('app/overrides'))
|
19
|
+
end
|
20
|
+
|
17
21
|
initializer "solidus_paypal_commerce_platform.add_payment_method", after: "spree.register.payment_methods" do |app|
|
18
22
|
app.config.to_prepare do
|
19
23
|
app.config.spree.payment_methods << SolidusPaypalCommercePlatform::PaymentMethod
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_paypal_commerce_platform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Denny
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-12-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: deface
|
@@ -280,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
280
280
|
- !ruby/object:Gem::Version
|
281
281
|
version: '0'
|
282
282
|
requirements: []
|
283
|
-
rubygems_version: 3.
|
283
|
+
rubygems_version: 3.4.10
|
284
284
|
signing_key:
|
285
285
|
specification_version: 4
|
286
286
|
summary: Integrate Solidus with Paypal Commerce Platform
|