decidim-dev 0.9.3 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/decidim/dummy_resources/dummy_resources_controller.rb +15 -0
  3. data/app/views/decidim/dummy_resources/dummy_resources/foo.html.erb +1 -0
  4. data/app/views/decidim/dummy_resources/dummy_resources/show.html.erb +5 -0
  5. data/config/locales/ca.yml +8 -0
  6. data/config/locales/en.yml +8 -0
  7. data/config/locales/es.yml +8 -0
  8. data/config/locales/eu.yml +8 -0
  9. data/config/locales/fi.yml +8 -0
  10. data/config/locales/fr.yml +8 -0
  11. data/config/locales/gl.yml +8 -0
  12. data/config/locales/it.yml +8 -0
  13. data/config/locales/nl.yml +8 -0
  14. data/config/locales/pl.yml +8 -0
  15. data/config/locales/pt-BR.yml +8 -0
  16. data/config/locales/pt.yml +8 -0
  17. data/config/locales/sv.yml +8 -0
  18. data/config/locales/uk.yml +8 -0
  19. data/lib/decidim/dev/test/base_spec_helper.rb +0 -2
  20. data/lib/decidim/dev/test/factories.rb +8 -0
  21. data/lib/decidim/dev/test/promoted_participatory_processes_shared_examples.rb +35 -28
  22. data/lib/decidim/dev/test/rspec_support/attachment_helpers.rb +12 -0
  23. data/lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb +3 -3
  24. data/lib/decidim/dev/test/rspec_support/feature.rb +31 -43
  25. data/lib/decidim/dev/test/rspec_support/html_matchers.rb +10 -0
  26. data/lib/decidim/dev/test/rspec_support/orderly_matchers.rb +13 -0
  27. data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +6 -1
  28. data/lib/decidim/dev/test/spec_helper.rb +5 -0
  29. data/lib/decidim/dev/version.rb +1 -1
  30. data/lib/tasks/generators.rake +49 -0
  31. metadata +19 -41
  32. data/lib/tasks/test_app.rake +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69020a506e9b60005c7d504ca7f86cab655e2456e89cf44660f3ece9565b33e8
4
- data.tar.gz: 8ca2d1317636d98b37e2211d8d9af4cd7f7def58a074a9733e940ffe2013d576
3
+ metadata.gz: 61000d6c000d91f584ba0ba139c191f6a3c1317acb1dea69f799e2c72097093c
4
+ data.tar.gz: 4a4e2065ed42c8d52c9208c4a3a2039175a60af90aadb483621080b2206cefcb
5
5
  SHA512:
6
- metadata.gz: 71c413523c64c6405a8ef8ac9343d28c13c0dac0ab1541e5f6c437b70db28498740350b8fc03461d7c9765040d5b748f4c780e3cb64039284c7c49f59f63a00e
7
- data.tar.gz: 48dd8744d91701710ba4c6734e06196eafbf3afeabd3a3b1901a39516eab796b6263d8025da2916cb6c23c20627010c408b044fbeb17f18bb2584547d6bf2a10
6
+ metadata.gz: 23d55b98bfea4cd511efe5f7fd4b58fdf7fc6e81237aba5c49fbc6dcd035c7f1560e0dc44c2cd14a5ad1bff44ca011be98f8c84e985883cd8f67e5704b9f0696
7
+ data.tar.gz: 27989fac63229b30a1ec30179dc150184511e1c968195f435c9c74f5acbb042ed927df84e2800f799cd1fdc3b9fb31d4b98cd68771c113c33e18589c29a21371
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module DummyResources
5
+ class DummyResourcesController < Decidim::Features::BaseController
6
+ helper Decidim::Comments::CommentsHelper
7
+
8
+ skip_authorization_check
9
+
10
+ def show
11
+ @commentable = DummyResources::DummyResource.find(params[:id])
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ <%= inline_comments_for(@commentable) %>
2
+
3
+ <%= action_authorized_link_to :foo, foo_dummy_resource_path(@commentable) do %>
4
+ Foo
5
+ <% end %>
@@ -1,4 +1,12 @@
1
1
  ca:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Creat el
6
+ field: El meu camp
7
+ start_date: Data d'inici
8
+ title: Títol
9
+ updated_at: Actualitzat el
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,5 +1,13 @@
1
1
  ---
2
2
  en:
3
+ activemodel:
4
+ attributes:
5
+ dummy_resource:
6
+ created_at: Created at
7
+ field: My field
8
+ start_date: Start date
9
+ title: Title
10
+ updated_at: Updated at
3
11
  decidim:
4
12
  dummy:
5
13
  admin:
@@ -1,4 +1,12 @@
1
1
  es:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Creado en
6
+ field: Mi campo
7
+ start_date: Fecha de inicio
8
+ title: Título
9
+ updated_at: Actualizado en
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,4 +1,12 @@
1
1
  eu:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Sortutako at
6
+ field: Nire eremua
7
+ start_date: Hasiera data
8
+ title: Izenburua
9
+ updated_at: Eguneratuta
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,4 +1,12 @@
1
1
  fi:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Luotu osoitteessa
6
+ field: Oma kenttä
7
+ start_date: Aloituspäivämäärä
8
+ title: otsikko
9
+ updated_at: Päivitetty klo
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,4 +1,12 @@
1
1
  fr:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Créé à
6
+ field: Mon champ
7
+ start_date: Date de début
8
+ title: Titre
9
+ updated_at: Mis à jour à
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,4 +1,12 @@
1
1
  gl:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Creado en
6
+ field: O meu campo
7
+ start_date: Data de inicio
8
+ title: Título
9
+ updated_at: Actualizado en
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,4 +1,12 @@
1
1
  it:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Creato a
6
+ field: Il mio campo
7
+ start_date: Data d'inizio
8
+ title: Titolo
9
+ updated_at: Aggiornato a
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,4 +1,12 @@
1
1
  nl:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Gemaakt bij
6
+ field: Mijn veld
7
+ start_date: Begin datum
8
+ title: Titel
9
+ updated_at: Bijgewerkt om
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,4 +1,12 @@
1
1
  pl:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Utworzono w
6
+ field: Moja dziedzina
7
+ start_date: Data rozpoczęcia
8
+ title: Tytuł
9
+ updated_at: Zaktualizowano na
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,4 +1,12 @@
1
1
  pt-BR:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Criado em
6
+ field: Meu campo
7
+ start_date: Data de início
8
+ title: Título
9
+ updated_at: Atualizado em
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,4 +1,12 @@
1
1
  pt:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Criado em
6
+ field: Meu campo
7
+ start_date: Data de início
8
+ title: Título
9
+ updated_at: Atualizado em
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,4 +1,12 @@
1
1
  sv:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: Skapad vid
6
+ field: Mitt fält
7
+ start_date: Start datum
8
+ title: Titel
9
+ updated_at: Uppdaterad på
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -1,4 +1,12 @@
1
1
  uk:
2
+ activemodel:
3
+ attributes:
4
+ dummy_resource:
5
+ created_at: 'Створено:'
6
+ field: Моє поле
7
+ start_date: Дата початку
8
+ title: Заголовок
9
+ updated_at: 'Оновлено:'
2
10
  decidim:
3
11
  dummy:
4
12
  admin:
@@ -16,8 +16,6 @@ if ENV["SIMPLECOV"]
16
16
  SimpleCov.command_name File.basename(Dir.pwd)
17
17
  end
18
18
 
19
- require "rails"
20
- require "active_support/core_ext/string"
21
19
  require "decidim/core"
22
20
  require "decidim/core/test"
23
21
  require "decidim/admin/test"
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ FactoryBot.define do
4
+ factory :dummy_feature, parent: :feature do
5
+ name { Decidim::Features::Namer.new(participatory_space.organization.available_locales, :surveys).i18n_name }
6
+ manifest_name :dummy
7
+ end
8
+ end
@@ -22,37 +22,44 @@ shared_examples "with promoted participatory processes" do
22
22
  organization: organization
23
23
  )
24
24
 
25
- last = create(
26
- :participatory_process,
27
- :with_steps,
28
- :published,
29
- :promoted,
30
- organization: organization
31
- )
32
- last.active_step.update_attributes!(end_date: nil)
25
+ last =
26
+ create(
27
+ :participatory_process,
28
+ :with_steps,
29
+ :published,
30
+ :promoted,
31
+ organization: organization
32
+ )
33
33
 
34
- first = create(
35
- :participatory_process,
36
- :with_steps,
37
- :published,
38
- :promoted,
39
- organization: organization,
40
- end_date: Time.current.advance(days: 10)
41
- )
42
- first.active_step.update_attributes!(end_date: Time.current.advance(days: 2))
34
+ last.active_step.update!(end_date: nil)
43
35
 
44
- second = create(
45
- :participatory_process,
46
- :with_steps,
47
- :published,
48
- :promoted,
49
- organization: organization,
50
- end_date: Time.current.advance(days: 8)
51
- )
52
- second.active_step.update_attributes!(end_date: Time.current.advance(days: 4))
36
+ first =
37
+ create(
38
+ :participatory_process,
39
+ :with_steps,
40
+ :published,
41
+ :promoted,
42
+ organization: organization,
43
+ end_date: Time.current.advance(days: 10)
44
+ )
53
45
 
54
- expect(controller.helpers.promoted_participatory_processes)
55
- .to match_array([first, second, last])
46
+ first.active_step.update!(end_date: Time.current.advance(days: 2))
47
+
48
+ second =
49
+ create(
50
+ :participatory_process,
51
+ :with_steps,
52
+ :published,
53
+ :promoted,
54
+ organization: organization,
55
+ end_date: Time.current.advance(days: 8)
56
+ )
57
+
58
+ second.active_step.update!(end_date: Time.current.advance(days: 4))
59
+
60
+ expect(controller.helpers.promoted_participatory_processes).to(
61
+ match_array([first, second, last])
62
+ )
56
63
  end
57
64
  end
58
65
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ # A collection of methods to help dealing with attachments.
4
+ module AttachmentHelpers
5
+ # Gives the file size in an human readable form
6
+ #
7
+ # It is intended to be used to avoid the implementation details, so that the
8
+ # attachment file size presentation can change more easily.
9
+ def attachment_file_size(attachment)
10
+ ActiveSupport::NumberHelper.number_to_human_size(attachment.file_size)
11
+ end
12
+ end
@@ -9,7 +9,7 @@ module Capybara
9
9
  RSpec::Matchers.define :have_scope_picked do |expected|
10
10
  match do |scope_picker|
11
11
  data_picker = scope_picker.data_picker
12
- scope_name = expected ? translated(expected.name) : I18n.t("decidim.scopes.global")
12
+ scope_name = expected ? translated(expected.name) : t("decidim.scopes.global")
13
13
  expect(data_picker).to have_selector(".picker-values div input[value='#{expected&.id || scope_picker.global_value}']", visible: false)
14
14
  expect(data_picker).to have_selector(:xpath, "//div[contains(@class,'picker-values')]/div/a[text()[contains(.,'#{scope_name}')]]")
15
15
  end
@@ -18,7 +18,7 @@ module Capybara
18
18
  RSpec::Matchers.define :have_scope_not_picked do |expected|
19
19
  match do |scope_picker|
20
20
  data_picker = scope_picker.data_picker
21
- scope_name = expected ? translated(expected.name) : I18n.t("decidim.scopes.global")
21
+ scope_name = expected ? translated(expected.name) : t("decidim.scopes.global")
22
22
  expect(data_picker).not_to have_selector(".picker-values div input[value='#{expected&.id || scope_picker.global_value}']", visible: false)
23
23
  expect(data_picker).not_to have_selector(:xpath, "//div[contains(@class,'picker-values')]/div/a[text()[contains(.,'#{scope_name}')]]")
24
24
  end
@@ -83,7 +83,7 @@ module Capybara
83
83
  def scope_picker_browse_scope(scope, back: false)
84
84
  body = find(:xpath, "//body")
85
85
  where = back ? "header" : "content"
86
- scope_name = scope ? translated(scope.name) : I18n.t("decidim.scopes.global")
86
+ scope_name = scope ? translated(scope.name) : t("decidim.scopes.global")
87
87
  expect(body).to have_selector("#data_picker-modal .picker-#{where} a", text: scope_name)
88
88
  body.find("#data_picker-modal .picker-#{where} a", text: scope_name).click
89
89
  end
@@ -4,30 +4,34 @@ require "decidim/feature_validator"
4
4
  require "decidim/comments"
5
5
 
6
6
  module Decidim
7
- # Dummy engine to be able to test components.
8
- class DummyEngine < Rails::Engine
9
- engine_name "dummy"
10
-
11
- routes do
12
- root to: proc { [200, {}, ["DUMMY ENGINE"]] }
13
- resources :dummy_resources, controller: "decidim/dummy_resources"
14
- end
15
- end
16
-
17
- class DummyAdminEngine < Rails::Engine
18
- engine_name "dummy_admin"
19
-
20
- routes do
21
- root to: proc { [200, {}, ["DUMMY ADMIN ENGINE"]] }
22
- end
23
- end
24
-
25
7
  class DummyResourceEvent < Events::BaseEvent
26
8
  include Decidim::Events::EmailEvent
27
9
  include Decidim::Events::NotificationEvent
28
10
  end
29
11
 
30
12
  module DummyResources
13
+ # Dummy engine to be able to test components.
14
+ class DummyEngine < Rails::Engine
15
+ engine_name "dummy"
16
+ isolate_namespace Decidim::DummyResources
17
+
18
+ routes do
19
+ root to: proc { [200, {}, ["DUMMY ENGINE"]] }
20
+
21
+ resources :dummy_resources do
22
+ get :foo, on: :member
23
+ end
24
+ end
25
+ end
26
+
27
+ class DummyAdminEngine < Rails::Engine
28
+ engine_name "dummy_admin"
29
+
30
+ routes do
31
+ root to: proc { [200, {}, ["DUMMY ADMIN ENGINE"]] }
32
+ end
33
+ end
34
+
31
35
  class ApplicationRecord < ActiveRecord::Base
32
36
  self.abstract_class = true
33
37
  end
@@ -38,7 +42,7 @@ module Decidim
38
42
  include Reportable
39
43
  include Authorable
40
44
  include HasCategory
41
- include HasScope
45
+ include ScopableFeature
42
46
  include Decidim::Comments::Commentable
43
47
  include Followable
44
48
  include Traceable
@@ -51,22 +55,6 @@ module Decidim
51
55
  end
52
56
  end
53
57
  end
54
-
55
- class DummyResourcesController < ActionController::Base
56
- helper Decidim::Comments::CommentsHelper
57
- skip_authorization_check
58
-
59
- def show
60
- @commentable = DummyResources::DummyResource.find(params[:id])
61
- render inline: %{
62
- <%= csrf_meta_tags %>
63
- <%= display_flash_messages %>
64
- <div class="reveal" id="loginModal" data-reveal></div>
65
- <%= javascript_include_tag 'application' %>
66
- <%= inline_comments_for(@commentable) %>
67
- }
68
- end
69
- end
70
58
  end
71
59
 
72
60
  class DummySerializer
@@ -82,8 +70,8 @@ class DummySerializer
82
70
  end
83
71
 
84
72
  Decidim.register_feature(:dummy) do |feature|
85
- feature.engine = Decidim::DummyEngine
86
- feature.admin_engine = Decidim::DummyAdminEngine
73
+ feature.engine = Decidim::DummyResources::DummyEngine
74
+ feature.admin_engine = Decidim::DummyResources::DummyAdminEngine
87
75
  feature.icon = "decidim/dummy.svg"
88
76
 
89
77
  feature.actions = %w(foo bar)
@@ -126,18 +114,18 @@ end
126
114
  RSpec.configure do |config|
127
115
  config.before(:suite) do
128
116
  ActiveRecord::Migration.suppress_messages do
129
- unless ActiveRecord::Base.connection.data_source_exists?("decidim_dummy_resources")
130
- ActiveRecord::Migration.create_table :decidim_dummy_resources do |t|
117
+ unless ActiveRecord::Base.connection.data_source_exists?("decidim_dummy_resources_dummy_resources")
118
+ ActiveRecord::Migration.create_table :decidim_dummy_resources_dummy_resources do |t|
131
119
  t.string :title
132
120
  t.text :address
133
121
  t.float :latitude
134
122
  t.float :longitude
135
123
  t.datetime :published_at
136
124
 
137
- t.references :decidim_feature, index: true
138
- t.references :decidim_author, index: true
139
- t.references :decidim_category, index: true
140
- t.references :decidim_scope, index: true
125
+ t.references :decidim_feature, index: false
126
+ t.references :decidim_author, index: false
127
+ t.references :decidim_category, index: false
128
+ t.references :decidim_scope, index: false
141
129
 
142
130
  t.timestamps
143
131
  end
@@ -2,6 +2,16 @@
2
2
 
3
3
  require "rspec-html-matchers"
4
4
 
5
+ RSpec::Matchers.define(:have_equivalent_markup_to) do |expected|
6
+ cleaner = ->(str) { str.gsub(/>[[:space:]]*/, ">").gsub(/[[:space:]]*</, "<").strip }
7
+
8
+ match do |actual|
9
+ cleaner.call(expected) == cleaner.call(actual)
10
+ end
11
+
12
+ diffable
13
+ end
14
+
5
15
  RSpec.configure do |config|
6
16
  config.include RSpecHtmlMatchers
7
17
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec::Matchers.define :appear_before do |later_content|
4
+ match do |earlier_content|
5
+ begin
6
+ page.body.index(earlier_content) < page.body.index(later_content)
7
+ rescue ArgumentError
8
+ raise "Could not locate later content on page: #{later_content}"
9
+ rescue NoMethodError
10
+ raise "Could not locate earlier content on page: #{earlier_content}"
11
+ end
12
+ end
13
+ end
@@ -2,6 +2,11 @@
2
2
 
3
3
  # A collection of methods to help dealing with translated attributes.
4
4
  module TranslationHelpers
5
+ # Allows using the `t` shortcut inside specs just like in views
6
+ def t(key, scope: nil)
7
+ I18n.t(key, scope: scope, raise: true)
8
+ end
9
+
5
10
  # Gives the localized version of the attribute for the given locale. The
6
11
  # locale defaults to the application's default one.
7
12
  #
@@ -79,7 +84,7 @@ module TranslationHelpers
79
84
  def fill_in_i18n_fields(field, tab_selector, localized_values)
80
85
  localized_values.each do |locale, value|
81
86
  within tab_selector do
82
- click_link I18n.with_locale(locale) { I18n.t("name", scope: "locale") }
87
+ click_link I18n.with_locale(locale) { t("name", scope: "locale") }
83
88
  end
84
89
  yield "#{field}_#{locale}", value
85
90
  end
@@ -10,6 +10,8 @@ require "cancan/matchers"
10
10
  require "rectify/rspec"
11
11
  require "wisper/rspec/stub_wisper_publisher"
12
12
  require "db-query-matchers"
13
+ require "action_view/helpers/sanitize_helper"
14
+ require_relative "factories"
13
15
 
14
16
  # Requires supporting files with custom matchers and macros, etc,
15
17
  # in ./rspec_support/ and its subdirectories.
@@ -28,6 +30,9 @@ RSpec.configure do |config|
28
30
  # instead of true.
29
31
  config.use_transactional_fixtures = true
30
32
 
33
+ config.include AttachmentHelpers
31
34
  config.include TranslationHelpers
32
35
  config.include Rectify::RSpec::Helpers
36
+ config.include ActionView::Helpers::SanitizeHelper
37
+ config.include ERB::Util
33
38
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-dev version.
5
5
  module Dev
6
6
  def self.version
7
- "0.9.3"
7
+ "0.10.0"
8
8
  end
9
9
  end
10
10
  end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "generators/decidim/app_generator"
4
+
5
+ namespace :decidim do
6
+ desc "Generates a dummy app for testing in external installations"
7
+ task :generate_external_test_app do
8
+ dummy_app_path = File.expand_path(File.join(Dir.pwd, "spec", "decidim_dummy_app"))
9
+
10
+ sh "rm -fR spec/decidim_dummy_app", verbose: false
11
+
12
+ original_folder = Dir.pwd
13
+
14
+ Decidim::Generators::AppGenerator.start(
15
+ [
16
+ dummy_app_path,
17
+ "--path",
18
+ "../..",
19
+ "--recreate_db",
20
+ "--skip_gemfile",
21
+ "--demo"
22
+ ]
23
+ )
24
+
25
+ Dir.chdir(original_folder)
26
+ end
27
+
28
+ desc "Generates a dummy app for trying out external modules"
29
+ task :generate_external_development_app do
30
+ dummy_app_path = File.expand_path(File.join(Dir.pwd, "development_app"))
31
+
32
+ sh "rm -fR development_app", verbose: false
33
+
34
+ original_folder = Dir.pwd
35
+
36
+ Decidim::Generators::AppGenerator.start(
37
+ [
38
+ dummy_app_path,
39
+ "--path",
40
+ "..",
41
+ "--recreate_db",
42
+ "--seed_db",
43
+ "--demo"
44
+ ]
45
+ )
46
+
47
+ Dir.chdir(original_folder)
48
+ end
49
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.10.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: 2018-02-27 00:00:00.000000000 Z
13
+ date: 2018-03-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capybara
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.9.3
35
+ version: 0.10.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.9.3
42
+ version: 0.10.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: factory_bot_rails
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -110,20 +110,6 @@ dependencies:
110
110
  - - "~>"
111
111
  - !ruby/object:Gem::Version
112
112
  version: 0.9.18
113
- - !ruby/object:Gem::Dependency
114
- name: listen
115
- requirement: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '3.1'
120
- type: :runtime
121
- prerelease: false
122
- version_requirements: !ruby/object:Gem::Requirement
123
- requirements:
124
- - - "~>"
125
- - !ruby/object:Gem::Version
126
- version: '3.1'
127
113
  - !ruby/object:Gem::Dependency
128
114
  name: nokogiri
129
115
  requirement: !ruby/object:Gem::Requirement
@@ -131,6 +117,9 @@ dependencies:
131
117
  - - "~>"
132
118
  - !ruby/object:Gem::Version
133
119
  version: '1.8'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 1.8.2
134
123
  type: :runtime
135
124
  prerelease: false
136
125
  version_requirements: !ruby/object:Gem::Requirement
@@ -138,20 +127,9 @@ dependencies:
138
127
  - - "~>"
139
128
  - !ruby/object:Gem::Version
140
129
  version: '1.8'
141
- - !ruby/object:Gem::Dependency
142
- name: puma
143
- requirement: !ruby/object:Gem::Requirement
144
- requirements:
145
- - - "~>"
146
- - !ruby/object:Gem::Version
147
- version: '3.10'
148
- type: :runtime
149
- prerelease: false
150
- version_requirements: !ruby/object:Gem::Requirement
151
- requirements:
152
- - - "~>"
130
+ - - ">="
153
131
  - !ruby/object:Gem::Version
154
- version: '3.10'
132
+ version: 1.8.2
155
133
  - !ruby/object:Gem::Dependency
156
134
  name: rails-controller-testing
157
135
  requirement: !ruby/object:Gem::Requirement
@@ -200,14 +178,14 @@ dependencies:
200
178
  requirements:
201
179
  - - "~>"
202
180
  - !ruby/object:Gem::Version
203
- version: 0.52.1
181
+ version: 0.53.0
204
182
  type: :runtime
205
183
  prerelease: false
206
184
  version_requirements: !ruby/object:Gem::Requirement
207
185
  requirements:
208
186
  - - "~>"
209
187
  - !ruby/object:Gem::Version
210
- version: 0.52.1
188
+ version: 0.53.0
211
189
  - !ruby/object:Gem::Dependency
212
190
  name: rubocop-rspec
213
191
  requirement: !ruby/object:Gem::Requirement
@@ -215,9 +193,6 @@ dependencies:
215
193
  - - "~>"
216
194
  - !ruby/object:Gem::Version
217
195
  version: '1.21'
218
- - - "<"
219
- - !ruby/object:Gem::Version
220
- version: '1.22'
221
196
  type: :runtime
222
197
  prerelease: false
223
198
  version_requirements: !ruby/object:Gem::Requirement
@@ -225,9 +200,6 @@ dependencies:
225
200
  - - "~>"
226
201
  - !ruby/object:Gem::Version
227
202
  version: '1.21'
228
- - - "<"
229
- - !ruby/object:Gem::Version
230
- version: '1.22'
231
203
  - !ruby/object:Gem::Dependency
232
204
  name: selenium-webdriver
233
205
  requirement: !ruby/object:Gem::Requirement
@@ -296,7 +268,10 @@ files:
296
268
  - README.md
297
269
  - Rakefile
298
270
  - app/assets/images/decidim/dummy.svg
271
+ - app/controllers/decidim/dummy_resources/dummy_resources_controller.rb
299
272
  - app/views/decidim/dummy_resource/_linked_dummys.html.erb
273
+ - app/views/decidim/dummy_resources/dummy_resources/foo.html.erb
274
+ - app/views/decidim/dummy_resources/dummy_resources/show.html.erb
300
275
  - config/locales/ca.yml
301
276
  - config/locales/en.yml
302
277
  - config/locales/es.yml
@@ -326,9 +301,11 @@ files:
326
301
  - lib/decidim/dev/railtie.rb
327
302
  - lib/decidim/dev/test/authorization_shared_examples.rb
328
303
  - lib/decidim/dev/test/base_spec_helper.rb
304
+ - lib/decidim/dev/test/factories.rb
329
305
  - lib/decidim/dev/test/promoted_participatory_processes_shared_examples.rb
330
306
  - lib/decidim/dev/test/rspec_support/action_mailer.rb
331
307
  - lib/decidim/dev/test/rspec_support/active_job.rb
308
+ - lib/decidim/dev/test/rspec_support/attachment_helpers.rb
332
309
  - lib/decidim/dev/test/rspec_support/attachments.rb
333
310
  - lib/decidim/dev/test/rspec_support/authorization.rb
334
311
  - lib/decidim/dev/test/rspec_support/capybara.rb
@@ -341,6 +318,7 @@ files:
341
318
  - lib/decidim/dev/test/rspec_support/geocoder.rb
342
319
  - lib/decidim/dev/test/rspec_support/helpers.rb
343
320
  - lib/decidim/dev/test/rspec_support/html_matchers.rb
321
+ - lib/decidim/dev/test/rspec_support/orderly_matchers.rb
344
322
  - lib/decidim/dev/test/rspec_support/route_helpers.rb
345
323
  - lib/decidim/dev/test/rspec_support/translation_helpers.rb
346
324
  - lib/decidim/dev/test/rspec_support/warden.rb
@@ -348,8 +326,8 @@ files:
348
326
  - lib/decidim/dev/test/rspec_support/wisper.rb
349
327
  - lib/decidim/dev/test/spec_helper.rb
350
328
  - lib/decidim/dev/version.rb
329
+ - lib/tasks/generators.rake
351
330
  - lib/tasks/locale_checker.rake
352
- - lib/tasks/test_app.rake
353
331
  homepage: https://github.com/decidim/decidim
354
332
  licenses:
355
333
  - AGPL-3.0
@@ -370,7 +348,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
370
348
  version: '0'
371
349
  requirements: []
372
350
  rubyforge_project:
373
- rubygems_version: 2.7.3
351
+ rubygems_version: 2.7.6
374
352
  signing_key:
375
353
  specification_version: 4
376
354
  summary: Decidim dev tools
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "generators/decidim/app_generator"
4
-
5
- namespace :decidim do
6
- desc "Generates a dummy app for testing in external installations"
7
- task :generate_external_test_app do
8
- dummy_app_path = File.expand_path(File.join(Dir.pwd, "spec", "decidim_dummy_app"))
9
-
10
- Decidim::Generators::AppGenerator.start(
11
- [
12
- dummy_app_path,
13
- "--path",
14
- "../..",
15
- "--recreate_db",
16
- "--app_const_base=DummyApplication",
17
- "--skip_gemfile",
18
- "--demo"
19
- ]
20
- )
21
- end
22
- end