decidim-dev 0.24.3 → 0.25.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/decidim/dev/needs_development_tools.rb +25 -0
- data/app/mailers/decidim/dummy_resources/dummy_resource_mailer.rb +8 -2
- data/app/packs/entrypoints/decidim_dev.js +7 -0
- data/app/packs/entrypoints/decidim_dev.scss +1 -0
- data/app/{assets/images/decidim/dummy.svg → packs/images/decidim/decidim_dev_dummy.svg} +0 -0
- data/app/{assets/images/decidim/gamification/badges/test.svg → packs/images/decidim/gamification/badges/decidim_gamification_badges_test.svg} +0 -0
- data/app/packs/src/decidim/dev/accessibility.js +168 -0
- data/app/packs/stylesheets/decidim/dev.scss +1 -0
- data/app/packs/stylesheets/decidim/dev/_accessibility.scss +133 -0
- data/config/assets.rb +8 -0
- data/config/locales/ar.yml +5 -11
- data/config/locales/bg.yml +5 -11
- data/config/locales/ca.yml +5 -11
- data/config/locales/cs.yml +5 -11
- data/config/locales/de.yml +5 -11
- data/config/locales/el.yml +5 -11
- data/config/locales/en.yml +5 -11
- data/config/locales/es-MX.yml +5 -11
- data/config/locales/es-PY.yml +5 -11
- data/config/locales/es.yml +5 -11
- data/config/locales/eu.yml +5 -11
- data/config/locales/fi-plain.yml +5 -11
- data/config/locales/fi.yml +5 -11
- data/config/locales/fr-CA.yml +5 -11
- data/config/locales/fr-LU.yml +50 -0
- data/config/locales/fr.yml +5 -11
- data/config/locales/gl.yml +5 -11
- data/config/locales/hu.yml +5 -11
- data/config/locales/id-ID.yml +5 -11
- data/config/locales/is-IS.yml +0 -4
- data/config/locales/it.yml +5 -11
- data/config/locales/ja.yml +5 -11
- data/config/locales/lb-LU.yml +1 -0
- data/config/locales/lv.yml +3 -9
- data/config/locales/nl.yml +5 -11
- data/config/locales/no.yml +5 -11
- data/config/locales/pl.yml +5 -11
- data/config/locales/pt-BR.yml +21 -11
- data/config/locales/pt.yml +5 -11
- data/config/locales/ro-RO.yml +5 -11
- data/config/locales/ru.yml +5 -11
- data/config/locales/sk.yml +5 -11
- data/config/locales/sv.yml +5 -11
- data/config/locales/tr-TR.yml +5 -11
- data/config/locales/uk.yml +5 -11
- data/config/locales/zh-CN.yml +5 -11
- data/lib/decidim-dev.rb +3 -0
- data/lib/decidim/dev/assets/import_participatory_space_private_users_with_bom.csv +1 -0
- data/lib/decidim/dev/assets/import_proposals.xlsx +0 -0
- data/lib/decidim/dev/assets/import_voting_census.csv +5 -0
- data/lib/decidim/dev/assets/import_voting_census_with_ballot_styles.csv +5 -0
- data/lib/decidim/dev/engine.rb +17 -0
- data/lib/decidim/dev/test/rspec_support/accessibility_examples.rb +19 -0
- data/lib/decidim/dev/test/rspec_support/capybara.rb +2 -0
- data/lib/decidim/dev/test/rspec_support/capybara_data_picker.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb +7 -1
- data/lib/decidim/dev/test/rspec_support/component.rb +10 -1
- data/lib/decidim/dev/test/rspec_support/geocoder.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/migration.rb +50 -0
- data/lib/decidim/dev/test/rspec_support/time_helpers.rb +5 -0
- data/lib/decidim/dev/test/rspec_support/webmock.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/wicked_pdf_assets_mock.rb +17 -0
- data/lib/decidim/dev/test/spec_helper.rb +2 -0
- data/lib/decidim/dev/version.rb +1 -1
- data/lib/tasks/generators.rake +4 -1
- metadata +59 -45
- data/config/locales/ja-JP.yml +0 -56
- data/lib/decidim/dev/assets/import_proposals.xls +0 -0
- data/lib/decidim/dev/test/rspec_support/attachments.rb +0 -13
- data/lib/decidim/dev/test/rspec_support/puffing_billy.rb +0 -55
- data/lib/decidim/dev/test/rspec_support/vcr.rb +0 -27
data/config/locales/ja-JP.yml
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
ja:
|
2
|
-
activemodel:
|
3
|
-
attributes:
|
4
|
-
dummy_resource:
|
5
|
-
created_at: 作成日時
|
6
|
-
decidim_scope_id: スコープ
|
7
|
-
field: 自分のフィールド
|
8
|
-
start_date: 開始日
|
9
|
-
title: タイトル
|
10
|
-
translatable_text: 翻訳可能なテキスト
|
11
|
-
updated_at: 更新日時
|
12
|
-
decidim:
|
13
|
-
components:
|
14
|
-
dummy:
|
15
|
-
settings:
|
16
|
-
global:
|
17
|
-
readonly_attribute: 読み取り専用属性
|
18
|
-
test: テスト
|
19
|
-
test_choices:
|
20
|
-
a: 選択
|
21
|
-
b: B の選択
|
22
|
-
c: C の選択
|
23
|
-
step:
|
24
|
-
endorsements_blocked: エンドースメントがブロックされました
|
25
|
-
endorsements_enabled: エンドースメントを有効にする
|
26
|
-
readonly_step_attribute: 読み取り専用ステップ属性
|
27
|
-
dummy:
|
28
|
-
admin:
|
29
|
-
exports:
|
30
|
-
dummies: Dummies
|
31
|
-
gamification:
|
32
|
-
badges:
|
33
|
-
test:
|
34
|
-
conditions:
|
35
|
-
- テスト環境を使用してdecidim.
|
36
|
-
description: 参加者はテストを作成することによってこのバッジを受け取ります。
|
37
|
-
description_another: この参加者は %{score} テストを作成しました。
|
38
|
-
description_own: テストを %{score} 作成しました。
|
39
|
-
name: テスト
|
40
|
-
next_level_in: '%{score} 個のテストを作成して、次のレベルに到達しましょう!'
|
41
|
-
unearned_another: この参加者はまだテストを作成していません。
|
42
|
-
unearned_own: テストはまだ作成されていません。
|
43
|
-
pages:
|
44
|
-
home:
|
45
|
-
statistics:
|
46
|
-
bar: バー
|
47
|
-
dummies_count_high: 高いダミー数
|
48
|
-
dummies_count_medium: Dummies Medium
|
49
|
-
foo: Foo
|
50
|
-
participatory_processes:
|
51
|
-
statistics:
|
52
|
-
dummies_count_high: 高いダミー数
|
53
|
-
dummies_count_medium: Dummies Medium
|
54
|
-
resource_links:
|
55
|
-
test_link:
|
56
|
-
dummy_resource_dummy: 関連ダミー
|
Binary file
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
RSpec.configure do |config|
|
4
|
-
config.around(:each, :processing_uploads_for) do |example|
|
5
|
-
uploader = example.metadata[:processing_uploads_for]
|
6
|
-
|
7
|
-
uploader.enable_processing = true
|
8
|
-
|
9
|
-
example.run
|
10
|
-
|
11
|
-
uploader.enable_processing = false
|
12
|
-
end
|
13
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "billy/capybara/rspec"
|
4
|
-
|
5
|
-
Billy.configure do |config|
|
6
|
-
config.cache = true
|
7
|
-
config.persist_cache = true
|
8
|
-
config.cache_path = "spec/billy"
|
9
|
-
config.record_requests = true
|
10
|
-
config.proxied_request_connect_timeout = 20
|
11
|
-
config.proxied_request_inactivity_timeout = 20
|
12
|
-
end
|
13
|
-
|
14
|
-
RSpec.configure do |config|
|
15
|
-
base_cache_path = Billy.config.cache_path
|
16
|
-
|
17
|
-
config.before :each, :billy do |example|
|
18
|
-
driven_by :selenium_chrome_headless_billy
|
19
|
-
switch_to_secure_context_host
|
20
|
-
WebMock::HttpLibAdapters::EmHttpRequestAdapter.disable!
|
21
|
-
|
22
|
-
feature_name = example.metadata[:example_group][:description].underscore.gsub(" ", "_")
|
23
|
-
scenario_name = example.metadata[:description].underscore.gsub(" ", "_")
|
24
|
-
cache_scenario_folder_path = File.join(base_cache_path, feature_name, scenario_name)
|
25
|
-
FileUtils.mkdir_p(cache_scenario_folder_path)
|
26
|
-
Billy.config.cache_path = cache_scenario_folder_path
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
# A patch to `puffing-billy`'s proxy so that it doesn't try to stop
|
31
|
-
# eventmachine's reactor if it's not running.
|
32
|
-
#
|
33
|
-
# See:
|
34
|
-
# https://github.com/oesmith/puffing-billy/issues/253#issuecomment-539710620
|
35
|
-
module BillyProxyPatch
|
36
|
-
def stop
|
37
|
-
return unless EM.reactor_running?
|
38
|
-
|
39
|
-
super
|
40
|
-
end
|
41
|
-
end
|
42
|
-
Billy::Proxy.prepend(BillyProxyPatch)
|
43
|
-
|
44
|
-
# A patch to `puffing-billy` to start EM if it has been stopped
|
45
|
-
Billy.module_eval do
|
46
|
-
def self.proxy
|
47
|
-
if @billy_proxy.nil? || !(EventMachine.reactor_running? && EventMachine.reactor_thread.alive?)
|
48
|
-
proxy = Billy::Proxy.new
|
49
|
-
proxy.start
|
50
|
-
@billy_proxy = proxy
|
51
|
-
else
|
52
|
-
@billy_proxy
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "vcr"
|
4
|
-
|
5
|
-
module BulletinBoardVcr
|
6
|
-
def self.bulletin_board_uri?(uri)
|
7
|
-
uri.hostname == bulletin_board_uri.hostname && uri.port == bulletin_board_uri.port
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.bulletin_board_uri
|
11
|
-
@bulletin_board_uri ||= URI(bulletin_board_server)
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.bulletin_board_server
|
15
|
-
return "" unless defined?(Decidim::Elections)
|
16
|
-
|
17
|
-
Decidim::Elections.bulletin_board.server
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
VCR.configure do |config|
|
22
|
-
config.default_cassette_options = { serialize_with: :json }
|
23
|
-
config.cassette_library_dir = "spec/cassettes"
|
24
|
-
config.hook_into :webmock
|
25
|
-
config.configure_rspec_metadata!
|
26
|
-
config.ignore_request { |request| !BulletinBoardVcr.bulletin_board_uri?(URI(request.uri)) }
|
27
|
-
end
|