decidim-bulletin_board 0.16.1 → 0.17.0
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: bc363471aea52b3ad74405e87e9410937432954146e13a929c94b8fadcad3629
|
4
|
+
data.tar.gz: 70baf206b39fa702eab21665c99b4ee9c45b897862317bc46aa8622c5c643933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 326b1a82ecf89514a0e96f646b30ee74ba9d1daa00b4eb8e03b0ec75de64c71bcfd3a850f52660c7636a372e16bbb1ea288cc06ee7b706947846b8747a3abc52
|
7
|
+
data.tar.gz: '07967b7cd63e30bdb0727bd4b325975d25dfd7a5538cee9c28239a8b03c1ffa50ac4e51297b9e940be58c3e32f15b195706c18ab721918392e57c6ad868ed0f7'
|
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.17.0)
|
5
5
|
byebug (~> 11.0)
|
6
6
|
graphlient (~> 0.4.0)
|
7
7
|
jwt (~> 2.2.2)
|
@@ -96,7 +96,7 @@ GEM
|
|
96
96
|
faraday (>= 1.0)
|
97
97
|
faraday_middleware
|
98
98
|
graphql-client
|
99
|
-
graphql (1.12.
|
99
|
+
graphql (1.12.8)
|
100
100
|
graphql-client (0.16.0)
|
101
101
|
activesupport (>= 3.0)
|
102
102
|
graphql (~> 1.8)
|
@@ -55,7 +55,8 @@ module Decidim
|
|
55
55
|
start_date: election_data[:start_date].strftime("%FT%T%:z"),
|
56
56
|
end_date: election_data[:end_date].strftime("%FT%T%:z"),
|
57
57
|
candidates: candidates,
|
58
|
-
contests: contests
|
58
|
+
contests: contests,
|
59
|
+
ballot_styles: ballot_styles
|
59
60
|
}
|
60
61
|
}
|
61
62
|
end
|
@@ -128,6 +129,15 @@ module Decidim
|
|
128
129
|
end
|
129
130
|
end
|
130
131
|
|
132
|
+
def ballot_styles
|
133
|
+
election_data[:ballot_styles].map do |ballot_style_id, question_ids|
|
134
|
+
{
|
135
|
+
object_id: ballot_style_id.to_s,
|
136
|
+
contests: question_ids
|
137
|
+
}
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
131
141
|
def default_text(field)
|
132
142
|
field[default_locale]
|
133
143
|
end
|