decidim-bulletin_board 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/Gemfile.lock +122 -8
- data/app/assets/config/decidim_bulletin_board_manifest.js +1 -0
- data/app/assets/javascripts/decidim/bulletin_board/decidim-bulletin_board.js +41063 -0
- data/decidim-bulletin_board.gemspec +4 -4
- data/lib/decidim/bulletin_board.rb +1 -0
- data/lib/decidim/bulletin_board/client.rb +2 -4
- data/lib/decidim/bulletin_board/engine.rb +15 -0
- data/lib/decidim/bulletin_board/graphql/bb_schema.json +13 -8
- data/lib/decidim/bulletin_board/version.rb +1 -1
- metadata +13 -20
@@ -5,8 +5,8 @@ require_relative "lib/decidim/bulletin_board/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "decidim-bulletin_board"
|
7
7
|
s.version = Decidim::BulletinBoard::VERSION
|
8
|
-
s.authors = ["David Morcillo", "Svenja Schäfer"]
|
9
|
-
s.email = ["david@codegram.com", "svenja@codegram.com"]
|
8
|
+
s.authors = ["David Morcillo", "Svenja Schäfer", "Leonardo Diez", "Agustí B.R."]
|
9
|
+
s.email = ["david@codegram.com", "svenja@codegram.com", "leo@codegram.com", "agusti@codegram.com"]
|
10
10
|
|
11
11
|
s.summary = ""
|
12
12
|
s.description = ""
|
@@ -23,8 +23,8 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
s.require_paths = ["lib"]
|
25
25
|
|
26
|
-
s.add_dependency "
|
27
|
-
|
26
|
+
s.add_dependency "rails", ">= 5.0.0"
|
27
|
+
|
28
28
|
s.add_dependency "byebug", "~> 11.0"
|
29
29
|
s.add_dependency "graphlient", "~> 0.4.0"
|
30
30
|
s.add_dependency "jwt", "~> 2.2.2"
|
@@ -18,16 +18,14 @@ module Decidim
|
|
18
18
|
|
19
19
|
attr_reader :server, :scheme, :api_key, :number_of_trustees, :authority_name
|
20
20
|
|
21
|
+
delegate :authority_slug, to: Decidim::BulletinBoard::Command
|
22
|
+
|
21
23
|
def quorum
|
22
24
|
return 0 if @scheme.dig(:parameters, :quorum).blank?
|
23
25
|
|
24
26
|
@scheme.dig(:parameters, :quorum)
|
25
27
|
end
|
26
28
|
|
27
|
-
def authority_slug
|
28
|
-
@authority_slug ||= authority_name.parameterize
|
29
|
-
end
|
30
|
-
|
31
29
|
def public_key
|
32
30
|
private_key&.export
|
33
31
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "rails"
|
4
|
+
|
5
|
+
module Decidim
|
6
|
+
module BulletinBoard
|
7
|
+
class Engine < ::Rails::Engine
|
8
|
+
isolate_namespace Decidim::BulletinBoard
|
9
|
+
|
10
|
+
initializer "decidim_bulletin_board.assets" do |app|
|
11
|
+
app.config.assets.precompile += %w(decidim_bulletin_board_manifest.js)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -243,7 +243,16 @@
|
|
243
243
|
"name": "logEntries",
|
244
244
|
"description": "Returns the list of log entries for this election in the bulletin board",
|
245
245
|
"args": [
|
246
|
-
|
246
|
+
{
|
247
|
+
"name": "after",
|
248
|
+
"description": null,
|
249
|
+
"type": {
|
250
|
+
"kind": "SCALAR",
|
251
|
+
"name": "String",
|
252
|
+
"ofType": null
|
253
|
+
},
|
254
|
+
"defaultValue": null
|
255
|
+
}
|
247
256
|
],
|
248
257
|
"type": {
|
249
258
|
"kind": "NON_NULL",
|
@@ -434,13 +443,9 @@
|
|
434
443
|
|
435
444
|
],
|
436
445
|
"type": {
|
437
|
-
"kind": "
|
438
|
-
"name":
|
439
|
-
"ofType":
|
440
|
-
"kind": "SCALAR",
|
441
|
-
"name": "String",
|
442
|
-
"ofType": null
|
443
|
-
}
|
446
|
+
"kind": "SCALAR",
|
447
|
+
"name": "String",
|
448
|
+
"ofType": null
|
444
449
|
},
|
445
450
|
"isDeprecated": false,
|
446
451
|
"deprecationReason": null
|
metadata
CHANGED
@@ -1,32 +1,20 @@
|
|
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.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Morcillo
|
8
8
|
- Svenja Schäfer
|
9
|
-
|
9
|
+
- Leonardo Diez
|
10
|
+
- Agustí B.R.
|
11
|
+
autorequire:
|
10
12
|
bindir: exe
|
11
13
|
cert_chain: []
|
12
|
-
date:
|
14
|
+
date: 2021-01-12 00:00:00.000000000 Z
|
13
15
|
dependencies:
|
14
16
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - ">="
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: 5.0.0
|
21
|
-
type: :runtime
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: 5.0.0
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: activesupport
|
17
|
+
name: rails
|
30
18
|
requirement: !ruby/object:Gem::Requirement
|
31
19
|
requirements:
|
32
20
|
- - ">="
|
@@ -155,6 +143,8 @@ description: ''
|
|
155
143
|
email:
|
156
144
|
- david@codegram.com
|
157
145
|
- svenja@codegram.com
|
146
|
+
- leo@codegram.com
|
147
|
+
- agusti@codegram.com
|
158
148
|
executables: []
|
159
149
|
extensions: []
|
160
150
|
extra_rdoc_files: []
|
@@ -170,6 +160,8 @@ files:
|
|
170
160
|
- Gemfile.lock
|
171
161
|
- README.md
|
172
162
|
- Rakefile
|
163
|
+
- app/assets/config/decidim_bulletin_board_manifest.js
|
164
|
+
- app/assets/javascripts/decidim/bulletin_board/decidim-bulletin_board.js
|
173
165
|
- bin/console
|
174
166
|
- bin/setup
|
175
167
|
- decidim-bulletin_board.gemspec
|
@@ -181,6 +173,7 @@ files:
|
|
181
173
|
- lib/decidim/bulletin_board/authority/open_ballot_box.rb
|
182
174
|
- lib/decidim/bulletin_board/client.rb
|
183
175
|
- lib/decidim/bulletin_board/command.rb
|
176
|
+
- lib/decidim/bulletin_board/engine.rb
|
184
177
|
- lib/decidim/bulletin_board/graphql/bb_schema.json
|
185
178
|
- lib/decidim/bulletin_board/graphql/client.rb
|
186
179
|
- lib/decidim/bulletin_board/jwk_utils.rb
|
@@ -192,7 +185,7 @@ homepage: https://github.com
|
|
192
185
|
licenses:
|
193
186
|
- AGPL-3.0
|
194
187
|
metadata: {}
|
195
|
-
post_install_message:
|
188
|
+
post_install_message:
|
196
189
|
rdoc_options: []
|
197
190
|
require_paths:
|
198
191
|
- lib
|
@@ -208,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
201
|
version: '0'
|
209
202
|
requirements: []
|
210
203
|
rubygems_version: 3.0.3
|
211
|
-
signing_key:
|
204
|
+
signing_key:
|
212
205
|
specification_version: 4
|
213
206
|
summary: ''
|
214
207
|
test_files: []
|