decidim-dev 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b60c2bd96c2726d4bc8d3ae1cbafc93458e43a0cb91f684c10b47bc67fdb4f00
4
- data.tar.gz: 65256479b9c29a2cda91c07994baf635bd663e519b0d2ec8e584cd359f0c6b97
3
+ metadata.gz: 0d31484ec7fa3febbe6d216f79bf75490c3565c1adae28dfbd2f1d6b89b3afab
4
+ data.tar.gz: d0f9ce29bddd1c8ce2a1196d4eab5220eaa0358f6ebb3ba7719315a39e07a29c
5
5
  SHA512:
6
- metadata.gz: ea861e572ec6f9c7f48c377d2aed92e87b3373a7f78fa0b0704ef4d71a1722fd0a4459b5ebf9a8e95747a6578428167f136abbcb1a9295a3401d935c8e080086
7
- data.tar.gz: c045f663c730cec4e69256028a222f4d37a0512293fb60245f8faffbfa5698924c82831c5459e065c9f780541b0e32cf3fe687b52d54cb4d9d69649232cfd750
6
+ metadata.gz: 6aaceb320cb08bb50f94780a3e29642fa3c044292eea27df8e18df1d6a83994a3ed0a4601196a65b43fbb6884b59d2d4507fa450e7eeec7af6889e326d3848ea
7
+ data.tar.gz: 2df1535febc62701a992af50202ee469242a52b291934312cd5752dd9b97790f45d8565dba542f386feb39f42d0f809b768c72c8f60705f869096356dfd2f0d6
@@ -4,8 +4,8 @@ ar:
4
4
  dummy_resource:
5
5
  created_at: أنشئت في
6
6
  field: مجالي
7
- start_date: تاريخ البدء
8
- title: عنوان
7
+ start_date: تاريخ البداية
8
+ title: العنوان
9
9
  updated_at: تم التحديث في
10
10
  decidim:
11
11
  dummy:
@@ -20,10 +20,10 @@ ar:
20
20
  description: يحصل المشاركون على هذه الشارة عن طريق إنشاء اختبارات.
21
21
  description_another: قام هذا المشارك بإنشاء %{score} اختبار.
22
22
  description_own: لقد أنشأت %{score} اختبارات.
23
- name: اختبارات
23
+ name: الاختبارات
24
24
  next_level_in: إنشاء %{score} اختبارات أخرى للوصول إلى المستوى التالي!
25
25
  unearned_another: لم ينشئ هذا المشارك أي اختبارات حتى الآن.
26
- unearned_own: لم تنشئ اختبارات بعد.
26
+ unearned_own: لم تنشئ أية اختبارات بعد.
27
27
  pages:
28
28
  home:
29
29
  statistics:
@@ -11,7 +11,7 @@ ca:
11
11
  dummy:
12
12
  admin:
13
13
  exports:
14
- dummies: Maniquins
14
+ dummies: Proves
15
15
  gamification:
16
16
  badges:
17
17
  test:
@@ -19,7 +19,7 @@ ca:
19
19
  - Utilitza un entorn de prova per decidim.
20
20
  description: Les participants obtenen aquesta insígnia creant proves.
21
21
  description_another: Aquesta participant ha creat %{score} proves.
22
- description_own: Heu creat %{score} proves.
22
+ description_own: Has creat %{score} proves.
23
23
  name: Proves
24
24
  next_level_in: Crea %{score} més proves per arribar al següent nivell!
25
25
  unearned_another: Aquesta participant encara no ha creat cap prova.
@@ -37,4 +37,4 @@ ca:
37
37
  dummies_count_medium: Prova mig
38
38
  resource_links:
39
39
  test_link:
40
- dummy_resource_dummy: Fictici relacionat
40
+ dummy_resource_dummy: Prova relacionada
@@ -11,7 +11,7 @@ es:
11
11
  dummy:
12
12
  admin:
13
13
  exports:
14
- dummies: Maniquíes
14
+ dummies: Pruebas
15
15
  gamification:
16
16
  badges:
17
17
  test:
@@ -37,4 +37,4 @@ es:
37
37
  dummies_count_medium: Dummies media
38
38
  resource_links:
39
39
  test_link:
40
- dummy_resource_dummy: Ficticio relacionado
40
+ dummy_resource_dummy: Prueba relacionada
@@ -21,8 +21,8 @@ module TranslationHelpers
21
21
  #
22
22
  # field - the field that holds the translations
23
23
  # upcase - a boolean to indicate whether the string must be checked upcased or not.
24
- def have_i18n_content(field, upcase: false)
25
- have_content(i18n_content(field, upcase: upcase))
24
+ def have_i18n_content(field, upcase: false, strip_tags: false)
25
+ have_content(i18n_content(field, upcase: upcase, strip_tags: strip_tags))
26
26
  end
27
27
 
28
28
  # Checks that the current page doesn't have some translated content. It strips
@@ -92,8 +92,14 @@ module TranslationHelpers
92
92
  #
93
93
  # field - the field that holds the translations
94
94
  # upcase - a boolean to indicate whether the string must be checked upcased or not.
95
- def i18n_content(field, upcase: false)
96
- content = stripped(translated(field, locale: I18n.locale))
95
+ def i18n_content(field, upcase: false, strip_tags: false)
96
+ content = translated(field, locale: I18n.locale)
97
+ content = if strip_tags
98
+ Decidim::ApplicationController.helpers.strip_tags(content)
99
+ else
100
+ stripped(content)
101
+ end
102
+
97
103
  upcase ? content.upcase : content
98
104
  end
99
105
  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.17.0"
7
+ "0.17.1"
8
8
  end
9
9
  end
10
10
  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.17.0
4
+ version: 0.17.1
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: 2019-03-25 00:00:00.000000000 Z
13
+ date: 2019-06-03 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.17.0
35
+ version: 0.17.1
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.17.0
42
+ version: 0.17.1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: factory_bot_rails
45
45
  requirement: !ruby/object:Gem::Requirement