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: 89aae31a58ea5e33c4ec759f8f3ccca8c9cde9c397986074ca0d980b701b6281
4
- data.tar.gz: 1f02b9e4d932af604eabb21bc3fe5af3cb2e7e9c6991d431a6715ced090890e1
3
+ metadata.gz: 5ac6a8e1e336a25d7883473fdeb62b1cf7afd383e94bf3c4dcdc2c3b0552d444
4
+ data.tar.gz: b9e86cdc1b948154ee3dc3dd6e24e46e4167608310cca58e50adee0eacf7aa54
5
5
  SHA512:
6
- metadata.gz: 6ca7162deec70cf4296d2a14ff3bc234c7ddb8a97619cb9a26e33092cc21621283bf36a0d866f000ba6ed2358afbfee9c728cc8255aed272184c66d1d9f853e1
7
- data.tar.gz: d216520effb6569e31f6685e7472047523453ff68e0b15bed56b5a22a64aa712f5e888ff791a25c75a04de73b656d3a640f54e3850238534ec902c7bbbdf2261
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
- provider :bolt, publishable_key: SolidusBolt::BoltConfiguration.fetch.publishable_key,
77
- api_key: SolidusBolt::BoltConfiguration.fetch.api_key
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBolt
4
- VERSION = '0.7.1'
4
+ VERSION = '0.7.2'
5
5
  end
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.1
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-01 00:00:00.000000000 Z
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.1.6
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.