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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e07fa810de254d60c03c695aa6708e8813cf1f71a4df80fb7c0086ea57da74de
4
- data.tar.gz: fd6bfc7b6afc49fac85f6b8d34d27a6c39cf37d679e2a7faf702a05bc7ec52d4
3
+ metadata.gz: 7338968926bbc16e964d828f014f50bb4e1d9f74846daac9a857b586687466c7
4
+ data.tar.gz: dda3edd9f06e01fad9a058be3672f9027009b8fca3012adf8e8ee00b408a665e
5
5
  SHA512:
6
- metadata.gz: 98aaac12e64a4aafcd67d8058518cf36b389ef2bca2cddffc23f03944ed7194b2d38568e77a76e910a0289974e5e1a4f539b513fcebc935fb1e69b6ca332bb68
7
- data.tar.gz: 73c0f19adfa8c2365491c4d9a46387fecb7d01098695e734e3653c1f43944e40aa5c07168ba86877394029ac16feb85ccdd0aa2b25ca02f54ec837588a82a4de
6
+ metadata.gz: 5ade03088b4e6a998dffced0d0efa1ee0169b4ed9614f2634e303c93cc62256748cb7189604879d0d813675d3437a8963b8c54272e25ffc78245d10d583b0e54
7
+ data.tar.gz: 4b7fdac495b5fce86c0b50b03069ef154041a43ed1c0db257bad5d7667cefbcaf45d51295d190ad3c16f56abdd3b3298daeb00dd57e1da78fb9630b1520a4ae1
@@ -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` and `close_ballot_box` methods from the previous release.
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decidim-bulletin_board (0.5.0)
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.3.4)
16
- activesupport (= 6.0.3.4)
17
- activesupport (6.0.3.4)
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 (>= 0.7, < 2)
20
- minitest (~> 5.1)
21
- tzinfo (~> 1.1)
22
- zeitwerk (~> 2.2, >= 2.2.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
- thread_safe (0.3.6)
92
- tzinfo (1.2.9)
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::Election::OpenBallotBox.new(election_id)
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 }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Decidim
4
4
  module BulletinBoard
5
- VERSION = "0.5.0"
5
+ VERSION = "0.5.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-bulletin_board
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Morcillo