uffizzi_core 2.1.21 → 2.1.22

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: 7ddf1cdf5ca4493e22183f6af9fc269b6e84e75cbb069362837cd760c92c1324
4
- data.tar.gz: 25d66bc0bb87075efb2de98620d7f63ac981edda10d4648d57ffb7fd0bbd7623
3
+ metadata.gz: 8e656eb503e61d1df06ee0fa3e494ebe2e0710bf332813c7a5d48b0915e297da
4
+ data.tar.gz: dd6bc21422c286a60b7ee6f5b42ee476583b9e0240ef5d7c49be8f1fa7150d52
5
5
  SHA512:
6
- metadata.gz: 69caa51097ef93e07376fb2dc80c8a0295ae319bc25a7fc4b91fd7f60370669859629834791787633c5610889f3fa383810583d9029435115234b5dac3e152a4
7
- data.tar.gz: 90823bbec114d8cec8f405c9c7081ca4cb8e039c74ff00ec7d125ec600e0a264cfb4560dfc954853b08d6f09364c85a377a9884818220df428ebd782ada7a95c
6
+ metadata.gz: be971d5693d19dc437775321a5897e00abed51e1c3f88878c9370afcbf0accbe90a989002ab75ad18b9eed96cbb4a5c98da80daef57e9042f1c3ac153fb60e24
7
+ data.tar.gz: 8b771df5c0456e872d3cb89e9f947962b91ab216493193cf95eaf8e711f1d86f923ad1231b4d59ea15b464c47788192c7db44c97dc97d1e467d10a131626bfb4
@@ -22,9 +22,14 @@ module UffizziCore::Concerns::Models::Membership
22
22
  aasm(:state) do
23
23
  state :active, initial: true
24
24
  state :blocked
25
+ state :inactive
25
26
 
26
27
  event :activate do
27
- transitions from: [:blocked], to: :active
28
+ transitions from: [:blocked, :inactive], to: :active
29
+ end
30
+
31
+ event :deactivate do
32
+ transitions from: [:active], to: :inactive
28
33
  end
29
34
 
30
35
  event :block do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.1.21'
4
+ VERSION = '2.1.22'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uffizzi_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.21
4
+ version: 2.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Thurman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-04-24 00:00:00.000000000 Z
12
+ date: 2023-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm