solidus_bolt 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ac6a8e1e336a25d7883473fdeb62b1cf7afd383e94bf3c4dcdc2c3b0552d444
|
4
|
+
data.tar.gz: b9e86cdc1b948154ee3dc3dd6e24e46e4167608310cca58e50adee0eacf7aa54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46b8c430be3db091703dc445c6a609cd543a9e4b234bfdf7744d7b7450364b2b4bb4bb064b3ce090b4833aaa9b2c82d2cfeb674a556627200f7a07681d862a45
|
7
|
+
data.tar.gz: d509775d709db1695574fa5f735e59a41789088a0509c13876ab20cec66b3dc66ca6ccf4beb00ad861bc43a0a6c18857427b7ea649151fc52dfdc1539eb9eae1
|
@@ -73,8 +73,15 @@ module SolidusBolt
|
|
73
73
|
def add_omniauth_middleware
|
74
74
|
bolt_middleware_initializer = <<~BOLT_PROVIDER
|
75
75
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
76
|
-
|
77
|
-
|
76
|
+
bolt_configuration = SolidusBolt::BoltConfiguration.fetch
|
77
|
+
|
78
|
+
if bolt_configuration&.publishable_key.present? && bolt_configuration&.api_key.present?
|
79
|
+
provider :bolt, publishable_key: bolt_configuration.publishable_key,
|
80
|
+
api_key: bolt_configuration.api_key
|
81
|
+
else
|
82
|
+
Rails.logger.warn 'Bolt configuration missing'
|
83
|
+
end
|
84
|
+
rescue StandardError
|
78
85
|
end
|
79
86
|
BOLT_PROVIDER
|
80
87
|
append_file 'config/initializers/solidus_social.rb', bolt_middleware_initializer
|
data/lib/solidus_bolt/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_bolt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piyushswain
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-09-
|
13
|
+
date: 2022-09-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: coffee-rails
|
@@ -439,7 +439,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
439
439
|
- !ruby/object:Gem::Version
|
440
440
|
version: '0'
|
441
441
|
requirements: []
|
442
|
-
rubygems_version: 3.
|
442
|
+
rubygems_version: 3.3.17
|
443
443
|
signing_key:
|
444
444
|
specification_version: 4
|
445
445
|
summary: Solidus extension for using Bolt Checkout Service.
|