solidus_user_roles 2.0.0 → 2.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fd3c45b5071e9d4865c51b4ef3696b674b75f95e837754361f563f4c571a90f
4
- data.tar.gz: a8cfbdb44bb6491547f58b6e5fc13cae4ff210236ffc4b744a26a7e6cc77304c
3
+ metadata.gz: df668641bfec89a6c5e0ec3e44bb88332580af557bdeab169a3f24d6e7df038d
4
+ data.tar.gz: dee72a2d956197c99a91631238891bed25931d31fc1aa28d2c815b20d18f14c5
5
5
  SHA512:
6
- metadata.gz: 998aa0a09c26b99619c4cf5a25fab0dcce2028bc0059491ab9032ad70c8847fc774edfc60521de3ef6894ef147e89c3a8325ff2853797ffa99c13604e2552f6d
7
- data.tar.gz: aa1a0db693a3617eebfad61c99f0215a55662f119beb75e1fcdc0f90b82aa0017fbbdd2b6ef45362fa6c94ab0f590eedd0fe61493a405e6caff5ed3a461c52ad
6
+ metadata.gz: e9a0b72c3b3d4047af111985f5545e8ea2ab676a00817ec1e0930d825644b6b33e445b7055f07bbf5bc7616b791559504cbaa789935f52d5a90533dfae05e087
7
+ data.tar.gz: caac02e821f332842b872c519c084032e4cd0df3f31d5c9c9a04a87fc69271ae8bb6e7b6f58e81f4835fb251a0db5012ca85503e6b1a4b9e31332b533b2b299a
data/CHANGELOG.md CHANGED
@@ -1 +1,13 @@
1
1
  # Changelog
2
+
3
+ ## [Unreleased](https://github.com/solidusio-contrib/solidus_user_roles/tree/HEAD)
4
+
5
+ [Full Changelog](https://github.com/solidusio-contrib/solidus_user_roles/compare/bc39e594665e6fd53d4a6fa51ce49ac23f0f59a0...HEAD)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Prevent DB Call By Checking Connection Prior [\#3](https://github.com/solidusio-contrib/solidus_user_roles/pull/3) ([cpfergus1](https://github.com/cpfergus1))
10
+
11
+
12
+
13
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
@@ -19,7 +19,8 @@ module SolidusUserRoles
19
19
 
20
20
  def self.load_custom_permissions
21
21
  # Ensure both tables exist before assigning permissions
22
- if (ActiveRecord::Base.connection.tables & ['spree_roles', 'spree_permission_sets']).to_a.length == 2
22
+ if ActiveRecord::Base.connected? &&
23
+ (ActiveRecord::Base.connection.tables & ['spree_roles', 'spree_permission_sets']).to_a.length == 2
23
24
  ::Spree::Role.non_base_roles.each do |role|
24
25
  ::Spree::Config.roles.assign_permissions role.name, role.permission_sets_constantized
25
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusUserRoles
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_user_roles
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allison Reilly
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-11 00:00:00.000000000 Z
11
+ date: 2023-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core