decidim-budgets 0.7.4 → 0.8.0

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
- SHA256:
3
- metadata.gz: e5465185839ab5612df901d26a67ac7dffe2c7f472b22b86c6980566fdf4c32d
4
- data.tar.gz: a978691b842f5d19d81bcf22de01389ceebcc93d7a4c609b5a547b3eaa7a1d1e
2
+ SHA1:
3
+ metadata.gz: 9fa0e18289aba2248c73d983ed5e6c8352cc59ae
4
+ data.tar.gz: 666e8a3791272fe576fbb0c0e13df53f82bc64f2
5
5
  SHA512:
6
- metadata.gz: 6d648815b7b2387f44b5b6dedb9f152e15a4c4c8db16d7b04079708d0255feac3eedc21a33bfdd4a18ad2719f24c894ec43304248fecb0373f21851b6d3fd849
7
- data.tar.gz: 0da9f3bd594aefafed2d6e875eb0a9beb8bcc4976d2d147a4e97aafdf1ab7ec35b13f204952c532627be97e972ba5385d5565be018b26323bc7a010341e38126
6
+ metadata.gz: 31e2bbac5bcb6aab6c06768d527f71b5109ea538de6ba50e6c155390b0461a3556f7ee54b6486f813702ad2f24378bbb3130e15c1a8de079ee445ac59c633140
7
+ data.tar.gz: e43c5fc329d69a643d8f12b02bab1aa7a5209f43d00db5a62aef09388b8eec8ef19e26cf4d920b2380dd001e44b1a2a7c7655af078235b923b22c762db249b59
data/README.md CHANGED
@@ -1,10 +1,13 @@
1
1
  # Decidim::Budgets
2
+
2
3
  The Budgets module adds projects to any participatory process. It adds a CRUD engine to the admin and public views scoped inside the participatory process. Projects will link to related proposals and have a budget. The users should be able to distribute a budget between these projects.
3
4
 
4
5
  ## Usage
6
+
5
7
  Budgets will be available as a Feature for a Participatory Process.
6
8
 
7
9
  ## Installation
10
+
8
11
  Add this line to your application's Gemfile:
9
12
 
10
13
  ```ruby
@@ -12,12 +15,15 @@ gem 'decidim-budgets
12
15
  ```
13
16
 
14
17
  And then execute:
18
+
15
19
  ```bash
16
- $ bundle
20
+ bundle
17
21
  ```
18
22
 
19
23
  ## Contributing
24
+
20
25
  See [Decidim](https://github.com/decidim/decidim).
21
26
 
22
27
  ## License
28
+
23
29
  See [Decidim](https://github.com/decidim/decidim).
@@ -37,7 +37,7 @@
37
37
  </div>
38
38
  <div class="columns mediumlarge-8 mediumlarge-pull-4">
39
39
  <div class="section">
40
- <%= sanitize translated_attribute project.description %>
40
+ <%= decidim_sanitize translated_attribute project.description %>
41
41
  <%= render partial: "decidim/shared/tags", locals: { resource: project, tags_class_extra: "tags--project" } %>
42
42
  </div>
43
43
  <%= linked_resources_for project, :proposals, "included_proposals" %>
@@ -128,5 +128,5 @@ it:
128
128
  included_proposals:
129
129
  project_proposals: 'Proposte incluse in questo progetto:'
130
130
  index:
131
- confirmed_orders_count: Conteggio dei voti
131
+ confirmed_orders_count: Computo dei voti
132
132
  total_budget: Budget totale
@@ -25,7 +25,7 @@ nl:
25
25
  projects:
26
26
  create:
27
27
  invalid: Er is een probleem opgetreden met het creëren van dit project
28
- success: Project succesvol gemaakt
28
+ success: Voorstel succesvol aangemaakt
29
29
  destroy:
30
30
  success: Project succesvol vernietigd
31
31
  edit:
@@ -47,7 +47,7 @@ nl:
47
47
  title: Titel
48
48
  projects:
49
49
  budget_confirm:
50
- are_you_sure: Bent u het eens? Zodra u uw stem heeft bevestigd, kunt u het niet wijzigen.
50
+ are_you_sure: Bent u het eens? Zodra u uw stem hebt bevestigd, kunt u deze niet meer wijzigen.
51
51
  cancel: Annuleer
52
52
  confirm: Bevestigen
53
53
  description: Dit zijn de projecten die u hebt gekozen om deel uit te maken van de begroting.
@@ -64,7 +64,7 @@ nl:
64
64
  checked_out:
65
65
  description: Je hebt al voor de begroting gestemd. Als u van mening bent, kunt u %{cancel_link}.
66
66
  title: Begrotingsstemming voltooid
67
- description: Welke projecten denk je dat we budget moeten voordelen? Geef ten minste %{minimum_budget} toe aan de projecten die u wilt en stem met uw voorkeuren om het budget te definiëren.
67
+ description: Voor welke projecten vindt u dat we een budget moeten vrijmaken? Geef ten minste %{minimum_budget} toe aan de projecten die u wilt en stem met uw voorkeuren om het budget te definiëren.
68
68
  title: U bepaalt het budget
69
69
  count:
70
70
  projects_count:
@@ -73,27 +73,27 @@ nl:
73
73
  filters:
74
74
  category: Categorie
75
75
  category_prompt: Kies een categorie
76
- scope_prompt: Selecteer een bereik
76
+ scope_prompt: Selecteer een scope
77
77
  scopes: Scopes
78
78
  search: Zoeken
79
79
  filters_small_view:
80
- close_modal: Dicht modaal
80
+ close_modal: Dialoogvenster sluiten
81
81
  filter: Filter
82
82
  filter_by: Filteren op
83
- unfold: Ontvouwen
83
+ unfold: Uitvouwen
84
84
  order_progress:
85
- vote: Stemmen
85
+ vote: Stem
86
86
  order_selected_projects:
87
87
  remove: Verwijderen
88
88
  selected_projects:
89
89
  one: Geselecteerd project
90
90
  other: Geselecteerde projecten
91
- view: Uitzicht
91
+ view: Bekijken
92
92
  project:
93
93
  add: Toevoegen
94
94
  count:
95
95
  one: 1 ondersteuning
96
- other: "%{count} ondersteunt"
96
+ other: "%{count} ondersteuning"
97
97
  remove: Verwijderen
98
98
  project_budget_button:
99
99
  add: Toevoegen
@@ -104,18 +104,18 @@ nl:
104
104
  features:
105
105
  budgets:
106
106
  actions:
107
- vote: Stemmen
107
+ vote: Stem
108
108
  name: Begrotingen
109
109
  settings:
110
110
  global:
111
111
  announcement: Aankondiging
112
112
  comments_enabled: Reacties ingeschakeld
113
- total_budget: Totale budget
113
+ total_budget: Totale begroting
114
114
  vote_threshold_percent: Stem drempel percentage
115
115
  step:
116
116
  announcement: Aankondiging
117
117
  comments_blocked: Reacties geblokkeerd
118
- show_votes: T
118
+ show_votes: Toon stemmen
119
119
  votes_enabled: Stemmen ingeschakeld
120
120
  orders:
121
121
  checkout:
@@ -129,4 +129,4 @@ nl:
129
129
  project_proposals: 'Voorstellen opgenomen in dit project:'
130
130
  index:
131
131
  confirmed_orders_count: Aantal stemmen
132
- total_budget: Totale budget
132
+ total_budget: Totale begroting
@@ -0,0 +1,132 @@
1
+ pt:
2
+ activemodel:
3
+ attributes:
4
+ project:
5
+ budget: Orçamento
6
+ decidim_category_id: Categoria
7
+ decidim_scope_id: Escopo
8
+ description: Descrição
9
+ proposal_ids: Propostas relacionadas
10
+ title: Título
11
+ decidim:
12
+ budgets:
13
+ actions:
14
+ attachments: Anexos
15
+ confirm_destroy: Tem certeza de que deseja excluir esse projeto?
16
+ destroy: Excluir
17
+ edit: Editar
18
+ new: Novo
19
+ preview: Visualização
20
+ title: Ações
21
+ admin:
22
+ models:
23
+ project:
24
+ name: Projeto
25
+ projects:
26
+ create:
27
+ invalid: Tem havido um problema ao criar este projeto
28
+ success: Projeto criado com sucesso
29
+ destroy:
30
+ success: Projeto destruído com sucesso
31
+ edit:
32
+ title: Editar projeto
33
+ update: Atualizar
34
+ index:
35
+ finished_orders: Votos finais
36
+ pending_orders: Votações pendentes
37
+ title: Projetos
38
+ new:
39
+ create: Crio
40
+ title: Novo resultado
41
+ update:
42
+ invalid: Ocorreu um problema ao atualizar este projeto
43
+ success: Projeto atualizado com sucesso
44
+ models:
45
+ project:
46
+ fields:
47
+ title: Título
48
+ projects:
49
+ budget_confirm:
50
+ are_you_sure: Você concorda? Depois de confirmar o seu voto, não pode alterá-lo.
51
+ cancel: Cancelar
52
+ confirm: confirme
53
+ description: Estes são os projetos que você escolheu para fazer parte do orçamento.
54
+ title: Confirmar votação
55
+ budget_excess:
56
+ close: Fechar
57
+ description: Este projeto excede o orçamento máximo e não pode ser adicionado. Se você quiser, você pode excluir um projeto que você já selecionou para adicionar ou fazer seu voto com suas preferências.
58
+ ok: Está bem
59
+ title: O orçamento máximo excedeu
60
+ budget_summary:
61
+ are_you_sure: Tem certeza de que deseja cancelar o seu voto?
62
+ assigned: 'Atribuído:'
63
+ cancel_order: exclua seu voto e comece de novo
64
+ checked_out:
65
+ description: Você já votou no orçamento. Se você mudou de idéia, você pode %{cancel_link}.
66
+ title: Votação do orçamento concluída
67
+ description: Em que projetos pensa que devemos atribuir orçamento? Atribua pelo menos %{minimum_budget} aos projetos que deseja e vote com suas preferências para definir o orçamento.
68
+ title: Você decide o orçamento
69
+ count:
70
+ projects_count:
71
+ one: 1 projeto
72
+ other: "%{count} projetos"
73
+ filters:
74
+ category: Categoria
75
+ category_prompt: Selecione uma categoria
76
+ scope_prompt: Selecione um escopo
77
+ scopes: Escopos
78
+ search: Pesquisa
79
+ filters_small_view:
80
+ close_modal: Fechar modal
81
+ filter: Filtro
82
+ filter_by: Filtrar por
83
+ unfold: Desdobrar
84
+ order_progress:
85
+ vote: Voto
86
+ order_selected_projects:
87
+ remove: Remover
88
+ selected_projects:
89
+ one: projeto selecionado
90
+ other: projetos selecionados
91
+ view: Visão
92
+ project:
93
+ add: Adicionar
94
+ count:
95
+ one: 1 suporte
96
+ other: "%{count} suporta"
97
+ remove: Remover
98
+ project_budget_button:
99
+ add: Adicionar
100
+ added: Adicionado
101
+ show:
102
+ budget: Despesas
103
+ view_all_projects: Ver todos os projetos
104
+ features:
105
+ budgets:
106
+ actions:
107
+ vote: Voto
108
+ name: Orçamentos
109
+ settings:
110
+ global:
111
+ announcement: Anúncio
112
+ comments_enabled: Comentários ativados
113
+ total_budget: Orçamento total
114
+ vote_threshold_percent: Porcentagem do limiar de voto
115
+ step:
116
+ announcement: Anúncio
117
+ comments_blocked: Comentários bloqueados
118
+ show_votes: Mostrar votos
119
+ votes_enabled: Votos ativados
120
+ orders:
121
+ checkout:
122
+ error: Ocorreu um erro ao processar seu voto
123
+ success: Seu voto foi aceito com sucesso
124
+ destroy:
125
+ error: Ocorreu um erro ao cancelar o seu voto
126
+ success: Seu voto foi cancelado com sucesso
127
+ resource_links:
128
+ included_proposals:
129
+ project_proposals: 'Propostas incluídas neste projeto:'
130
+ index:
131
+ confirmed_orders_count: Contagem de votos
132
+ total_budget: Orçamento total
@@ -3,7 +3,10 @@
3
3
  require "decidim/faker/localized"
4
4
  require "decidim/dev"
5
5
 
6
- FactoryGirl.define do
6
+ require "decidim/core/test/factories"
7
+ require "decidim/participatory_processes/test/factories"
8
+
9
+ FactoryBot.define do
7
10
  factory :budget_feature, parent: :feature do
8
11
  name { Decidim::Features::Namer.new(participatory_space.organization.available_locales, :budgets).i18n_name }
9
12
  manifest_name :budgets
@@ -44,19 +47,19 @@ FactoryGirl.define do
44
47
  end
45
48
  end
46
49
 
47
- factory :project, class: Decidim::Budgets::Project do
50
+ factory :project, class: "Decidim::Budgets::Project" do
48
51
  title { Decidim::Faker::Localized.sentence(3) }
49
52
  description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(4) } }
50
53
  budget { Faker::Number.number(8) }
51
54
  feature { create(:budget_feature) }
52
55
  end
53
56
 
54
- factory :order, class: Decidim::Budgets::Order do
57
+ factory :order, class: "Decidim::Budgets::Order" do
55
58
  feature { create(:budget_feature) }
56
59
  user { create(:user, organization: feature.organization) }
57
60
  end
58
61
 
59
- factory :line_item, class: Decidim::Budgets::LineItem do
62
+ factory :line_item, class: "Decidim::Budgets::LineItem" do
60
63
  order
61
64
  project { create(:project, feature: order.feature) }
62
65
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-budgets version.
5
5
  module Budgets
6
6
  def self.version
7
- "0.7.4"
7
+ "0.8.0"
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-budgets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,106 +10,106 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-11-23 00:00:00.000000000 Z
13
+ date: 2017-12-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: decidim-core
16
+ name: decidim-comments
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.7.4
21
+ version: 0.8.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.7.4
28
+ version: 0.8.0
29
29
  - !ruby/object:Gem::Dependency
30
- name: decidim-comments
30
+ name: decidim-core
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.7.4
35
+ version: 0.8.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.7.4
42
+ version: 0.8.0
43
43
  - !ruby/object:Gem::Dependency
44
- name: searchlight
44
+ name: kaminari
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: 4.1.0
49
+ version: 1.0.1
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: 4.1.0
56
+ version: 1.0.1
57
57
  - !ruby/object:Gem::Dependency
58
- name: kaminari
58
+ name: searchlight
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: 1.0.1
63
+ version: 4.1.0
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: 1.0.1
70
+ version: 4.1.0
71
71
  - !ruby/object:Gem::Dependency
72
- name: decidim-dev
72
+ name: decidim-admin
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.7.4
77
+ version: 0.8.0
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.7.4
84
+ version: 0.8.0
85
85
  - !ruby/object:Gem::Dependency
86
- name: decidim-admin
86
+ name: decidim-dev
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.7.4
91
+ version: 0.8.0
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.7.4
98
+ version: 0.8.0
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-proposals
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.7.4
105
+ version: 0.8.0
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.7.4
112
+ version: 0.8.0
113
113
  description: A budgets component for decidim's participatory processes.
114
114
  email:
115
115
  - josepjaume@gmail.com
@@ -182,6 +182,7 @@ files:
182
182
  - config/locales/it.yml
183
183
  - config/locales/nl.yml
184
184
  - config/locales/pl.yml
185
+ - config/locales/pt.yml
185
186
  - config/locales/ru.yml
186
187
  - config/locales/uk.yml
187
188
  - db/migrate/20170127114122_create_projects.rb
@@ -220,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
221
  version: '0'
221
222
  requirements: []
222
223
  rubyforge_project:
223
- rubygems_version: 2.7.1
224
+ rubygems_version: 2.6.13
224
225
  signing_key:
225
226
  specification_version: 4
226
227
  summary: A budgets component for decidim's participatory processes.