decidim-forms 0.26.2 → 0.27.0.rc2
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.
- checksums.yaml +4 -4
 - data/app/commands/decidim/forms/admin/update_questionnaire.rb +13 -8
 - data/app/commands/decidim/forms/answer_questionnaire.rb +3 -3
 - data/app/controllers/decidim/forms/admin/concerns/has_questionnaire.rb +2 -2
 - data/app/forms/decidim/forms/admin/display_condition_form.rb +3 -3
 - data/app/forms/decidim/forms/answer_form.rb +4 -0
 - data/app/models/decidim/forms/answer.rb +2 -2
 - data/app/models/decidim/forms/display_condition.rb +1 -1
 - data/app/models/decidim/forms/questionnaire.rb +7 -0
 - data/app/packs/src/decidim/forms/admin/forms.js +3 -0
 - data/app/presenters/decidim/forms/admin/questionnaire_answer_presenter.rb +10 -2
 - data/app/presenters/decidim/forms/admin/questionnaire_participant_presenter.rb +5 -3
 - data/app/presenters/decidim/forms/admin_log/questionnaire_presenter.rb +35 -0
 - data/app/queries/decidim/forms/questionnaire_participant.rb +1 -1
 - data/app/queries/decidim/forms/questionnaire_participants.rb +1 -1
 - data/app/queries/decidim/forms/questionnaire_user_answers.rb +1 -1
 - data/app/views/decidim/forms/questionnaires/show.html.erb +4 -2
 - data/config/locales/ar.yml +1 -0
 - data/config/locales/bg.yml +1 -0
 - data/config/locales/ca.yml +6 -3
 - data/config/locales/cs.yml +6 -3
 - data/config/locales/de.yml +6 -3
 - data/config/locales/el.yml +1 -4
 - data/config/locales/en.yml +5 -3
 - data/config/locales/es-MX.yml +6 -3
 - data/config/locales/es-PY.yml +6 -3
 - data/config/locales/es.yml +6 -3
 - data/config/locales/eu.yml +1 -4
 - data/config/locales/fi-plain.yml +6 -3
 - data/config/locales/fi.yml +6 -3
 - data/config/locales/fr-CA.yml +6 -3
 - data/config/locales/fr.yml +6 -3
 - data/config/locales/ga-IE.yml +1 -0
 - data/config/locales/gl.yml +5 -0
 - data/config/locales/hu.yml +4 -0
 - data/config/locales/id-ID.yml +1 -0
 - data/config/locales/it.yml +1 -4
 - data/config/locales/ja.yml +6 -3
 - data/config/locales/lb.yml +1 -4
 - data/config/locales/lt.yml +191 -0
 - data/config/locales/lv.yml +1 -4
 - data/config/locales/nl.yml +1 -4
 - data/config/locales/no.yml +1 -4
 - data/config/locales/pl.yml +1 -4
 - data/config/locales/pt-BR.yml +1 -4
 - data/config/locales/pt.yml +1 -4
 - data/config/locales/ro-RO.yml +1 -4
 - data/config/locales/ru.yml +1 -0
 - data/config/locales/sk.yml +1 -0
 - data/config/locales/sl.yml +1 -0
 - data/config/locales/sv.yml +1 -4
 - data/config/locales/tr-TR.yml +1 -4
 - data/config/locales/val-ES.yml +1 -0
 - data/config/locales/zh-CN.yml +1 -4
 - data/lib/decidim/exporters/form_pdf.rb +2 -2
 - data/lib/decidim/forms/{data_portability_user_answers_serializer.rb → download_your_data_user_answers_serializer.rb} +2 -2
 - data/lib/decidim/forms/test/factories.rb +22 -13
 - data/lib/decidim/forms/test/shared_examples/manage_questionnaires/update_questions.rb +2 -2
 - data/lib/decidim/forms/user_answers_serializer.rb +2 -2
 - data/lib/decidim/forms/version.rb +1 -1
 - data/lib/decidim/forms.rb +1 -1
 - metadata +14 -13
 
    
        data/lib/decidim/forms.rb
    CHANGED
    
    | 
         @@ -9,7 +9,7 @@ module Decidim 
     | 
|
| 
       9 
9 
     | 
    
         
             
              # This namespace holds the logic of the `Forms`.
         
     | 
| 
       10 
10 
     | 
    
         
             
              module Forms
         
     | 
| 
       11 
11 
     | 
    
         
             
                autoload :UserAnswersSerializer, "decidim/forms/user_answers_serializer"
         
     | 
| 
       12 
     | 
    
         
            -
                autoload : 
     | 
| 
      
 12 
     | 
    
         
            +
                autoload :DownloadYourDataUserAnswersSerializer, "decidim/forms/download_your_data_user_answers_serializer"
         
     | 
| 
       13 
13 
     | 
    
         
             
              end
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
15 
     | 
    
         
             
              module Exporters
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: decidim-forms
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.27.0.rc2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Josep Jaume Rey Peroy
         
     | 
| 
         @@ -11,7 +11,7 @@ authors: 
     | 
|
| 
       11 
11 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       12 
12 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       13 
13 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       14 
     | 
    
         
            -
            date: 2022- 
     | 
| 
      
 14 
     | 
    
         
            +
            date: 2022-09-19 00:00:00.000000000 Z
         
     | 
| 
       15 
15 
     | 
    
         
             
            dependencies:
         
     | 
| 
       16 
16 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       17 
17 
     | 
    
         
             
              name: decidim-core
         
     | 
| 
         @@ -19,14 +19,14 @@ dependencies: 
     | 
|
| 
       19 
19 
     | 
    
         
             
                requirements:
         
     | 
| 
       20 
20 
     | 
    
         
             
                - - '='
         
     | 
| 
       21 
21 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       22 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 22 
     | 
    
         
            +
                    version: 0.27.0.rc2
         
     | 
| 
       23 
23 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       24 
24 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       25 
25 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       26 
26 
     | 
    
         
             
                requirements:
         
     | 
| 
       27 
27 
     | 
    
         
             
                - - '='
         
     | 
| 
       28 
28 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       29 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 29 
     | 
    
         
            +
                    version: 0.27.0.rc2
         
     | 
| 
       30 
30 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       31 
31 
     | 
    
         
             
              name: wicked_pdf
         
     | 
| 
       32 
32 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -61,28 +61,28 @@ dependencies: 
     | 
|
| 
       61 
61 
     | 
    
         
             
                requirements:
         
     | 
| 
       62 
62 
     | 
    
         
             
                - - '='
         
     | 
| 
       63 
63 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       64 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 64 
     | 
    
         
            +
                    version: 0.27.0.rc2
         
     | 
| 
       65 
65 
     | 
    
         
             
              type: :development
         
     | 
| 
       66 
66 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       67 
67 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       68 
68 
     | 
    
         
             
                requirements:
         
     | 
| 
       69 
69 
     | 
    
         
             
                - - '='
         
     | 
| 
       70 
70 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       71 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 71 
     | 
    
         
            +
                    version: 0.27.0.rc2
         
     | 
| 
       72 
72 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       73 
73 
     | 
    
         
             
              name: decidim-dev
         
     | 
| 
       74 
74 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       75 
75 
     | 
    
         
             
                requirements:
         
     | 
| 
       76 
76 
     | 
    
         
             
                - - '='
         
     | 
| 
       77 
77 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       78 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 78 
     | 
    
         
            +
                    version: 0.27.0.rc2
         
     | 
| 
       79 
79 
     | 
    
         
             
              type: :development
         
     | 
| 
       80 
80 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       81 
81 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       82 
82 
     | 
    
         
             
                requirements:
         
     | 
| 
       83 
83 
     | 
    
         
             
                - - '='
         
     | 
| 
       84 
84 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       85 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 85 
     | 
    
         
            +
                    version: 0.27.0.rc2
         
     | 
| 
       86 
86 
     | 
    
         
             
            description: A forms gem for decidim.
         
     | 
| 
       87 
87 
     | 
    
         
             
            email:
         
     | 
| 
       88 
88 
     | 
    
         
             
            - josepjaume@gmail.com
         
     | 
| 
         @@ -151,6 +151,7 @@ files: 
     | 
|
| 
       151 
151 
     | 
    
         
             
            - app/packs/stylesheets/decidim/forms/questionnaire-answers-pdf.scss
         
     | 
| 
       152 
152 
     | 
    
         
             
            - app/presenters/decidim/forms/admin/questionnaire_answer_presenter.rb
         
     | 
| 
       153 
153 
     | 
    
         
             
            - app/presenters/decidim/forms/admin/questionnaire_participant_presenter.rb
         
     | 
| 
      
 154 
     | 
    
         
            +
            - app/presenters/decidim/forms/admin_log/questionnaire_presenter.rb
         
     | 
| 
       154 
155 
     | 
    
         
             
            - app/presenters/decidim/forms/answer_option_presenter.rb
         
     | 
| 
       155 
156 
     | 
    
         
             
            - app/presenters/decidim/forms/question_presenter.rb
         
     | 
| 
       156 
157 
     | 
    
         
             
            - app/queries/decidim/forms/questionnaire_participant.rb
         
     | 
| 
         @@ -280,7 +281,7 @@ files: 
     | 
|
| 
       280 
281 
     | 
    
         
             
            - lib/decidim/forms/admin.rb
         
     | 
| 
       281 
282 
     | 
    
         
             
            - lib/decidim/forms/admin_engine.rb
         
     | 
| 
       282 
283 
     | 
    
         
             
            - lib/decidim/forms/api.rb
         
     | 
| 
       283 
     | 
    
         
            -
            - lib/decidim/forms/ 
     | 
| 
      
 284 
     | 
    
         
            +
            - lib/decidim/forms/download_your_data_user_answers_serializer.rb
         
     | 
| 
       284 
285 
     | 
    
         
             
            - lib/decidim/forms/engine.rb
         
     | 
| 
       285 
286 
     | 
    
         
             
            - lib/decidim/forms/test.rb
         
     | 
| 
       286 
287 
     | 
    
         
             
            - lib/decidim/forms/test/factories.rb
         
     | 
| 
         @@ -305,14 +306,14 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       305 
306 
     | 
    
         
             
              requirements:
         
     | 
| 
       306 
307 
     | 
    
         
             
              - - ">="
         
     | 
| 
       307 
308 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       308 
     | 
    
         
            -
                  version: ' 
     | 
| 
      
 309 
     | 
    
         
            +
                  version: '3.0'
         
     | 
| 
       309 
310 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       310 
311 
     | 
    
         
             
              requirements:
         
     | 
| 
       311 
     | 
    
         
            -
              - - " 
     | 
| 
      
 312 
     | 
    
         
            +
              - - ">"
         
     | 
| 
       312 
313 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       313 
     | 
    
         
            -
                  version:  
     | 
| 
      
 314 
     | 
    
         
            +
                  version: 1.3.1
         
     | 
| 
       314 
315 
     | 
    
         
             
            requirements: []
         
     | 
| 
       315 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 316 
     | 
    
         
            +
            rubygems_version: 3.2.22
         
     | 
| 
       316 
317 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       317 
318 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       318 
319 
     | 
    
         
             
            summary: Decidim forms
         
     |