decidim-bulletin_board 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/Gemfile.lock +10 -11
- data/lib/decidim/bulletin_board/client.rb +8 -1
- data/lib/decidim/bulletin_board/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7338968926bbc16e964d828f014f50bb4e1d9f74846daac9a857b586687466c7
|
4
|
+
data.tar.gz: dda3edd9f06e01fad9a058be3672f9027009b8fca3012adf8e8ee00b408a665e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ade03088b4e6a998dffced0d0efa1ee0169b4ed9614f2634e303c93cc62256748cb7189604879d0d813675d3437a8963b8c54272e25ffc78245d10d583b0e54
|
7
|
+
data.tar.gz: 4b7fdac495b5fce86c0b50b03069ef154041a43ed1c0db257bad5d7667cefbcaf45d51295d190ad3c16f56abdd3b3298daeb00dd57e1da78fb9630b1520a4ae1
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [0.5.1] - 2020-12-19
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
- Include the missing `close_ballot_box` method from the 0.4.0 release.
|
13
|
+
- Fixes for the client methods
|
14
|
+
|
8
15
|
## [0.5.0] - 2020-12-19
|
9
16
|
|
10
17
|
### Changed
|
@@ -13,7 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
20
|
|
14
21
|
### Fixed
|
15
22
|
|
16
|
-
- Include the missing `open_ballot_box`
|
23
|
+
- Include the missing `open_ballot_box` methods from the 0.4.0 release.
|
17
24
|
- Added missing namespace on the seed task
|
18
25
|
|
19
26
|
## [0.4.0] - 2020-12-18
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
decidim-bulletin_board (0.5.
|
4
|
+
decidim-bulletin_board (0.5.1)
|
5
5
|
activemodel (>= 5.0.0)
|
6
6
|
activesupport (>= 5.0.0)
|
7
7
|
byebug (~> 11.0)
|
@@ -12,14 +12,14 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
activemodel (6.0
|
16
|
-
activesupport (= 6.0
|
17
|
-
activesupport (6.0
|
15
|
+
activemodel (6.1.0)
|
16
|
+
activesupport (= 6.1.0)
|
17
|
+
activesupport (6.1.0)
|
18
18
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
|
-
i18n (>=
|
20
|
-
minitest (
|
21
|
-
tzinfo (~>
|
22
|
-
zeitwerk (~> 2.
|
19
|
+
i18n (>= 1.6, < 2)
|
20
|
+
minitest (>= 5.1)
|
21
|
+
tzinfo (~> 2.0)
|
22
|
+
zeitwerk (~> 2.3)
|
23
23
|
addressable (2.7.0)
|
24
24
|
public_suffix (>= 2.0.2, < 5.0)
|
25
25
|
ast (2.4.1)
|
@@ -88,9 +88,8 @@ GEM
|
|
88
88
|
rubocop-ast (>= 0.7.1)
|
89
89
|
ruby-progressbar (1.10.1)
|
90
90
|
ruby2_keywords (0.0.2)
|
91
|
-
|
92
|
-
|
93
|
-
thread_safe (~> 0.1)
|
91
|
+
tzinfo (2.0.4)
|
92
|
+
concurrent-ruby (~> 1.0)
|
94
93
|
unicode-display_width (1.7.0)
|
95
94
|
webmock (3.10.0)
|
96
95
|
addressable (>= 2.3.6)
|
@@ -44,12 +44,19 @@ module Decidim
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def open_ballot_box(election_id)
|
47
|
-
open_ballot_box = Decidim::BulletinBoard::
|
47
|
+
open_ballot_box = Decidim::BulletinBoard::Authority::OpenBallotBox.new(election_id)
|
48
48
|
open_ballot_box.on(:ok) { |election| return election }
|
49
49
|
open_ballot_box.on(:error) { |error_message| raise StandardError, error_message }
|
50
50
|
open_ballot_box.call
|
51
51
|
end
|
52
52
|
|
53
|
+
def close_ballot_box(election_id)
|
54
|
+
close_ballot_box = Decidim::BulletinBoard::Authority::CloseBallotBox.new(election_id)
|
55
|
+
close_ballot_box.on(:ok) { |election| return election }
|
56
|
+
close_ballot_box.on(:error) { |error_message| raise StandardError, error_message }
|
57
|
+
close_ballot_box.call
|
58
|
+
end
|
59
|
+
|
53
60
|
def cast_vote(election_id, voter_id, encrypted_vote)
|
54
61
|
cast_vote = Decidim::BulletinBoard::Voter::CastVote.new(election_id, voter_id, encrypted_vote)
|
55
62
|
cast_vote.on(:ok) { |pending_message| return pending_message }
|