decidim-bulletin_board 0.18.0 → 0.21.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e57119649551587e51587ca7a6f4201e0e2d32068f1a7228d4b2481f168c627a
|
4
|
+
data.tar.gz: 44fc247f3382166294e79810ae36a16e9b211557dd63d223e333c65ce25fb346
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a2d15f3bd793542eb78aa9ce7913a6b12477947e93650fc2129b9a26ce0a79aef5fe945c4e9049d0562b7f11da1ebc310aa3988012bd620d05abdf78cc1945a
|
7
|
+
data.tar.gz: 21367f4ce24228f1c6f4fdc389a1030913961af84c6092a67a5a7b30e1e176227fc4dace2ea54ad7b58c32d7300ab5569f25eb6a6e9c6e22b57a79692c9bc06e
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
decidim-bulletin_board (0.
|
4
|
+
decidim-bulletin_board (0.21.2)
|
5
5
|
byebug (~> 11.0)
|
6
6
|
graphlient (~> 0.4.0)
|
7
7
|
jwt (~> 2.2.2)
|
@@ -11,60 +11,60 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
actioncable (6.1.3.
|
15
|
-
actionpack (= 6.1.3.
|
16
|
-
activesupport (= 6.1.3.
|
14
|
+
actioncable (6.1.3.2)
|
15
|
+
actionpack (= 6.1.3.2)
|
16
|
+
activesupport (= 6.1.3.2)
|
17
17
|
nio4r (~> 2.0)
|
18
18
|
websocket-driver (>= 0.6.1)
|
19
|
-
actionmailbox (6.1.3.
|
20
|
-
actionpack (= 6.1.3.
|
21
|
-
activejob (= 6.1.3.
|
22
|
-
activerecord (= 6.1.3.
|
23
|
-
activestorage (= 6.1.3.
|
24
|
-
activesupport (= 6.1.3.
|
19
|
+
actionmailbox (6.1.3.2)
|
20
|
+
actionpack (= 6.1.3.2)
|
21
|
+
activejob (= 6.1.3.2)
|
22
|
+
activerecord (= 6.1.3.2)
|
23
|
+
activestorage (= 6.1.3.2)
|
24
|
+
activesupport (= 6.1.3.2)
|
25
25
|
mail (>= 2.7.1)
|
26
|
-
actionmailer (6.1.3.
|
27
|
-
actionpack (= 6.1.3.
|
28
|
-
actionview (= 6.1.3.
|
29
|
-
activejob (= 6.1.3.
|
30
|
-
activesupport (= 6.1.3.
|
26
|
+
actionmailer (6.1.3.2)
|
27
|
+
actionpack (= 6.1.3.2)
|
28
|
+
actionview (= 6.1.3.2)
|
29
|
+
activejob (= 6.1.3.2)
|
30
|
+
activesupport (= 6.1.3.2)
|
31
31
|
mail (~> 2.5, >= 2.5.4)
|
32
32
|
rails-dom-testing (~> 2.0)
|
33
|
-
actionpack (6.1.3.
|
34
|
-
actionview (= 6.1.3.
|
35
|
-
activesupport (= 6.1.3.
|
33
|
+
actionpack (6.1.3.2)
|
34
|
+
actionview (= 6.1.3.2)
|
35
|
+
activesupport (= 6.1.3.2)
|
36
36
|
rack (~> 2.0, >= 2.0.9)
|
37
37
|
rack-test (>= 0.6.3)
|
38
38
|
rails-dom-testing (~> 2.0)
|
39
39
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
40
|
-
actiontext (6.1.3.
|
41
|
-
actionpack (= 6.1.3.
|
42
|
-
activerecord (= 6.1.3.
|
43
|
-
activestorage (= 6.1.3.
|
44
|
-
activesupport (= 6.1.3.
|
40
|
+
actiontext (6.1.3.2)
|
41
|
+
actionpack (= 6.1.3.2)
|
42
|
+
activerecord (= 6.1.3.2)
|
43
|
+
activestorage (= 6.1.3.2)
|
44
|
+
activesupport (= 6.1.3.2)
|
45
45
|
nokogiri (>= 1.8.5)
|
46
|
-
actionview (6.1.3.
|
47
|
-
activesupport (= 6.1.3.
|
46
|
+
actionview (6.1.3.2)
|
47
|
+
activesupport (= 6.1.3.2)
|
48
48
|
builder (~> 3.1)
|
49
49
|
erubi (~> 1.4)
|
50
50
|
rails-dom-testing (~> 2.0)
|
51
51
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
52
|
-
activejob (6.1.3.
|
53
|
-
activesupport (= 6.1.3.
|
52
|
+
activejob (6.1.3.2)
|
53
|
+
activesupport (= 6.1.3.2)
|
54
54
|
globalid (>= 0.3.6)
|
55
|
-
activemodel (6.1.3.
|
56
|
-
activesupport (= 6.1.3.
|
57
|
-
activerecord (6.1.3.
|
58
|
-
activemodel (= 6.1.3.
|
59
|
-
activesupport (= 6.1.3.
|
60
|
-
activestorage (6.1.3.
|
61
|
-
actionpack (= 6.1.3.
|
62
|
-
activejob (= 6.1.3.
|
63
|
-
activerecord (= 6.1.3.
|
64
|
-
activesupport (= 6.1.3.
|
55
|
+
activemodel (6.1.3.2)
|
56
|
+
activesupport (= 6.1.3.2)
|
57
|
+
activerecord (6.1.3.2)
|
58
|
+
activemodel (= 6.1.3.2)
|
59
|
+
activesupport (= 6.1.3.2)
|
60
|
+
activestorage (6.1.3.2)
|
61
|
+
actionpack (= 6.1.3.2)
|
62
|
+
activejob (= 6.1.3.2)
|
63
|
+
activerecord (= 6.1.3.2)
|
64
|
+
activesupport (= 6.1.3.2)
|
65
65
|
marcel (~> 1.0.0)
|
66
66
|
mini_mime (~> 1.0.2)
|
67
|
-
activesupport (6.1.3.
|
67
|
+
activesupport (6.1.3.2)
|
68
68
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
69
69
|
i18n (>= 1.6, < 2)
|
70
70
|
minitest (>= 5.1)
|
@@ -83,11 +83,19 @@ GEM
|
|
83
83
|
erubi (1.10.0)
|
84
84
|
faker (2.15.1)
|
85
85
|
i18n (>= 1.6, < 2)
|
86
|
-
faraday (1.
|
86
|
+
faraday (1.4.2)
|
87
|
+
faraday-em_http (~> 1.0)
|
88
|
+
faraday-em_synchrony (~> 1.0)
|
89
|
+
faraday-excon (~> 1.1)
|
87
90
|
faraday-net_http (~> 1.0)
|
91
|
+
faraday-net_http_persistent (~> 1.1)
|
88
92
|
multipart-post (>= 1.2, < 3)
|
89
|
-
ruby2_keywords
|
93
|
+
ruby2_keywords (>= 0.0.4)
|
94
|
+
faraday-em_http (1.0.0)
|
95
|
+
faraday-em_synchrony (1.0.0)
|
96
|
+
faraday-excon (1.1.0)
|
90
97
|
faraday-net_http (1.0.1)
|
98
|
+
faraday-net_http_persistent (1.1.0)
|
91
99
|
faraday_middleware (1.0.0)
|
92
100
|
faraday (~> 1.0)
|
93
101
|
globalid (0.4.2)
|
@@ -96,14 +104,14 @@ GEM
|
|
96
104
|
faraday (>= 1.0)
|
97
105
|
faraday_middleware
|
98
106
|
graphql-client
|
99
|
-
graphql (1.12.
|
107
|
+
graphql (1.12.10)
|
100
108
|
graphql-client (0.16.0)
|
101
109
|
activesupport (>= 3.0)
|
102
110
|
graphql (~> 1.8)
|
103
111
|
hashdiff (1.0.1)
|
104
112
|
i18n (1.8.10)
|
105
113
|
concurrent-ruby (~> 1.0)
|
106
|
-
jwt (2.2.
|
114
|
+
jwt (2.2.3)
|
107
115
|
loofah (2.9.1)
|
108
116
|
crass (~> 1.0.2)
|
109
117
|
nokogiri (>= 1.5.9)
|
@@ -112,16 +120,16 @@ GEM
|
|
112
120
|
marcel (1.0.1)
|
113
121
|
method_source (1.0.0)
|
114
122
|
mini_mime (1.0.3)
|
115
|
-
mini_portile2 (2.5.
|
123
|
+
mini_portile2 (2.5.1)
|
116
124
|
minitest (5.14.4)
|
117
125
|
multipart-post (2.1.1)
|
118
126
|
nio4r (2.5.7)
|
119
|
-
nokogiri (1.11.
|
127
|
+
nokogiri (1.11.6)
|
120
128
|
mini_portile2 (~> 2.5.0)
|
121
129
|
racc (~> 1.4)
|
122
|
-
nokogiri (1.11.
|
130
|
+
nokogiri (1.11.6-x86_64-darwin)
|
123
131
|
racc (~> 1.4)
|
124
|
-
nokogiri (1.11.
|
132
|
+
nokogiri (1.11.6-x86_64-linux)
|
125
133
|
racc (~> 1.4)
|
126
134
|
parallel (1.20.1)
|
127
135
|
parser (2.7.2.0)
|
@@ -131,36 +139,36 @@ GEM
|
|
131
139
|
rack (2.2.3)
|
132
140
|
rack-test (1.1.0)
|
133
141
|
rack (>= 1.0, < 3)
|
134
|
-
rails (6.1.3.
|
135
|
-
actioncable (= 6.1.3.
|
136
|
-
actionmailbox (= 6.1.3.
|
137
|
-
actionmailer (= 6.1.3.
|
138
|
-
actionpack (= 6.1.3.
|
139
|
-
actiontext (= 6.1.3.
|
140
|
-
actionview (= 6.1.3.
|
141
|
-
activejob (= 6.1.3.
|
142
|
-
activemodel (= 6.1.3.
|
143
|
-
activerecord (= 6.1.3.
|
144
|
-
activestorage (= 6.1.3.
|
145
|
-
activesupport (= 6.1.3.
|
142
|
+
rails (6.1.3.2)
|
143
|
+
actioncable (= 6.1.3.2)
|
144
|
+
actionmailbox (= 6.1.3.2)
|
145
|
+
actionmailer (= 6.1.3.2)
|
146
|
+
actionpack (= 6.1.3.2)
|
147
|
+
actiontext (= 6.1.3.2)
|
148
|
+
actionview (= 6.1.3.2)
|
149
|
+
activejob (= 6.1.3.2)
|
150
|
+
activemodel (= 6.1.3.2)
|
151
|
+
activerecord (= 6.1.3.2)
|
152
|
+
activestorage (= 6.1.3.2)
|
153
|
+
activesupport (= 6.1.3.2)
|
146
154
|
bundler (>= 1.15.0)
|
147
|
-
railties (= 6.1.3.
|
155
|
+
railties (= 6.1.3.2)
|
148
156
|
sprockets-rails (>= 2.0.0)
|
149
157
|
rails-dom-testing (2.0.3)
|
150
158
|
activesupport (>= 4.2.0)
|
151
159
|
nokogiri (>= 1.6)
|
152
160
|
rails-html-sanitizer (1.3.0)
|
153
161
|
loofah (~> 2.3)
|
154
|
-
railties (6.1.3.
|
155
|
-
actionpack (= 6.1.3.
|
156
|
-
activesupport (= 6.1.3.
|
162
|
+
railties (6.1.3.2)
|
163
|
+
actionpack (= 6.1.3.2)
|
164
|
+
activesupport (= 6.1.3.2)
|
157
165
|
method_source
|
158
166
|
rake (>= 0.8.7)
|
159
167
|
thor (~> 1.0)
|
160
168
|
rainbow (3.0.0)
|
161
169
|
rake (13.0.3)
|
162
170
|
regexp_parser (2.0.0)
|
163
|
-
rexml (3.2.
|
171
|
+
rexml (3.2.5)
|
164
172
|
rspec (3.9.0)
|
165
173
|
rspec-core (~> 3.9.0)
|
166
174
|
rspec-expectations (~> 3.9.0)
|
@@ -208,7 +216,7 @@ GEM
|
|
208
216
|
addressable (>= 2.3.6)
|
209
217
|
crack (>= 0.3.2)
|
210
218
|
hashdiff (>= 0.4.0, < 2.0.0)
|
211
|
-
websocket-driver (0.7.
|
219
|
+
websocket-driver (0.7.4)
|
212
220
|
websocket-extensions (>= 0.1.0)
|
213
221
|
websocket-extensions (0.1.5)
|
214
222
|
wisper (2.0.1)
|
@@ -33,22 +33,25 @@ module Decidim
|
|
33
33
|
logEntries(types: args[:types]) do
|
34
34
|
signedData
|
35
35
|
end
|
36
|
+
verifiableResultsUrl
|
37
|
+
verifiableResultsHash
|
36
38
|
end
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
return broadcast(:error, "There aren't any log entries with type: 'end_tally' for this election.") if response.data.election.log_entries.empty?
|
41
43
|
|
42
|
-
@
|
44
|
+
@election = response.data.election
|
45
|
+
@signed_data = election.log_entries.first.signed_data
|
43
46
|
|
44
|
-
broadcast(:ok, decoded_data["results"])
|
47
|
+
broadcast(:ok, { election_results: decoded_data["results"], verifiable_results: verifiable_results })
|
45
48
|
rescue Graphlient::Errors::ServerError
|
46
49
|
broadcast(:error, "Sorry, something went wrong")
|
47
50
|
end
|
48
51
|
|
49
52
|
private
|
50
53
|
|
51
|
-
attr_reader :election_id, :types, :signed_data
|
54
|
+
attr_reader :election_id, :types, :signed_data, :election
|
52
55
|
|
53
56
|
def decoded_data
|
54
57
|
@decoded_data ||= begin
|
@@ -57,6 +60,13 @@ module Decidim
|
|
57
60
|
{ error: e.message }
|
58
61
|
end
|
59
62
|
end
|
63
|
+
|
64
|
+
def verifiable_results
|
65
|
+
{
|
66
|
+
url: election.verifiable_results_url,
|
67
|
+
hash: election.verifiable_results_hash
|
68
|
+
}
|
69
|
+
end
|
60
70
|
end
|
61
71
|
end
|
62
72
|
end
|
@@ -7,8 +7,10 @@ module Decidim
|
|
7
7
|
class Engine < ::Rails::Engine
|
8
8
|
isolate_namespace Decidim::BulletinBoard
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
if defined?(Sprockets) && Sprockets::VERSION.chr.to_i >= 4
|
11
|
+
initializer "decidim_bulletin_board.assets" do |app|
|
12
|
+
app.config.assets.precompile += %w(decidim_bulletin_board_manifest.js)
|
13
|
+
end
|
12
14
|
end
|
13
15
|
end
|
14
16
|
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.
|
4
|
+
version: 0.21.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Morcillo
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-
|
14
|
+
date: 2021-05-28 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|