effective_resources 2.7.0 → 2.7.2

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: 9df1eeb6569ea8687942cd36080e692b9e9f5d7e77fbc4bf2e407c5663e50837
4
- data.tar.gz: bc8c7dbedd4b7f42535b9f80496cb6be2de1afb7b854ddee9ff7bee8471c3a90
3
+ metadata.gz: 7672ef626e66ae80fbb5b19feda283a58aab1d739f3dc753c012fffe6892d113
4
+ data.tar.gz: 0b5e7f03c53fbd78bff223c787753b3d391ff202f103d7cf3f063efb31fef5cb
5
5
  SHA512:
6
- metadata.gz: 4c4bd92d1125a2cbfa3d29ce5f5dd18700c02a17e8779ed8ba1b0efd838fc9fe3638cd79efbb747c7df9edae3d061e2dd9497bdaf4a20a37ac1220df830d765b
7
- data.tar.gz: fd57888df8906448c0c9513aeadf9e661e23830a15444d0b10d3935f31cd40049dac6351273146b11e5d0101d971d1d432276b56ad33d07439938537f92b6e1f
6
+ metadata.gz: dc20991a7fd54070688e1ef3d9a3e1d818088ef714ce3da408e2b1ba6269f173944314c49a94236c9c9755f563476bb720979c857ff3e1744764b0f5d1eb13d1
7
+ data.tar.gz: 686c3ce4f47647496bf7e411d6cc6313c018ed8d84aab9abcf1488a96fb88a9f150b105ab26a2f0a371d236f07447258a92cc385601cce3c8ade89a2b649d784
@@ -53,7 +53,7 @@ module ActsAsPurchasableWizard
53
53
 
54
54
  # Make sure all Fees are valid
55
55
  fees.each do |fee|
56
- raise('expected a valid fee') unless fee.valid?
56
+ raise("expected a valid fee but #{fee.id} had errors #{fee.errors.inspect}") unless fee.valid?
57
57
  end
58
58
 
59
59
  # A membership could go from individual to organization
@@ -64,7 +64,7 @@ module ActsAsSlugged
64
64
  end
65
65
 
66
66
  if (count = self.class.where(slug: slug).count) > 0
67
- uid = (Time.zone.now.to_i - 1_600_000_000).to_s(16) # This is a unique 7-8 digit url safe hex string
67
+ uid = Time.zone.now.nsec.to_s(16) # This is a unique 7-8 digit url safe hex string
68
68
  slug = "#{slug}-#{uid}"
69
69
  end
70
70
 
@@ -137,6 +137,10 @@ module ActsAsWizard
137
137
  has_completed_step?(required_steps.last)
138
138
  end
139
139
 
140
+ def reset_wizard_steps!
141
+ update!(wizard_steps: {})
142
+ end
143
+
140
144
  def without_current_step(&block)
141
145
  existing = current_step
142
146
 
@@ -72,6 +72,38 @@ module EffectiveDeviseUser
72
72
  [:email, :password, :password_confirmation, :first_name, :last_name, :name, :login]
73
73
  end
74
74
 
75
+ def filter_parameters
76
+ [
77
+ :encrypted_password,
78
+ :reset_password_token,
79
+ :reset_password_sent_at,
80
+ :remember_created_at,
81
+ :sign_in_count,
82
+ :current_sign_in_at,
83
+ :last_sign_in_at,
84
+ :current_sign_in_ip,
85
+ :last_sign_in_ip,
86
+ :invitation_token,
87
+ :invitation_created_at,
88
+ :invitation_sent_at,
89
+ :invitation_accepted_at,
90
+ :invitation_limit,
91
+ :invited_by_type,
92
+ :invited_by_id,
93
+ :invitations_count,
94
+ :uid,
95
+ :provider,
96
+ :access_token,
97
+ :refresh_token,
98
+ :token_expires_at,
99
+ :avatar_url,
100
+ :roles_mask,
101
+ :confirmation_sent_at,
102
+ :confirmed_at,
103
+ :unconfirmed_email
104
+ ]
105
+ end
106
+
75
107
  def from_omniauth(auth, params)
76
108
  invitation_token = (params.presence || {})['invitation_token']
77
109
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.7.0'.freeze
2
+ VERSION = '2.7.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-03 00:00:00.000000000 Z
11
+ date: 2023-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails