decidim-dev 0.9.3 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/decidim/dummy_resources/dummy_resources_controller.rb +15 -0
- data/app/views/decidim/dummy_resources/dummy_resources/foo.html.erb +1 -0
- data/app/views/decidim/dummy_resources/dummy_resources/show.html.erb +5 -0
- data/config/locales/ca.yml +8 -0
- data/config/locales/en.yml +8 -0
- data/config/locales/es.yml +8 -0
- data/config/locales/eu.yml +8 -0
- data/config/locales/fi.yml +8 -0
- data/config/locales/fr.yml +8 -0
- data/config/locales/gl.yml +8 -0
- data/config/locales/it.yml +8 -0
- data/config/locales/nl.yml +8 -0
- data/config/locales/pl.yml +8 -0
- data/config/locales/pt-BR.yml +8 -0
- data/config/locales/pt.yml +8 -0
- data/config/locales/sv.yml +8 -0
- data/config/locales/uk.yml +8 -0
- data/lib/decidim/dev/test/base_spec_helper.rb +0 -2
- data/lib/decidim/dev/test/factories.rb +8 -0
- data/lib/decidim/dev/test/promoted_participatory_processes_shared_examples.rb +35 -28
- data/lib/decidim/dev/test/rspec_support/attachment_helpers.rb +12 -0
- data/lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb +3 -3
- data/lib/decidim/dev/test/rspec_support/feature.rb +31 -43
- data/lib/decidim/dev/test/rspec_support/html_matchers.rb +10 -0
- data/lib/decidim/dev/test/rspec_support/orderly_matchers.rb +13 -0
- data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +6 -1
- data/lib/decidim/dev/test/spec_helper.rb +5 -0
- data/lib/decidim/dev/version.rb +1 -1
- data/lib/tasks/generators.rake +49 -0
- metadata +19 -41
- data/lib/tasks/test_app.rake +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61000d6c000d91f584ba0ba139c191f6a3c1317acb1dea69f799e2c72097093c
|
4
|
+
data.tar.gz: 4a4e2065ed42c8d52c9208c4a3a2039175a60af90aadb483621080b2206cefcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 @@
|
|
1
|
+
Foo stuff
|
data/config/locales/ca.yml
CHANGED
data/config/locales/en.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/eu.yml
CHANGED
data/config/locales/fi.yml
CHANGED
data/config/locales/fr.yml
CHANGED
data/config/locales/gl.yml
CHANGED
data/config/locales/it.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/config/locales/pl.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
data/config/locales/pt.yml
CHANGED
data/config/locales/sv.yml
CHANGED
data/config/locales/uk.yml
CHANGED
@@ -22,37 +22,44 @@ shared_examples "with promoted participatory processes" do
|
|
22
22
|
organization: organization
|
23
23
|
)
|
24
24
|
|
25
|
-
last =
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
25
|
+
last =
|
26
|
+
create(
|
27
|
+
:participatory_process,
|
28
|
+
:with_steps,
|
29
|
+
:published,
|
30
|
+
:promoted,
|
31
|
+
organization: organization
|
32
|
+
)
|
33
33
|
|
34
|
-
|
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
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
55
|
-
|
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) :
|
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) :
|
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) :
|
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
|
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?("
|
130
|
-
ActiveRecord::Migration.create_table :
|
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:
|
138
|
-
t.references :decidim_author, index:
|
139
|
-
t.references :decidim_category, index:
|
140
|
-
t.references :decidim_scope, index:
|
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) {
|
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
|
data/lib/decidim/dev/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|
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
|
-
-
|
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:
|
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.
|
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.
|
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.
|
351
|
+
rubygems_version: 2.7.6
|
374
352
|
signing_key:
|
375
353
|
specification_version: 4
|
376
354
|
summary: Decidim dev tools
|
data/lib/tasks/test_app.rake
DELETED
@@ -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
|