tramway-event 1.9.19 → 1.9.19.1

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: 04612e4d92c227210e6f6ef30048df7ab0589c44acec5b622a4fd2443e3781d2
4
- data.tar.gz: c8c976aa58509702a2c1981362043783b20d6601388d5bd959eb852cb20cc679
3
+ metadata.gz: 41f0767e6a896e151cc837b8728ee5175e2441fc2ecfbb3e2afcff941e199b5f
4
+ data.tar.gz: 6d37f908a7618031f73771de99e46ebacddf80503c30c5e8c8caf108d3497a47
5
5
  SHA512:
6
- metadata.gz: 8ff4bb5e94787ecc29145c5b52c91607092d0f1b5e8d695685fcbea4f4d78a6a06bd854ffc92be29ee4c242973f87a01ed209aff0b05a2651396cdd28bc77fb1
7
- data.tar.gz: 95abf3e86d185b6a0a53c641ed8ac56082f94e234b9e815764dd351f27e28feb55faff67618510882ddcec4d5ae7871bcc69b316fe1d36788330505cc8c56fae
6
+ metadata.gz: cfdebc74750ff1e24f39294707007227512045e16a1c47ac67a1d25914735f62f4ad805eb91ee26adc63e5e9d0a00cd670ba96162c69832a51de519b93e7877e
7
+ data.tar.gz: 4ad68d335c853d2338188c48c1fd236308588de1b0670828c3361b0da14fe62e88341c59cdd1a9df3c5ca7b34f2df3476bfcd683b6fbd3ebbb75916ba0d2c268
@@ -18,6 +18,10 @@ class Tramway::Event::Participant < ::Tramway::Event::ApplicationRecord
18
18
  transition [ :requested, :without_answer ] => :waiting
19
19
  end
20
20
 
21
+ event :reserve do
22
+ transition [ :requested, :without_answer, :waiting ] => :reserved
23
+ end
24
+
21
25
  event :reject do
22
26
  transition [ :requested, :without_answer, :waiting, :prev_approved, :reserved ] => :rejected
23
27
  end
@@ -30,10 +34,6 @@ class Tramway::Event::Participant < ::Tramway::Event::ApplicationRecord
30
34
  transition requested: :without_answer
31
35
  end
32
36
 
33
- event :reserve do
34
- transition [ :requested, :without_answer, :waiting ] => :reserved
35
- end
36
-
37
37
  event :return_to_requested do
38
38
  transition [ :prev_approved, :rejected ] => :requested
39
39
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '1.9.19'
3
+ VERSION = '1.9.19.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.19
4
+ version: 1.9.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov