card 1.98.2 → 1.98.3

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
  SHA1:
3
- metadata.gz: 386e1ef385810519910b21aaa3cbc57b7da75dd6
4
- data.tar.gz: 88edcd64fde3e3e416557826671ce526dbabe410
3
+ metadata.gz: 835df1fe634ac86b362129fc1848a32b625ac056
4
+ data.tar.gz: 4c89dfc65e3c9d4b088189fb087b63b23f9a98e8
5
5
  SHA512:
6
- metadata.gz: d5d4982608fc630b6c3d5e6543fe357789f6689caa865bb6c255896f1725903b3d0668b7a5a9f84aa220087b7bc18b2c559e57bfbfe45e777077cc6401d3821b
7
- data.tar.gz: cdd231febca1a0c86de1907e00b85bea6999a0234b202252c66f1658bb9759a47ff18f32a5f7bd8482da460113a238839cf681438aef213f82481efc9dff6fc1
6
+ metadata.gz: fe19dedcf5116d8ed7025da14b75dff968afc102e9fed7610e884101ef233493b1b498893c22be9d69cdf4d53e48ca24d35f9f0dad52ba04a03f7c76054e9112
7
+ data.tar.gz: f235a00bd3c284f298dabbe9ae2a2ef7c6e955ca0ab96982d7f7afa8f121c9bcd9916814b0b556dcac339f228f57d64e2a03c8070a87e55ee4f7ef4b769f4f7d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.2
1
+ 0.8.3
@@ -64,6 +64,9 @@ end
64
64
 
65
65
  def enabled_role_ids
66
66
  Auth.as_bot do
67
+ # workaround for broken migrations
68
+ return fetch_roles unless Card::Codename.exists? :enabled_roles
69
+
67
70
  role_trait = fetch(trait: :enabled_roles, new: { type_id: SessionID })
68
71
  role_trait.virtual? ? role_trait.item_ids : fetch_roles
69
72
  end
@@ -75,7 +75,8 @@ format :html do
75
75
  end
76
76
 
77
77
  def can_disable_roles?
78
- Auth.current_roles.size > 1
78
+ Auth.current_roles.size > 1 &&
79
+ Card::Codename.exists?(:enabled_roles) # workaround for broken migrations
79
80
  end
80
81
 
81
82
  def account_link_text purpose
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.98.2
4
+ version: 1.98.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-08-16 00:00:00.000000000 Z
14
+ date: 2019-09-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: cardname
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.8.2
22
+ version: 0.8.3
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.8.2
29
+ version: 0.8.3
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: haml
32
32
  requirement: !ruby/object:Gem::Requirement