decidim-core 0.0.8.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/decidim_core_manifest.js +0 -1
  3. data/app/assets/javascripts/decidim/form_filter.component.js.es6 +12 -2
  4. data/app/assets/stylesheets/decidim/_decidim.scss +1 -2
  5. data/app/assets/stylesheets/decidim/extras/_embed.scss +21 -0
  6. data/app/assets/stylesheets/decidim/modules/_cards.scss +1 -1
  7. data/app/assets/stylesheets/decidim/modules/_icons.scss +1 -1
  8. data/app/commands/decidim/create_registration.rb +1 -1
  9. data/app/commands/decidim/invite_user.rb +7 -8
  10. data/app/controllers/concerns/decidim/filter_resource.rb +2 -3
  11. data/app/controllers/concerns/decidim/payload_info.rb +1 -1
  12. data/app/controllers/decidim/authorizations_controller.rb +0 -4
  13. data/app/controllers/decidim/pages_controller.rb +8 -11
  14. data/app/controllers/decidim/participatory_process_groups_controller.rb +1 -1
  15. data/app/controllers/decidim/participatory_process_widgets_controller.rb +4 -0
  16. data/app/controllers/decidim/widgets_controller.rb +7 -3
  17. data/app/forms/decidim/registration_form.rb +4 -4
  18. data/app/helpers/decidim/layout_helper.rb +1 -1
  19. data/app/helpers/decidim/map_helper.rb +21 -21
  20. data/app/helpers/decidim/resource_helper.rb +4 -4
  21. data/app/helpers/decidim/widget_urls_helper.rb +2 -2
  22. data/app/mailers/decidim/export_mailer.rb +29 -0
  23. data/app/middleware/decidim/current_organization.rb +1 -1
  24. data/app/models/decidim/feature.rb +5 -0
  25. data/app/models/decidim/organization.rb +1 -1
  26. data/app/models/decidim/participatory_process.rb +1 -1
  27. data/app/models/decidim/user.rb +1 -1
  28. data/app/presenters/decidim/home_stats_presenter.rb +74 -0
  29. data/app/queries/decidim/stats_users_count.rb +24 -0
  30. data/app/services/decidim/public_processes.rb +4 -2
  31. data/app/services/decidim/resource_search.rb +1 -1
  32. data/app/services/decidim/static_map_generator.rb +1 -3
  33. data/app/uploaders/decidim/image_uploader.rb +1 -1
  34. data/app/views/decidim/export_mailer/export.html.erb +1 -0
  35. data/app/views/decidim/participatory_process_widgets/show.html.erb +16 -27
  36. data/app/views/decidim/participatory_processes/show.html.erb +7 -7
  37. data/app/views/decidim/widgets/show.js.erb +27 -17
  38. data/app/views/layouts/decidim/widget.html.erb +55 -3
  39. data/app/views/pages/home/_statistics.html.erb +2 -10
  40. data/config/i18n-tasks.yml +1 -0
  41. data/config/initializers/devise.rb +11 -4
  42. data/config/locales/ca.yml +14 -3
  43. data/config/locales/en.yml +14 -3
  44. data/config/locales/es.yml +13 -2
  45. data/config/locales/eu.yml +0 -2
  46. data/config/locales/fi.yml +0 -2
  47. data/config/locales/fr.yml +386 -1
  48. data/config/locales/nl.yml +1 -3
  49. data/db/seeds.rb +1 -1
  50. data/lib/decidim/core.rb +10 -2
  51. data/lib/decidim/core/api/decidim_type.rb +4 -0
  52. data/lib/decidim/core/api/translated_field_type.rb +2 -2
  53. data/lib/decidim/core/engine.rb +13 -0
  54. data/lib/decidim/core/test/shared_examples/comments_examples.rb +16 -18
  55. data/lib/decidim/core/test/shared_examples/manage_moderations_examples.rb +2 -2
  56. data/lib/decidim/core/test/shared_examples/reports_examples.rb +9 -9
  57. data/lib/decidim/core/version.rb +1 -1
  58. data/lib/decidim/exporters.rb +9 -0
  59. data/lib/decidim/exporters/csv.rb +54 -0
  60. data/lib/decidim/exporters/export_data.rb +22 -0
  61. data/lib/decidim/exporters/exporter.rb +28 -0
  62. data/lib/decidim/exporters/json.rb +22 -0
  63. data/lib/decidim/feature_manifest.rb +18 -0
  64. data/lib/decidim/file_zipper.rb +28 -0
  65. data/lib/decidim/form_builder.rb +27 -14
  66. data/lib/decidim/has_reference.rb +1 -1
  67. data/lib/decidim/i18n_exceptions.rb +3 -2
  68. data/lib/decidim/query_extensions.rb +1 -1
  69. data/lib/decidim/reportable.rb +1 -1
  70. data/lib/decidim/resource_manifest.rb +0 -7
  71. data/lib/decidim/stats_registry.rb +110 -0
  72. data/vendor/assets/javascripts/form_datepicker.js.es6 +3 -1
  73. metadata +53 -29
  74. data/app/assets/stylesheets/decidim/widget.scss.erb +0 -25
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+ require "zip"
3
+
4
+ module Decidim
5
+ # This class performs a simple task: Zipping a single file. Originally
6
+ # meant for mailers to attach files, but other usage can be found.
7
+ class FileZipper
8
+ # Public: Initializes the zipper with a filename and the data to
9
+ # be zipped.
10
+ #
11
+ # filename - The file name of the file *inside* the zip.
12
+ # data - A string with the data to be zipped.
13
+ def initialize(filename, data)
14
+ @data = data
15
+ @filename = filename
16
+ end
17
+
18
+ # Public: Zips the file.
19
+ #
20
+ # Returns a String with the zipped version of the file.
21
+ def zip
22
+ @zip ||= Zip::OutputStream.write_buffer do |zipfile|
23
+ zipfile.put_next_entry(@filename)
24
+ zipfile.write @data
25
+ end.string
26
+ end
27
+ end
28
+ end
@@ -20,6 +20,7 @@ module Decidim
20
20
  # html_options - a Hash with options
21
21
  #
22
22
  # Renders a collection of check boxes.
23
+ # rubocop:disable Metrics/ParameterLists
23
24
  def collection_check_boxes(attribute, collection, value_attribute, text_attribute, options = {}, html_options = {})
24
25
  super + error_and_help_text(attribute, options)
25
26
  end
@@ -136,14 +137,21 @@ module Decidim
136
137
  # Public: Override so the date fields are rendered using foundation
137
138
  # datepicker library
138
139
  def date_field(attribute, options = {})
140
+ value = object.send(attribute)
141
+ data = { datepicker: "" }
142
+ data[:startdate] = I18n.localize(value, format: :datepicker) if value.present?
143
+ iso_value = value.present? ? value.strftime("%Y-%m-%d") : ""
144
+
139
145
  template = ""
140
146
  template += label(attribute, label_for(attribute))
141
- template += @template.text_field(@object_name, attribute, options.merge({
142
- name: nil,
143
- id: "date_field_#{@object_name}_#{attribute}",
144
- data: { datepicker: '', startdate: object.send(attribute) }
145
- }))
146
- template += @template.hidden_field(@object_name, attribute)
147
+ template += @template.text_field(
148
+ @object_name,
149
+ attribute,
150
+ options.merge(name: nil,
151
+ id: "date_field_#{@object_name}_#{attribute}",
152
+ data: data)
153
+ )
154
+ template += @template.hidden_field(@object_name, attribute, value: iso_value)
147
155
  template += error_and_help_text(attribute, options)
148
156
  template.html_safe
149
157
  end
@@ -152,16 +160,21 @@ module Decidim
152
160
  # datepicker library
153
161
  def datetime_field(attribute, options = {})
154
162
  value = object.send(attribute)
155
- formatted_value = I18n.localize(value, format: :timepicker) if value
163
+ if value
164
+ iso_value = value.strftime("%Y-%m-%dT%H:%M:%S")
165
+ formatted_value = I18n.localize(value, format: :timepicker)
166
+ end
156
167
  template = ""
157
168
  template += label(attribute, label_for(attribute))
158
- template += @template.text_field(@object_name, attribute, options.merge({
159
- value: formatted_value,
160
- name: nil,
161
- id: "datetime_field_#{@object_name}_#{attribute}",
162
- data: { datepicker: '', timepicker: '' }
163
- }))
164
- template += @template.hidden_field(@object_name, attribute)
169
+ template += @template.text_field(
170
+ @object_name,
171
+ attribute,
172
+ options.merge(value: formatted_value,
173
+ name: nil,
174
+ id: "datetime_field_#{@object_name}_#{attribute}",
175
+ data: { datepicker: "", timepicker: "" })
176
+ )
177
+ template += @template.hidden_field(@object_name, attribute, value: iso_value)
165
178
  template += error_and_help_text(attribute, options)
166
179
  template.html_safe
167
180
  end
@@ -44,7 +44,7 @@ module Decidim
44
44
  # Returns nothing.
45
45
  def store_reference
46
46
  self[:reference] ||= calculate_reference
47
- self.save if self.changed?
47
+ save if changed?
48
48
  end
49
49
  end
50
50
  end
@@ -1,12 +1,13 @@
1
+ # frozen_string_literal: true
1
2
  unless Rails.env.production?
2
3
  module I18n
3
4
  class JustRaiseExceptionHandler < ExceptionHandler
4
5
  def call(exception, locale, key, options)
5
6
  if exception.is_a?(MissingTranslationData) || exception.is_a?(MissingTranslation)
6
7
  raise exception.to_exception
7
- else
8
- super
9
8
  end
9
+
10
+ super
10
11
  end
11
12
  end
12
13
  end
@@ -29,7 +29,7 @@ module Decidim
29
29
  end
30
30
 
31
31
  field :decidim, DecidimType, "Decidim's framework properties." do
32
- resolve ->(_obj, _args, ctx) { Decidim }
32
+ resolve ->(_obj, _args, _ctx) { Decidim }
33
33
  end
34
34
  end
35
35
  end
@@ -10,7 +10,7 @@ module Decidim
10
10
  has_one :moderation, as: :reportable, foreign_key: "decidim_reportable_id", foreign_type: "decidim_reportable_type", class_name: "Decidim::Moderation"
11
11
  has_many :reports, through: :moderation
12
12
 
13
- scope :reported, -> { left_outer_joins(:moderation).where(Decidim::Moderation.arel_table[:report_count].gt 0) }
13
+ scope :reported, -> { left_outer_joins(:moderation).where(Decidim::Moderation.arel_table[:report_count].gt(0)) }
14
14
  scope :hidden, -> { left_outer_joins(:moderation).where.not(Decidim::Moderation.arel_table[:hidden_at].eq nil) }
15
15
  scope :not_hidden, -> { left_outer_joins(:moderation).where(Decidim::Moderation.arel_table[:hidden_at].eq nil) }
16
16
 
@@ -69,12 +69,5 @@ module Decidim
69
69
  def route_name
70
70
  super || model_class_name.demodulize.underscore
71
71
  end
72
-
73
- # The engine for the resource. It will be used to build routes.
74
- #
75
- # Returns a Rails::Engine.
76
- def mounted_engine_name
77
- "decidim_#{feature_manifest.name}"
78
- end
79
72
  end
80
73
  end
@@ -0,0 +1,110 @@
1
+ # frozen_string_literal: true
2
+ module Decidim
3
+ # This class stores different stats computations and resolves them given a context.
4
+ class StatsRegistry
5
+ HIGH_PRIORITY = 1
6
+ MEDIUM_PRIORITY = 2
7
+ LOW_PRIORITY = 3
8
+
9
+ attr_reader :stats
10
+
11
+ # Public: Initializes the object with an optional stats array
12
+ #
13
+ # stats - An array of Hashes to represent a stat object
14
+ def initialize(stats = [])
15
+ @stats = stats
16
+ end
17
+
18
+ # Public: Register a stat
19
+ #
20
+ # name - The name of the stat
21
+ # options - A hash of options
22
+ # * primary: Wether the stat is primary or not.
23
+ # * priority: The priority of the stat used for render issues.
24
+ # block - A block that receive the features to filter out the stat.
25
+ def register(name, options = {}, &block)
26
+ stat = @stats.detect { |s| s[:name] == name }
27
+ raise StandardError, "Stats '#{name}' is already registered." if stat.present?
28
+
29
+ options[:primary] ||= false
30
+ options[:priority] ||= LOW_PRIORITY
31
+
32
+ @stats.push(name: name,
33
+ primary: options[:primary],
34
+ priority: options[:priority],
35
+ tag: options[:tag],
36
+ block: block)
37
+ end
38
+
39
+ # Public: Returns a number returned by executing the corresponding block.
40
+ #
41
+ # name - The name of the stat
42
+ # context - An arbritrary context object to compute the result.
43
+ # start_at - A date to filter resources created after it
44
+ # end_at - A date to filter resources created before it.
45
+ #
46
+ # Returns the result of executing the stats block using the passing context or an error.
47
+ def resolve(name, context, start_at = nil, end_at = nil)
48
+ stat = @stats.detect { |s| s[:name] == name }
49
+ return stat[:block].call(context, start_at, end_at) if stat.present?
50
+ raise StandardError, "Stats '#{name}' is not registered."
51
+ end
52
+
53
+ # Public: Resolves every stat with the given context and return an enumerator
54
+ #
55
+ # context - An arbritrary context object to compute the result.
56
+ # start_at - A date to filter resources created after it
57
+ # end_at - A date to filter resources created before it
58
+ #
59
+ # Returns an Enumerator where each value is a tuple of name and resolved value
60
+ def with_context(context, start_at = nil, end_at = nil)
61
+ Enumerator.new do |yielder|
62
+ @stats.each do |stat|
63
+ yielder << [stat[:name], resolve(stat[:name], context, start_at, end_at)]
64
+ end
65
+ end
66
+ end
67
+
68
+ # Public: Creates a new registry with the filtered stats
69
+ #
70
+ # conditions - A hash of conditions
71
+ # * primary: Wether the stat is primary or not.
72
+ # * priority: The priority of the stat used for render issues.
73
+ #
74
+ # Returns a new StatsRegistry with the filtered stats
75
+ def filter(conditions)
76
+ filtered_stats = @stats.select do |stat|
77
+ selected = true
78
+ conditions.each do |condition, value|
79
+ selected = false if stat[condition] != value
80
+ end
81
+ selected
82
+ end
83
+ StatsRegistry.new(filtered_stats)
84
+ end
85
+
86
+ # Public: Creates a new registry with all stats except the provided ones
87
+ #
88
+ # names - An Array of stats names to exclude
89
+ #
90
+ # Returns a new StatsRegistry with the selected stats
91
+ def except(names)
92
+ filtered_stats = @stats.reject do |stat|
93
+ names.include? stat[:name]
94
+ end
95
+ StatsRegistry.new(filtered_stats)
96
+ end
97
+
98
+ # Public: Creates a new registry with only the stats included into the provided ones
99
+ #
100
+ # names - An Array of stats names to include
101
+ #
102
+ # Returns a new StatsRegistry with the selected stats
103
+ def only(names)
104
+ filtered_stats = @stats.select do |stat|
105
+ names.include? stat[:name]
106
+ end
107
+ StatsRegistry.new(filtered_stats)
108
+ end
109
+ end
110
+ end
@@ -20,7 +20,9 @@
20
20
  leftArrow: '<<',
21
21
  rightArrow: '>>'
22
22
  }).on('changeDate', (ev) => {
23
- $(ev.target).siblings('input').val(exports.moment.utc(ev.date));
23
+ let newDate = exports.moment.utc(ev.date).format('YYYY-MM-DDTHH:mm:ss');
24
+
25
+ $(ev.target).siblings('input').val(newDate);
24
26
  });
25
27
  });
26
28
  };
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-04-27 00:00:00.000000000 Z
13
+ date: 2017-05-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -74,14 +74,14 @@ dependencies:
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: 0.8.0
77
+ version: 0.9.1
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: 0.8.0
84
+ version: 0.9.1
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: sassc-rails
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -102,14 +102,14 @@ dependencies:
102
102
  requirements:
103
103
  - - "~>"
104
104
  - !ruby/object:Gem::Version
105
- version: 6.3.0.0
105
+ version: 6.3.1.0
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - "~>"
111
111
  - !ruby/object:Gem::Version
112
- version: 6.3.0.0
112
+ version: 6.3.1.0
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: autoprefixer-rails
115
115
  requirement: !ruby/object:Gem::Requirement
@@ -136,14 +136,14 @@ dependencies:
136
136
  requirements:
137
137
  - - "~>"
138
138
  - !ruby/object:Gem::Version
139
- version: 4.2.2
139
+ version: 4.3.1
140
140
  type: :runtime
141
141
  prerelease: false
142
142
  version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - "~>"
145
145
  - !ruby/object:Gem::Version
146
- version: 4.2.2
146
+ version: 4.3.1
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: carrierwave
149
149
  requirement: !ruby/object:Gem::Requirement
@@ -178,28 +178,28 @@ dependencies:
178
178
  requirements:
179
179
  - - "~>"
180
180
  - !ruby/object:Gem::Version
181
- version: 1.0.0
181
+ version: 1.0.4
182
182
  type: :runtime
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - "~>"
187
187
  - !ruby/object:Gem::Version
188
- version: 1.0.0
188
+ version: 1.0.4
189
189
  - !ruby/object:Gem::Dependency
190
190
  name: pg
191
191
  requirement: !ruby/object:Gem::Requirement
192
192
  requirements:
193
193
  - - "~>"
194
194
  - !ruby/object:Gem::Version
195
- version: 0.19.0
195
+ version: 0.20.0
196
196
  type: :runtime
197
197
  prerelease: false
198
198
  version_requirements: !ruby/object:Gem::Requirement
199
199
  requirements:
200
200
  - - "~>"
201
201
  - !ruby/object:Gem::Version
202
- version: 0.19.0
202
+ version: 0.20.0
203
203
  - !ruby/object:Gem::Dependency
204
204
  name: redis
205
205
  requirement: !ruby/object:Gem::Requirement
@@ -290,14 +290,14 @@ dependencies:
290
290
  requirements:
291
291
  - - "~>"
292
292
  - !ruby/object:Gem::Version
293
- version: 4.6.1
293
+ version: 4.7.0
294
294
  type: :runtime
295
295
  prerelease: false
296
296
  version_requirements: !ruby/object:Gem::Requirement
297
297
  requirements:
298
298
  - - "~>"
299
299
  - !ruby/object:Gem::Version
300
- version: 4.6.1
300
+ version: 4.7.0
301
301
  - !ruby/object:Gem::Dependency
302
302
  name: file_validators
303
303
  requirement: !ruby/object:Gem::Requirement
@@ -374,14 +374,14 @@ dependencies:
374
374
  requirements:
375
375
  - - "~>"
376
376
  - !ruby/object:Gem::Version
377
- version: 1.6.1
377
+ version: 2.0.0
378
378
  type: :runtime
379
379
  prerelease: false
380
380
  version_requirements: !ruby/object:Gem::Requirement
381
381
  requirements:
382
382
  - - "~>"
383
383
  - !ruby/object:Gem::Version
384
- version: 1.6.1
384
+ version: 2.0.0
385
385
  - !ruby/object:Gem::Dependency
386
386
  name: premailer-rails
387
387
  requirement: !ruby/object:Gem::Requirement
@@ -402,14 +402,14 @@ dependencies:
402
402
  requirements:
403
403
  - - "~>"
404
404
  - !ruby/object:Gem::Version
405
- version: 1.7.0.1
405
+ version: 1.7.1
406
406
  type: :runtime
407
407
  prerelease: false
408
408
  version_requirements: !ruby/object:Gem::Requirement
409
409
  requirements:
410
410
  - - "~>"
411
411
  - !ruby/object:Gem::Version
412
- version: 1.7.0.1
412
+ version: 1.7.1
413
413
  - !ruby/object:Gem::Dependency
414
414
  name: geocoder
415
415
  requirement: !ruby/object:Gem::Requirement
@@ -424,76 +424,90 @@ dependencies:
424
424
  - - "~>"
425
425
  - !ruby/object:Gem::Version
426
426
  version: 1.4.2
427
+ - !ruby/object:Gem::Dependency
428
+ name: rubyzip
429
+ requirement: !ruby/object:Gem::Requirement
430
+ requirements:
431
+ - - '='
432
+ - !ruby/object:Gem::Version
433
+ version: 1.2.1
434
+ type: :runtime
435
+ prerelease: false
436
+ version_requirements: !ruby/object:Gem::Requirement
437
+ requirements:
438
+ - - '='
439
+ - !ruby/object:Gem::Version
440
+ version: 1.2.1
427
441
  - !ruby/object:Gem::Dependency
428
442
  name: decidim-api
429
443
  requirement: !ruby/object:Gem::Requirement
430
444
  requirements:
431
445
  - - '='
432
446
  - !ruby/object:Gem::Version
433
- version: 0.0.8.1
447
+ version: 0.1.0
434
448
  type: :runtime
435
449
  prerelease: false
436
450
  version_requirements: !ruby/object:Gem::Requirement
437
451
  requirements:
438
452
  - - '='
439
453
  - !ruby/object:Gem::Version
440
- version: 0.0.8.1
454
+ version: 0.1.0
441
455
  - !ruby/object:Gem::Dependency
442
456
  name: decidim-dev
443
457
  requirement: !ruby/object:Gem::Requirement
444
458
  requirements:
445
459
  - - '='
446
460
  - !ruby/object:Gem::Version
447
- version: 0.0.8.1
461
+ version: 0.1.0
448
462
  type: :development
449
463
  prerelease: false
450
464
  version_requirements: !ruby/object:Gem::Requirement
451
465
  requirements:
452
466
  - - '='
453
467
  - !ruby/object:Gem::Version
454
- version: 0.0.8.1
468
+ version: 0.1.0
455
469
  - !ruby/object:Gem::Dependency
456
470
  name: decidim-proposals
457
471
  requirement: !ruby/object:Gem::Requirement
458
472
  requirements:
459
473
  - - '='
460
474
  - !ruby/object:Gem::Version
461
- version: 0.0.8.1
475
+ version: 0.1.0
462
476
  type: :development
463
477
  prerelease: false
464
478
  version_requirements: !ruby/object:Gem::Requirement
465
479
  requirements:
466
480
  - - '='
467
481
  - !ruby/object:Gem::Version
468
- version: 0.0.8.1
482
+ version: 0.1.0
469
483
  - !ruby/object:Gem::Dependency
470
484
  name: decidim-meetings
471
485
  requirement: !ruby/object:Gem::Requirement
472
486
  requirements:
473
487
  - - '='
474
488
  - !ruby/object:Gem::Version
475
- version: 0.0.8.1
489
+ version: 0.1.0
476
490
  type: :development
477
491
  prerelease: false
478
492
  version_requirements: !ruby/object:Gem::Requirement
479
493
  requirements:
480
494
  - - '='
481
495
  - !ruby/object:Gem::Version
482
- version: 0.0.8.1
496
+ version: 0.1.0
483
497
  - !ruby/object:Gem::Dependency
484
498
  name: decidim-results
485
499
  requirement: !ruby/object:Gem::Requirement
486
500
  requirements:
487
501
  - - '='
488
502
  - !ruby/object:Gem::Version
489
- version: 0.0.8.1
503
+ version: 0.1.0
490
504
  type: :development
491
505
  prerelease: false
492
506
  version_requirements: !ruby/object:Gem::Requirement
493
507
  requirements:
494
508
  - - '='
495
509
  - !ruby/object:Gem::Version
496
- version: 0.0.8.1
510
+ version: 0.1.0
497
511
  description: Adds core features so other engines can hook into the framework.
498
512
  email:
499
513
  - josepjaume@gmail.com
@@ -599,7 +613,6 @@ files:
599
613
  - app/assets/stylesheets/decidim/utils/_mixins.scss
600
614
  - app/assets/stylesheets/decidim/utils/_settings.scss
601
615
  - app/assets/stylesheets/decidim/utils/_toggle-expand.scss
602
- - app/assets/stylesheets/decidim/widget.scss.erb
603
616
  - app/commands/decidim/authorize_user.rb
604
617
  - app/commands/decidim/create_omniauth_registration.rb
605
618
  - app/commands/decidim/create_registration.rb
@@ -681,6 +694,7 @@ files:
681
694
  - app/mailers/concerns/decidim/localised_mailer.rb
682
695
  - app/mailers/decidim/application_mailer.rb
683
696
  - app/mailers/decidim/decidim_devise_mailer.rb
697
+ - app/mailers/decidim/export_mailer.rb
684
698
  - app/mailers/decidim/newsletter_mailer.rb
685
699
  - app/mailers/decidim/reported_mailer.rb
686
700
  - app/middleware/decidim/current_organization.rb
@@ -706,10 +720,12 @@ files:
706
720
  - app/models/decidim/user.rb
707
721
  - app/models/decidim/user_group.rb
708
722
  - app/models/decidim/user_group_membership.rb
723
+ - app/presenters/decidim/home_stats_presenter.rb
709
724
  - app/queries/decidim/highlighted_participatory_processes.rb
710
725
  - app/queries/decidim/organization_participatory_processes.rb
711
726
  - app/queries/decidim/promoted_participatory_processes.rb
712
727
  - app/queries/decidim/public_participatory_processes.rb
728
+ - app/queries/decidim/stats_users_count.rb
713
729
  - app/services/decidim/action_authorizer.rb
714
730
  - app/services/decidim/authorization_handler.rb
715
731
  - app/services/decidim/public_processes.rb
@@ -748,6 +764,7 @@ files:
748
764
  - app/views/decidim/devise/sessions/new.html.erb
749
765
  - app/views/decidim/devise/shared/_links.html.erb
750
766
  - app/views/decidim/devise/shared/_omniauth_buttons.html.erb
767
+ - app/views/decidim/export_mailer/export.html.erb
751
768
  - app/views/decidim/newsletter_mailer/newsletter.html.erb
752
769
  - app/views/decidim/notifications_settings/show.html.erb
753
770
  - app/views/decidim/own_user_groups/index.html.erb
@@ -937,12 +954,18 @@ files:
937
954
  - lib/decidim/core/test/shared_examples/reports_examples.rb
938
955
  - lib/decidim/core/version.rb
939
956
  - lib/decidim/devise_failure_app.rb
957
+ - lib/decidim/exporters.rb
958
+ - lib/decidim/exporters/csv.rb
959
+ - lib/decidim/exporters/export_data.rb
960
+ - lib/decidim/exporters/exporter.rb
961
+ - lib/decidim/exporters/json.rb
940
962
  - lib/decidim/faker/localized.rb
941
963
  - lib/decidim/feature_manifest.rb
942
964
  - lib/decidim/feature_validator.rb
943
965
  - lib/decidim/features.rb
944
966
  - lib/decidim/features/namer.rb
945
967
  - lib/decidim/features/settings_manifest.rb
968
+ - lib/decidim/file_zipper.rb
946
969
  - lib/decidim/filter_form_builder.rb
947
970
  - lib/decidim/form_builder.rb
948
971
  - lib/decidim/has_attachments.rb
@@ -956,6 +979,7 @@ files:
956
979
  - lib/decidim/reportable.rb
957
980
  - lib/decidim/resource_manifest.rb
958
981
  - lib/decidim/resourceable.rb
982
+ - lib/decidim/stats_registry.rb
959
983
  - lib/decidim/translatable_attributes.rb
960
984
  - lib/devise/models/decidim_validatable.rb
961
985
  - lib/tasks/decidim_tasks.rake