decidim-meetings 0.10.1 → 0.11.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/config/admin/decidim_meetings_manifest.js +1 -0
  4. data/app/assets/javascripts/decidim/meetings/admin/meetings_form.js.es6 +78 -0
  5. data/app/assets/javascripts/decidim/meetings/admin/registrations_form.js.es6 +9 -7
  6. data/app/cells/decidim/meetings/meeting_cell.rb +71 -0
  7. data/app/cells/decidim/meetings/meeting_list_item/show.erb +14 -0
  8. data/app/cells/decidim/meetings/meeting_list_item_cell.rb +26 -0
  9. data/app/cells/decidim/meetings/meeting_m/header.erb +5 -0
  10. data/app/cells/decidim/meetings/meeting_m/show.erb +21 -0
  11. data/app/cells/decidim/meetings/meeting_m_cell.rb +17 -0
  12. data/app/commands/decidim/meetings/admin/copy_meeting.rb +82 -0
  13. data/app/commands/decidim/meetings/admin/create_meeting.rb +3 -1
  14. data/app/commands/decidim/meetings/admin/export_meeting_registrations.rb +44 -0
  15. data/app/commands/decidim/meetings/admin/update_meeting.rb +1 -0
  16. data/app/commands/decidim/meetings/admin/update_registrations.rb +1 -0
  17. data/app/commands/decidim/meetings/join_meeting.rb +1 -1
  18. data/app/commands/decidim/meetings/leave_meeting.rb +1 -1
  19. data/app/controllers/decidim/meetings/admin/application_controller.rb +3 -3
  20. data/app/controllers/decidim/meetings/admin/attachment_collections_controller.rb +2 -2
  21. data/app/controllers/decidim/meetings/admin/attachments_controller.rb +1 -1
  22. data/app/controllers/decidim/meetings/admin/invites_controller.rb +1 -1
  23. data/app/controllers/decidim/meetings/admin/meeting_closes_controller.rb +1 -1
  24. data/app/controllers/decidim/meetings/admin/meeting_copies_controller.rb +43 -0
  25. data/app/controllers/decidim/meetings/admin/meetings_controller.rb +10 -2
  26. data/app/controllers/decidim/meetings/admin/registrations_controller.rb +6 -5
  27. data/app/controllers/decidim/meetings/application_controller.rb +2 -2
  28. data/app/controllers/decidim/meetings/meeting_widgets_controller.rb +1 -1
  29. data/app/controllers/decidim/meetings/meetings_controller.rb +2 -2
  30. data/app/controllers/decidim/meetings/registrations_controller.rb +1 -1
  31. data/app/forms/decidim/meetings/admin/meeting_copy_form.rb +54 -0
  32. data/app/forms/decidim/meetings/admin/meeting_form.rb +17 -6
  33. data/app/forms/decidim/meetings/admin/meeting_registrations_form.rb +10 -1
  34. data/app/forms/decidim/meetings/admin/meeting_service_form.rb +23 -0
  35. data/app/helpers/decidim/meetings/admin/application_helper.rb +4 -0
  36. data/app/mailers/decidim/meetings/admin/invite_join_meeting_mailer.rb +1 -1
  37. data/app/models/decidim/meetings/abilities/current_user_ability.rb +6 -6
  38. data/app/models/decidim/meetings/meeting.rb +14 -8
  39. data/app/presenters/decidim/meetings/admin_log/meeting_presenter.rb +1 -1
  40. data/app/services/decidim/meetings/meeting_search.rb +2 -2
  41. data/app/types/decidim/meetings/meeting_type.rb +38 -0
  42. data/app/types/decidim/meetings/meetings_type.rb +32 -0
  43. data/app/views/decidim/meetings/admin/invite_join_meeting_mailer/invite.html.erb +1 -1
  44. data/app/views/decidim/meetings/admin/invites/new.html.erb +3 -3
  45. data/app/views/decidim/meetings/admin/meeting_closes/_form.html.erb +2 -3
  46. data/app/views/decidim/meetings/admin/meeting_closes/edit.html.erb +2 -2
  47. data/app/views/decidim/meetings/admin/meeting_copies/_form.html.erb +42 -0
  48. data/app/views/decidim/meetings/admin/meeting_copies/new.html.erb +7 -0
  49. data/app/views/decidim/meetings/admin/meetings/_form.html.erb +15 -11
  50. data/app/views/decidim/meetings/admin/meetings/_service.html.erb +48 -0
  51. data/app/views/decidim/meetings/admin/meetings/_services.html.erb +25 -0
  52. data/app/views/decidim/meetings/admin/meetings/edit.html.erb +2 -3
  53. data/app/views/decidim/meetings/admin/meetings/index.html.erb +13 -9
  54. data/app/views/decidim/meetings/admin/meetings/new.html.erb +2 -2
  55. data/app/views/decidim/meetings/admin/registrations/_form.html.erb +7 -2
  56. data/app/views/decidim/meetings/admin/registrations/edit.html.erb +2 -3
  57. data/app/views/decidim/meetings/meetings/_filters.html.erb +2 -2
  58. data/app/views/decidim/meetings/meetings/_filters_small_view.html.erb +1 -1
  59. data/app/views/decidim/meetings/meetings/_meetings.html.erb +1 -18
  60. data/app/views/decidim/meetings/meetings/_registration_confirm.html.erb +2 -2
  61. data/app/views/decidim/meetings/meetings/index.html.erb +3 -3
  62. data/app/views/decidim/meetings/meetings/show.html.erb +21 -4
  63. data/app/views/decidim/participatory_processes/participatory_process_groups/_highlighted_meetings.html.erb +2 -2
  64. data/app/views/decidim/participatory_spaces/_highlighted_meetings.html.erb +4 -4
  65. data/app/views/decidim/participatory_spaces/_meeting.html.erb +1 -14
  66. data/app/views/devise/mailer/join_meeting.html.erb +1 -1
  67. data/app/views/devise/mailer/join_meeting.text.erb +1 -1
  68. data/config/locales/ca.yml +35 -12
  69. data/config/locales/en.yml +35 -12
  70. data/config/locales/es.yml +35 -12
  71. data/config/locales/eu.yml +35 -12
  72. data/config/locales/fi.yml +35 -12
  73. data/config/locales/fr.yml +35 -12
  74. data/config/locales/gl.yml +35 -12
  75. data/config/locales/it.yml +35 -12
  76. data/config/locales/nl.yml +73 -50
  77. data/config/locales/pl.yml +35 -12
  78. data/config/locales/pt-BR.yml +35 -12
  79. data/config/locales/pt.yml +35 -12
  80. data/config/locales/ru.yml +0 -3
  81. data/config/locales/sv.yml +35 -12
  82. data/config/locales/uk.yml +0 -3
  83. data/db/migrate/20180305133634_rename_features_to_components_at_meetings.rb +11 -0
  84. data/db/migrate/20180326082611_add_fields_for_registrations.rb +7 -0
  85. data/db/migrate/20180407110934_add_services_to_meetings.rb +7 -0
  86. data/lib/decidim/meetings.rb +2 -1
  87. data/lib/decidim/meetings/admin_engine.rb +1 -0
  88. data/lib/decidim/meetings/{feature.rb → component.rb} +27 -19
  89. data/lib/decidim/meetings/engine.rb +27 -4
  90. data/lib/decidim/meetings/test/factories.rb +10 -3
  91. data/lib/decidim/meetings/version.rb +1 -1
  92. data/lib/decidim/meetings/view_model.rb +12 -0
  93. metadata +65 -15
@@ -26,9 +26,6 @@ uk:
26
26
  meeting_closed:
27
27
  email_intro: 'Зустріч "%{resource_title}" було завершено. Ви можете ознайомитися з підсумками на сторінці зустрічі:'
28
28
  email_outro: Ви отримали це сповіщення, оскільки ви стежите за зустріччю "%{resource_title}". Ви можете припинити стежити за нею, перейшовши за наведеним вище посиланням.
29
- features:
30
- meetings:
31
- name: Зустрічі
32
29
  meetings:
33
30
  actions:
34
31
  attachment_collections: Збірки
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ class RenameFeaturesToComponentsAtMeetings < ActiveRecord::Migration[5.1]
4
+ def change
5
+ rename_column :decidim_meetings_meetings, :decidim_feature_id, :decidim_component_id
6
+
7
+ if index_name_exists?(:decidim_meetings_meetings, "index_decidim_meetings_meetings_on_decidim_feature_id")
8
+ rename_index :decidim_meetings_meetings, "index_decidim_meetings_meetings_on_decidim_feature_id", "index_decidim_meetings_meetings_on_decidim_component_id"
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddFieldsForRegistrations < ActiveRecord::Migration[5.1]
4
+ def change
5
+ add_column :decidim_meetings_meetings, :reserved_slots, :integer, null: false, default: 0
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddServicesToMeetings < ActiveRecord::Migration[5.1]
4
+ def change
5
+ add_column :decidim_meetings_meetings, :services, :jsonb, default: []
6
+ end
7
+ end
@@ -3,10 +3,11 @@
3
3
  require "decidim/meetings/admin"
4
4
  require "decidim/meetings/engine"
5
5
  require "decidim/meetings/admin_engine"
6
- require "decidim/meetings/feature"
6
+ require "decidim/meetings/component"
7
7
 
8
8
  module Decidim
9
9
  # Base module for this engine.
10
10
  module Meetings
11
+ autoload :ViewModel, "decidim/meetings/view_model"
11
12
  end
12
13
  end
@@ -21,6 +21,7 @@ module Decidim
21
21
  end
22
22
  resources :attachment_collections
23
23
  resources :attachments
24
+ resources :copies, controller: "meeting_copies", only: [:new, :create]
24
25
  end
25
26
  root to: "meetings#index"
26
27
  end
@@ -1,43 +1,47 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "decidim/features/namer"
3
+ require "decidim/components/namer"
4
4
 
5
- Decidim.register_feature(:meetings) do |feature|
6
- feature.engine = Decidim::Meetings::Engine
7
- feature.admin_engine = Decidim::Meetings::AdminEngine
8
- feature.icon = "decidim/meetings/icon.svg"
5
+ Decidim.register_component(:meetings) do |component|
6
+ component.engine = Decidim::Meetings::Engine
7
+ component.admin_engine = Decidim::Meetings::AdminEngine
8
+ component.icon = "decidim/meetings/icon.svg"
9
+ component.card = "decidim/meetings/meeting"
9
10
 
10
- feature.on(:before_destroy) do |instance|
11
- raise StandardError, "Can't remove this feature" if Decidim::Meetings::Meeting.where(feature: instance).any?
11
+ component.query_type = "Decidim::Meetings::MeetingsType"
12
+
13
+ component.on(:before_destroy) do |instance|
14
+ raise StandardError, "Can't remove this component" if Decidim::Meetings::Meeting.where(component: instance).any?
12
15
  end
13
16
 
14
- feature.register_resource do |resource|
17
+ component.register_resource do |resource|
15
18
  resource.model_class_name = "Decidim::Meetings::Meeting"
16
19
  resource.template = "decidim/meetings/meetings/linked_meetings"
17
20
  end
18
21
 
19
- feature.register_stat :meetings_count, primary: true, priority: Decidim::StatsRegistry::MEDIUM_PRIORITY do |features, start_at, end_at|
20
- meetings = Decidim::Meetings::Meeting.where(feature: features)
22
+ component.register_stat :meetings_count, primary: true, priority: Decidim::StatsRegistry::MEDIUM_PRIORITY do |components, start_at, end_at|
23
+ meetings = Decidim::Meetings::Meeting.where(component: components)
21
24
  meetings = meetings.where("created_at >= ?", start_at) if start_at.present?
22
25
  meetings = meetings.where("created_at <= ?", end_at) if end_at.present?
23
26
  meetings.count
24
27
  end
25
28
 
26
- feature.actions = %w(join)
29
+ component.actions = %w(join)
27
30
 
28
- feature.settings(:global) do |settings|
31
+ component.settings(:global) do |settings|
29
32
  settings.attribute :announcement, type: :text, translated: true, editor: true
33
+ settings.attribute :default_registration_terms, type: :text, translated: true, editor: true
30
34
  settings.attribute :comments_enabled, type: :boolean, default: true
31
35
  end
32
36
 
33
- feature.settings(:step) do |settings|
37
+ component.settings(:step) do |settings|
34
38
  settings.attribute :announcement, type: :text, translated: true, editor: true
35
39
  settings.attribute :comments_blocked, type: :boolean, default: false
36
40
  end
37
41
 
38
- feature.seeds do |participatory_space|
39
- feature = Decidim::Feature.create!(
40
- name: Decidim::Features::Namer.new(participatory_space.organization.available_locales, :meetings).i18n_name,
42
+ component.seeds do |participatory_space|
43
+ component = Decidim::Component.create!(
44
+ name: Decidim::Components::Namer.new(participatory_space.organization.available_locales, :meetings).i18n_name,
41
45
  published_at: Time.current,
42
46
  manifest_name: :meetings,
43
47
  participatory_space: participatory_space
@@ -53,7 +57,7 @@ Decidim.register_feature(:meetings) do |feature|
53
57
 
54
58
  2.times do
55
59
  meeting = Decidim::Meetings::Meeting.create!(
56
- feature: feature,
60
+ component: component,
57
61
  scope: Faker::Boolean.boolean(0.5) ? global : scopes.sample,
58
62
  category: participatory_space.categories.sample,
59
63
  title: Decidim::Faker::Localized.sentence(2),
@@ -71,7 +75,11 @@ Decidim.register_feature(:meetings) do |feature|
71
75
  available_slots: (10..50).step(10).to_a.sample,
72
76
  registration_terms: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
73
77
  Decidim::Faker::Localized.paragraph(3)
74
- end
78
+ end,
79
+ services: [
80
+ { title: Decidim::Faker::Localized.sentence(2), description: Decidim::Faker::Localized.sentence(5) },
81
+ { title: Decidim::Faker::Localized.sentence(2), description: Decidim::Faker::Localized.sentence(5) }
82
+ ]
75
83
  )
76
84
 
77
85
  2.times do |n|
@@ -84,7 +92,7 @@ Decidim.register_feature(:meetings) do |feature|
84
92
  password_confirmation: "password1234",
85
93
  name: name,
86
94
  nickname: Faker::Twitter.unique.screen_name,
87
- organization: feature.organization,
95
+ organization: component.organization,
88
96
  tos_agreement: "1",
89
97
  confirmed_at: Time.current,
90
98
  personal_url: Faker::Internet.url,
@@ -4,6 +4,9 @@ require "searchlight"
4
4
  require "kaminari"
5
5
  require "jquery-tmpl-rails"
6
6
  require "icalendar"
7
+ require "cells/rails"
8
+ require "cells-erb"
9
+ require "cell/partial"
7
10
 
8
11
  module Decidim
9
12
  module Meetings
@@ -33,8 +36,8 @@ module Decidim
33
36
 
34
37
  initializer "decidim_meetings.view_hooks" do
35
38
  Decidim.view_hooks.register(:participatory_space_highlighted_elements, priority: Decidim::ViewHooks::HIGH_PRIORITY) do |view_context|
36
- published_features = Decidim::Feature.where(participatory_space: view_context.current_participatory_space).published
37
- meetings = Decidim::Meetings::Meeting.where(feature: published_features)
39
+ published_components = Decidim::Component.where(participatory_space: view_context.current_participatory_space).published
40
+ meetings = Decidim::Meetings::Meeting.where(component: published_components)
38
41
 
39
42
  next unless meetings.any?
40
43
 
@@ -49,8 +52,8 @@ module Decidim
49
52
 
50
53
  if defined? Decidim::ParticipatoryProcesses
51
54
  Decidim::ParticipatoryProcesses.view_hooks.register(:process_group_highlighted_elements, priority: Decidim::ViewHooks::HIGH_PRIORITY) do |view_context|
52
- published_features = Decidim::Feature.where(participatory_space: view_context.participatory_processes).published
53
- meetings = Decidim::Meetings::Meeting.where(feature: published_features)
55
+ published_components = Decidim::Component.where(participatory_space: view_context.participatory_processes).published
56
+ meetings = Decidim::Meetings::Meeting.where(component: published_components)
54
57
 
55
58
  next unless meetings.any?
56
59
 
@@ -63,6 +66,26 @@ module Decidim
63
66
  )
64
67
  end
65
68
  end
69
+
70
+ Decidim.view_hooks.register(:assembly_meetings, priority: Decidim::ViewHooks::HIGH_PRIORITY) do |view_context|
71
+ published_components = Decidim::Component.where(participatory_space: view_context.current_participatory_space).published
72
+ meetings = Decidim::Meetings::Meeting.where(component: published_components)
73
+
74
+ next unless meetings.any?
75
+
76
+ view_context.render(
77
+ partial: "decidim/participatory_spaces/highlighted_meetings",
78
+ locals: {
79
+ past_meetings: meetings.past.order(end_time: :desc, start_time: :desc).limit(3),
80
+ upcoming_meetings: meetings.upcoming.order(:start_time, :end_time).limit(3)
81
+ }
82
+ )
83
+ end
84
+ end
85
+
86
+ initializer "decidim_meetings.add_cells_view_paths" do
87
+ Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Meetings::Engine.root}/app/cells")
88
+ Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Meetings::Engine.root}/app/views") # for partials
66
89
  end
67
90
  end
68
91
  end
@@ -4,8 +4,8 @@ require "decidim/core/test/factories"
4
4
  require "decidim/participatory_processes/test/factories"
5
5
 
6
6
  FactoryBot.define do
7
- factory :meeting_feature, parent: :feature do
8
- name { Decidim::Features::Namer.new(participatory_space.organization.available_locales, :meetings).i18n_name }
7
+ factory :meeting_component, parent: :component do
8
+ name { Decidim::Components::Namer.new(participatory_space.organization.available_locales, :meetings).i18n_name }
9
9
  manifest_name :meetings
10
10
  participatory_space { create(:participatory_process, :with_steps, organization: organization) }
11
11
  end
@@ -20,7 +20,13 @@ FactoryBot.define do
20
20
  longitude { Faker::Address.longitude }
21
21
  start_time { 1.day.from_now }
22
22
  end_time { start_time.advance(hours: 2) }
23
- feature { build(:feature, manifest_name: "meetings") }
23
+ services do
24
+ [
25
+ { title: Decidim::Faker::Localized.sentence(2), description: Decidim::Faker::Localized.sentence(5) },
26
+ { title: Decidim::Faker::Localized.sentence(2), description: Decidim::Faker::Localized.sentence(5) }
27
+ ]
28
+ end
29
+ component { build(:component, manifest_name: "meetings") }
24
30
 
25
31
  trait :closed do
26
32
  closing_report { Decidim::Faker::Localized.sentence(3) }
@@ -33,6 +39,7 @@ FactoryBot.define do
33
39
  trait :with_registrations_enabled do
34
40
  registrations_enabled { true }
35
41
  available_slots { 10 }
42
+ reserved_slots { 4 }
36
43
  registration_terms { Decidim::Faker::Localized.sentence(3) }
37
44
  end
38
45
 
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-meetings version.
5
5
  module Meetings
6
6
  def self.version
7
- "0.10.1"
7
+ "0.11.0.pre1"
8
8
  end
9
9
  end
10
10
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Meetings
5
+ class ViewModel < Decidim::ViewModel
6
+ include TranslatableAttributes
7
+ include LayoutHelper
8
+ include Decidim::Meetings::MeetingsHelper
9
+ include Decidim::SanitizeHelper
10
+ end
11
+ end
12
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-meetings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.11.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,22 +10,50 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-04-17 00:00:00.000000000 Z
13
+ date: 2018-04-26 00:00:00.000000000 Z
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: cells-erb
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: 0.1.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: 0.1.0
29
+ - !ruby/object:Gem::Dependency
30
+ name: cells-rails
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: 0.0.8
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: 0.0.8
15
43
  - !ruby/object:Gem::Dependency
16
44
  name: decidim-core
17
45
  requirement: !ruby/object:Gem::Requirement
18
46
  requirements:
19
47
  - - '='
20
48
  - !ruby/object:Gem::Version
21
- version: 0.10.1
49
+ version: 0.11.0.pre1
22
50
  type: :runtime
23
51
  prerelease: false
24
52
  version_requirements: !ruby/object:Gem::Requirement
25
53
  requirements:
26
54
  - - '='
27
55
  - !ruby/object:Gem::Version
28
- version: 0.10.1
56
+ version: 0.11.0.pre1
29
57
  - !ruby/object:Gem::Dependency
30
58
  name: httparty
31
59
  requirement: !ruby/object:Gem::Requirement
@@ -102,56 +130,56 @@ dependencies:
102
130
  requirements:
103
131
  - - '='
104
132
  - !ruby/object:Gem::Version
105
- version: 0.10.1
133
+ version: 0.11.0.pre1
106
134
  type: :development
107
135
  prerelease: false
108
136
  version_requirements: !ruby/object:Gem::Requirement
109
137
  requirements:
110
138
  - - '='
111
139
  - !ruby/object:Gem::Version
112
- version: 0.10.1
140
+ version: 0.11.0.pre1
113
141
  - !ruby/object:Gem::Dependency
114
142
  name: decidim-assemblies
115
143
  requirement: !ruby/object:Gem::Requirement
116
144
  requirements:
117
145
  - - '='
118
146
  - !ruby/object:Gem::Version
119
- version: 0.10.1
147
+ version: 0.11.0.pre1
120
148
  type: :development
121
149
  prerelease: false
122
150
  version_requirements: !ruby/object:Gem::Requirement
123
151
  requirements:
124
152
  - - '='
125
153
  - !ruby/object:Gem::Version
126
- version: 0.10.1
154
+ version: 0.11.0.pre1
127
155
  - !ruby/object:Gem::Dependency
128
156
  name: decidim-dev
129
157
  requirement: !ruby/object:Gem::Requirement
130
158
  requirements:
131
159
  - - '='
132
160
  - !ruby/object:Gem::Version
133
- version: 0.10.1
161
+ version: 0.11.0.pre1
134
162
  type: :development
135
163
  prerelease: false
136
164
  version_requirements: !ruby/object:Gem::Requirement
137
165
  requirements:
138
166
  - - '='
139
167
  - !ruby/object:Gem::Version
140
- version: 0.10.1
168
+ version: 0.11.0.pre1
141
169
  - !ruby/object:Gem::Dependency
142
170
  name: decidim-participatory_processes
143
171
  requirement: !ruby/object:Gem::Requirement
144
172
  requirements:
145
173
  - - '='
146
174
  - !ruby/object:Gem::Version
147
- version: 0.10.1
175
+ version: 0.11.0.pre1
148
176
  type: :development
149
177
  prerelease: false
150
178
  version_requirements: !ruby/object:Gem::Requirement
151
179
  requirements:
152
180
  - - '='
153
181
  - !ruby/object:Gem::Version
154
- version: 0.10.1
182
+ version: 0.11.0.pre1
155
183
  description: A meetings component for decidim's participatory spaces.
156
184
  email:
157
185
  - josepjaume@gmail.com
@@ -165,10 +193,19 @@ files:
165
193
  - Rakefile
166
194
  - app/assets/config/admin/decidim_meetings_manifest.js
167
195
  - app/assets/images/decidim/meetings/icon.svg
196
+ - app/assets/javascripts/decidim/meetings/admin/meetings_form.js.es6
168
197
  - app/assets/javascripts/decidim/meetings/admin/registrations_form.js.es6
198
+ - app/cells/decidim/meetings/meeting_cell.rb
199
+ - app/cells/decidim/meetings/meeting_list_item/show.erb
200
+ - app/cells/decidim/meetings/meeting_list_item_cell.rb
201
+ - app/cells/decidim/meetings/meeting_m/header.erb
202
+ - app/cells/decidim/meetings/meeting_m/show.erb
203
+ - app/cells/decidim/meetings/meeting_m_cell.rb
169
204
  - app/commands/decidim/meetings/admin/close_meeting.rb
205
+ - app/commands/decidim/meetings/admin/copy_meeting.rb
170
206
  - app/commands/decidim/meetings/admin/create_meeting.rb
171
207
  - app/commands/decidim/meetings/admin/destroy_meeting.rb
208
+ - app/commands/decidim/meetings/admin/export_meeting_registrations.rb
172
209
  - app/commands/decidim/meetings/admin/invite_user_to_join_meeting.rb
173
210
  - app/commands/decidim/meetings/admin/update_meeting.rb
174
211
  - app/commands/decidim/meetings/admin/update_registrations.rb
@@ -179,6 +216,7 @@ files:
179
216
  - app/controllers/decidim/meetings/admin/attachments_controller.rb
180
217
  - app/controllers/decidim/meetings/admin/invites_controller.rb
181
218
  - app/controllers/decidim/meetings/admin/meeting_closes_controller.rb
219
+ - app/controllers/decidim/meetings/admin/meeting_copies_controller.rb
182
220
  - app/controllers/decidim/meetings/admin/meetings_controller.rb
183
221
  - app/controllers/decidim/meetings/admin/registrations_controller.rb
184
222
  - app/controllers/decidim/meetings/application_controller.rb
@@ -192,9 +230,11 @@ files:
192
230
  - app/events/decidim/meetings/upcoming_meeting_event.rb
193
231
  - app/events/decidim/meetings/update_meeting_event.rb
194
232
  - app/forms/decidim/meetings/admin/close_meeting_form.rb
233
+ - app/forms/decidim/meetings/admin/meeting_copy_form.rb
195
234
  - app/forms/decidim/meetings/admin/meeting_form.rb
196
235
  - app/forms/decidim/meetings/admin/meeting_registration_invite_form.rb
197
236
  - app/forms/decidim/meetings/admin/meeting_registrations_form.rb
237
+ - app/forms/decidim/meetings/admin/meeting_service_form.rb
198
238
  - app/helpers/decidim/meetings/admin/application_helper.rb
199
239
  - app/helpers/decidim/meetings/application_helper.rb
200
240
  - app/helpers/decidim/meetings/map_helper.rb
@@ -209,12 +249,18 @@ files:
209
249
  - app/presenters/decidim/meetings/admin_log/meeting_presenter.rb
210
250
  - app/serializers/decidim/meetings/registration_serializer.rb
211
251
  - app/services/decidim/meetings/meeting_search.rb
252
+ - app/types/decidim/meetings/meeting_type.rb
253
+ - app/types/decidim/meetings/meetings_type.rb
212
254
  - app/views/decidim/meetings/admin/invite_join_meeting_mailer/invite.html.erb
213
255
  - app/views/decidim/meetings/admin/invites/_form.html.erb
214
256
  - app/views/decidim/meetings/admin/invites/new.html.erb
215
257
  - app/views/decidim/meetings/admin/meeting_closes/_form.html.erb
216
258
  - app/views/decidim/meetings/admin/meeting_closes/edit.html.erb
259
+ - app/views/decidim/meetings/admin/meeting_copies/_form.html.erb
260
+ - app/views/decidim/meetings/admin/meeting_copies/new.html.erb
217
261
  - app/views/decidim/meetings/admin/meetings/_form.html.erb
262
+ - app/views/decidim/meetings/admin/meetings/_service.html.erb
263
+ - app/views/decidim/meetings/admin/meetings/_services.html.erb
218
264
  - app/views/decidim/meetings/admin/meetings/edit.html.erb
219
265
  - app/views/decidim/meetings/admin/meetings/index.html.erb
220
266
  - app/views/decidim/meetings/admin/meetings/new.html.erb
@@ -261,15 +307,19 @@ files:
261
307
  - db/migrate/20170612101925_migrate_meetings_category.rb
262
308
  - db/migrate/20170810120836_add_registration_attributes_to_meetings.rb
263
309
  - db/migrate/20170810131100_create_registrations.rb
310
+ - db/migrate/20180305133634_rename_features_to_components_at_meetings.rb
311
+ - db/migrate/20180326082611_add_fields_for_registrations.rb
312
+ - db/migrate/20180407110934_add_services_to_meetings.rb
264
313
  - lib/decidim/meetings.rb
265
314
  - lib/decidim/meetings/admin.rb
266
315
  - lib/decidim/meetings/admin_engine.rb
316
+ - lib/decidim/meetings/component.rb
267
317
  - lib/decidim/meetings/engine.rb
268
- - lib/decidim/meetings/feature.rb
269
318
  - lib/decidim/meetings/seeds/Exampledocument.pdf
270
319
  - lib/decidim/meetings/seeds/city.jpeg
271
320
  - lib/decidim/meetings/test/factories.rb
272
321
  - lib/decidim/meetings/version.rb
322
+ - lib/decidim/meetings/view_model.rb
273
323
  homepage: https://github.com/decidim/decidim
274
324
  licenses:
275
325
  - AGPL-3.0
@@ -285,9 +335,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
285
335
  version: '2.3'
286
336
  required_rubygems_version: !ruby/object:Gem::Requirement
287
337
  requirements:
288
- - - ">="
338
+ - - ">"
289
339
  - !ruby/object:Gem::Version
290
- version: '0'
340
+ version: 1.3.1
291
341
  requirements: []
292
342
  rubyforge_project:
293
343
  rubygems_version: 2.7.3