decidim-blogs 0.27.5 → 0.27.6

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: e6b8cab0b78bcd89d4f7d867718fffdc721ea2d1a5828d8012492396ec08f2a4
4
- data.tar.gz: 4f40f21d607b379fb4f2d1429189b196a275339837034d5dc1aa9793b1e8429a
3
+ metadata.gz: e3cc2dbb097744aa4899c2ab45645402c2f9920139385dbf9590a7bb9fa310bf
4
+ data.tar.gz: f5f044af656c62c7d32823a8162967c4db0adfa1721adc9a19866c1e953050ac
5
5
  SHA512:
6
- metadata.gz: cbdc24f7763b49db32630d4643dea2d1404f2d04269f1163ea0e8ca740791fbd7a0d1eafd2c1d09bc4904d50a3290885170e0f83ff2ffd2a2e7032bfa986e035
7
- data.tar.gz: 6d8f47704256e5f466d39ac28dda09f00c83f8b0819da64835ba249cc29ae242cfaa7132e94dff63dcceaa836900998d46fce4e7b18159878a7c73ad09004348
6
+ metadata.gz: 81096f65a3b4dafbc78491e86a0357fa349d1b3e433f75a972f2c161744ea2693dd3bdea88786878b77e97319c6e1259e4d49355b611f80b6fe2d92de062c3a2
7
+ data.tar.gz: 164a42ee9046329cb24d3adb4993ff7ad241e3241c7f411fd1a8c0eb0a5492bce0fd5486c20941df7e794e4d4f3aff29646a9c93dbdbde56ee71e7a39aef8c94
@@ -12,3 +12,30 @@ bg:
12
12
  blogs:
13
13
  actions:
14
14
  confirm_destroy: Сигурни ли сте, че желаете да изтриете тази публикация?
15
+ admin:
16
+ models:
17
+ post:
18
+ name: Публикация
19
+ posts:
20
+ create:
21
+ invalid: Възникна проблем при създаването на тази публикация
22
+ success: Публикацията беше създадена успешно
23
+ destroy:
24
+ success: Публикацията беше изтрита успешно
25
+ update:
26
+ success: Публикацията беше запазена успешно
27
+ last_activity:
28
+ new_post_at_html: "<span>Нова публикация на %{link}</span>"
29
+ models:
30
+ post:
31
+ fields:
32
+ created_at: Създадена на
33
+ posts:
34
+ show:
35
+ back: Назад към списъка
36
+ comments: Коментари
37
+ view: Преглед
38
+ sidebar_blog:
39
+ comments: коментари
40
+ most_commented_posts: Най-коментирани публикации
41
+ read_more: Прочетете повече
@@ -93,7 +93,7 @@ ca:
93
93
  blogs:
94
94
  post_created:
95
95
  email_intro: La publicació "%{resource_title}" s'ha publicat al "%{participatory_space_title}", el qual segueixes.
96
- email_outro: Has rebut aquesta notificació perquè estàs seguint "%{participatory_space_title}". Pots deixar de seguir-lo des de l'enllaç anterior.
96
+ email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de seguir-lo des de l'enllaç anterior.
97
97
  email_subject: Nova publicació publicada a %{participatory_space_title}
98
98
  notification_title: La publicació <a href="%{resource_path}">%{resource_title}</a> ha estat publicada a %{participatory_space_title}
99
99
  statistics:
@@ -50,7 +50,7 @@ de:
50
50
  delete: "%{user_name} hat den Blogpost %{resource_name} in %{space_name} gelöscht"
51
51
  update: "%{user_name} hat den Blogpost %{resource_name} in %{space_name} aktualisiert"
52
52
  last_activity:
53
- new_post_at_html: "<span>Neuer Beitrag bei %{link}</span>"
53
+ new_post_at_html: "<span>Neuer Beitrag auf %{link}</span>"
54
54
  models:
55
55
  post:
56
56
  fields:
@@ -41,6 +41,9 @@ ga:
41
41
  comments: tráchtanna
42
42
  components:
43
43
  blogs:
44
+ actions:
45
+ comment: Tabhair Trácht
46
+ endorse: Formhuinigh
44
47
  name: Blag
45
48
  settings:
46
49
  step:
@@ -0,0 +1 @@
1
+ he:
@@ -60,6 +60,8 @@ hu:
60
60
  official_blog_post: Hivatalos bejegyzés
61
61
  title: Cím
62
62
  posts:
63
+ index:
64
+ empty: Még nincsenek bejegyzések.
63
65
  show:
64
66
  back: Vissza a listához
65
67
  comments: Hozzászólások
@@ -74,7 +76,7 @@ hu:
74
76
  comment: Hozzászólás
75
77
  create: Létrehozás
76
78
  destroy: Törlés
77
- endorse: Helyesel/Jóváhagy
79
+ endorse: Jóváhagy
78
80
  update: Frissítés
79
81
  name: Blog
80
82
  settings:
@@ -85,8 +87,8 @@ hu:
85
87
  step:
86
88
  announcement: Közlemény
87
89
  comments_blocked: Megjegyzések letiltva
88
- endorsements_blocked: Jóváhagyások letiltva
89
- endorsements_enabled: Jóváhagyások engedélyezve
90
+ endorsements_blocked: Támogatások letiltva
91
+ endorsements_enabled: Támogatások engedélyezve
90
92
  events:
91
93
  blogs:
92
94
  post_created:
@@ -57,6 +57,9 @@ it:
57
57
  read_more: Leggi di più
58
58
  components:
59
59
  blogs:
60
+ actions:
61
+ comment: Commento
62
+ endorse: Appoggia
60
63
  name: blog
61
64
  settings:
62
65
  global:
@@ -1 +1,39 @@
1
+ ---
1
2
  ko:
3
+ activemodel:
4
+ attributes:
5
+ post:
6
+ decidim_author_id: 작성자
7
+ title: 제목
8
+ decidim:
9
+ blogs:
10
+ actions:
11
+ destroy: 삭제
12
+ edit: 수정
13
+ new: 새 게시물
14
+ title: 작업
15
+ admin:
16
+ posts:
17
+ edit:
18
+ save: 업데이트
19
+ models:
20
+ post:
21
+ fields:
22
+ author: 작성자
23
+ official_blog_post: 공식 게시물
24
+ title: 제목
25
+ components:
26
+ blogs:
27
+ actions:
28
+ update: 업데이트
29
+ name: 블로그
30
+ settings:
31
+ global:
32
+ announcement: 공지 사항
33
+ comments_enabled: 댓글 활성화됨
34
+ comments_max_length: 댓글 최대 길이(기본값은 0으로 남김)
35
+ step:
36
+ announcement: 공지 사항
37
+ comments_blocked: 댓글 차단됨
38
+ statistics:
39
+ posts_count: 게시물
@@ -57,6 +57,9 @@ lb:
57
57
  read_more: Weiterlesen
58
58
  components:
59
59
  blogs:
60
+ actions:
61
+ comment: Kommentar
62
+ endorse: Bestätigen
60
63
  name: Blog
61
64
  settings:
62
65
  global:
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  pl:
3
3
  activemodel:
4
+ attributes:
5
+ post:
6
+ body: Treść posta
7
+ decidim_author_id: Autor
8
+ published_at: Czas publikacji posta
9
+ title: Tytuł posta
4
10
  models:
5
11
  decidim/blogs/create_post_event: Nowy wpis na blogu
6
12
  activerecord:
@@ -40,6 +46,11 @@ pl:
40
46
  update:
41
47
  invalid: Podczas zapisywania wpisu wystąpiły błędy.
42
48
  success: Wpis został pomyślnie zapisany
49
+ admin_log:
50
+ post:
51
+ create: "%{user_name} utworzył/a %{resource_name} post na blogu w %{space_name}"
52
+ delete: "%{user_name} usunął/usunęła %{resource_name} post na blogu z %{space_name}"
53
+ update: "%{user_name} zaktualizował/a %{resource_name} post na blogu w %{space_name}"
43
54
  last_activity:
44
55
  new_post_at_html: "<span>Nowy wpis na %{link}</span>"
45
56
  models:
@@ -48,7 +59,11 @@ pl:
48
59
  author: Autor
49
60
  body: Treść
50
61
  created_at: Utworzono
62
+ official_blog_post: Oficjalny post
63
+ title: Tytuł posta
51
64
  posts:
65
+ index:
66
+ empty: Nie ma tu jeszcze żadnych wpisów.
52
67
  show:
53
68
  back: Powrót do listy
54
69
  comments: Komentarze
@@ -59,6 +74,12 @@ pl:
59
74
  read_more: Czytaj więcej
60
75
  components:
61
76
  blogs:
77
+ actions:
78
+ comment: Skomentuj
79
+ create: Utwórz
80
+ destroy: Usuń
81
+ endorse: Rekomenduj
82
+ update: Aktualizuj
62
83
  name: Blog
63
84
  settings:
64
85
  global:
@@ -77,6 +77,7 @@ pt-BR:
77
77
  create: Criar
78
78
  destroy: Excluir
79
79
  endorse: Endossar
80
+ update: Atualizar
80
81
  name: Blog
81
82
  settings:
82
83
  global:
@@ -57,6 +57,9 @@ pt:
57
57
  read_more: Ler mais
58
58
  components:
59
59
  blogs:
60
+ actions:
61
+ comment: Comentar
62
+ endorse: Apoiar
60
63
  name: Blog
61
64
  settings:
62
65
  global:
@@ -1 +1,80 @@
1
+ ---
1
2
  sq:
3
+ activemodel:
4
+ attributes:
5
+ post:
6
+ body: Përmbajtja
7
+ decidim_author_id: Autor
8
+ published_at: Koha e publikimit
9
+ title: Titulli
10
+ models:
11
+ decidim/blogs/create_post_event: Postim i ri
12
+ activerecord:
13
+ models:
14
+ decidim/blogs/post:
15
+ one: Postim
16
+ other: Postimet
17
+ decidim:
18
+ blogs:
19
+ actions:
20
+ author_id: Krijo postimin si
21
+ confirm_destroy: Je i sigurt që dëshiron ta fshish këtë postim?
22
+ destroy: Fshij
23
+ edit: Përpuno
24
+ new: Postim i ri
25
+ title: Veprime
26
+ admin:
27
+ posts:
28
+ edit:
29
+ save: Përditëso
30
+ title: Përpuno postimin
31
+ index:
32
+ title: Postimet
33
+ new:
34
+ create: Krijo
35
+ title: Krijo postimin
36
+ update:
37
+ invalid: Ndodhi një problem gjatë krijimit të këtij postimi.
38
+ admin_log:
39
+ post:
40
+ create: "%{user_name} krijoi postimin %{resource_name} në %{space_name}"
41
+ delete: "%{user_name} fshiu postimin %{resource_name} nga %{space_name}"
42
+ update: "%{user_name} përditësoi postimin %{resource_name} në %{space_name}"
43
+ models:
44
+ post:
45
+ fields:
46
+ author: Autor
47
+ body: Përmbajtja
48
+ official_blog_post: Postimi zyrtar
49
+ title: Titulli
50
+ posts:
51
+ index:
52
+ empty: Nuk ka ende postime.
53
+ components:
54
+ blogs:
55
+ actions:
56
+ comment: Koment
57
+ create: Krijo
58
+ destroy: Fshij
59
+ endorse: Mirato
60
+ update: Përditëso
61
+ name: Blog
62
+ settings:
63
+ global:
64
+ announcement: Njoftim
65
+ comments_enabled: Komentet janë aktivizuar
66
+ comments_max_length: Gjatësia maksimale e komenteve (Lëre 0 për vlerën e paracaktuar)
67
+ step:
68
+ announcement: Njoftim
69
+ comments_blocked: Komentet të bllokuara
70
+ endorsements_blocked: Mbështetjet të bllokuara
71
+ endorsements_enabled: Mbështetjet të aktivizuara
72
+ events:
73
+ blogs:
74
+ post_created:
75
+ email_intro: Postimi "%{resource_title}" është publikuar në "%{participatory_space_title}" që ju po ndiqni.
76
+ email_outro: Ju e keni marrë këtë njoftim sepse po ndiqni %{participatory_space_title}. Mund t'i ndaloni njoftimet me anë të linkut të mëparshëm.
77
+ email_subject: Postimi i ri i publikuar në %{participatory_space_title}
78
+ notification_title: Postimi <a href="%{resource_path}">%{resource_title}</a> është publikuar në %{participatory_space_title}
79
+ statistics:
80
+ posts_count: Postimet
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path("lib", __dir__)
4
+
5
+ # Maintain your gem's version:
6
+ require "decidim/blogs/version"
7
+
8
+ # Describe your gem and declare its dependencies:
9
+ Gem::Specification.new do |s|
10
+ s.version = Decidim::Blogs.version
11
+ s.authors = ["Isaac Massot Gil"]
12
+ s.email = ["isaac.mg@coditramuntana.com"]
13
+ s.license = "AGPL-3.0"
14
+ s.homepage = "https://github.com/decidim/decidim"
15
+ s.required_ruby_version = "~> 3.0.0"
16
+
17
+ s.name = "decidim-blogs"
18
+ s.summary = "Decidim blogs module"
19
+ s.description = "A Blog component for decidim's participatory spaces."
20
+
21
+ s.files = Dir.chdir(__dir__) do
22
+ `git ls-files -z`.split("\x0").select do |f|
23
+ (File.expand_path(f) == __FILE__) ||
24
+ f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
25
+ end
26
+ end
27
+
28
+ s.add_dependency "decidim-admin", Decidim::Blogs.version
29
+ s.add_dependency "decidim-comments", Decidim::Blogs.version
30
+ s.add_dependency "decidim-core", Decidim::Blogs.version
31
+
32
+ s.add_development_dependency "decidim-admin", Decidim::Blogs.version
33
+ s.add_development_dependency "decidim-assemblies", Decidim::Blogs.version
34
+ s.add_development_dependency "decidim-dev", Decidim::Blogs.version
35
+ s.add_development_dependency "decidim-participatory_processes", Decidim::Blogs.version
36
+ end
@@ -6,21 +6,32 @@ require "decidim/participatory_processes/test/factories"
6
6
 
7
7
  FactoryBot.define do
8
8
  factory :post_component, parent: :component do
9
- name { Decidim::Components::Namer.new(participatory_space.organization.available_locales, :blogs).i18n_name }
9
+ transient do
10
+ skip_injection { false }
11
+ end
12
+
13
+ name { generate_component_name(participatory_space.organization.available_locales, :blogs, skip_injection: skip_injection) }
10
14
  manifest_name { :blogs }
11
- participatory_space { create(:participatory_process, :with_steps, organization: organization) }
15
+ participatory_space { create(:participatory_process, :with_steps, skip_injection: skip_injection, organization: organization) }
12
16
  end
13
17
 
14
18
  factory :post, class: "Decidim::Blogs::Post" do
15
- title { generate_localized_title }
16
- body { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
17
- component { build(:component, manifest_name: "blogs") }
18
- author { build(:user, :confirmed, organization: component.organization) }
19
+ transient do
20
+ skip_injection { false }
21
+ end
22
+
23
+ title { generate_localized_title(:blog_title, skip_injection: skip_injection) }
24
+ body { generate_localized_description(:blog_body, skip_injection: skip_injection) }
25
+ component { build(:post_component, skip_injection: skip_injection) }
26
+ author { build(:user, :confirmed, skip_injection: skip_injection, organization: component.organization) }
19
27
 
20
28
  trait :with_endorsements do
21
- after :create do |post|
29
+ after :create do |post, evaluator|
22
30
  5.times.collect do
23
- create(:endorsement, resource: post, author: build(:user, organization: post.participatory_space.organization))
31
+ create(:endorsement,
32
+ resource: post,
33
+ skip_injection: evaluator.skip_injection,
34
+ author: build(:user, skip_injection: evaluator.skip_injection, organization: post.participatory_space.organization))
24
35
  end
25
36
  end
26
37
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-pages version.
5
5
  module Blogs
6
6
  def self.version
7
- "0.27.5"
7
+ "0.27.6"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-blogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.5
4
+ version: 0.27.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Massot Gil
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-20 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,98 +16,98 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.27.5
19
+ version: 0.27.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.27.5
26
+ version: 0.27.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.27.5
33
+ version: 0.27.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.27.5
40
+ version: 0.27.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.27.5
47
+ version: 0.27.6
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.27.5
54
+ version: 0.27.6
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-admin
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.27.5
61
+ version: 0.27.6
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.27.5
68
+ version: 0.27.6
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: decidim-assemblies
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.27.5
75
+ version: 0.27.6
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.27.5
82
+ version: 0.27.6
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: decidim-dev
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.27.5
89
+ version: 0.27.6
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.27.5
96
+ version: 0.27.6
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: decidim-participatory_processes
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 0.27.5
103
+ version: 0.27.6
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 0.27.5
110
+ version: 0.27.6
111
111
  description: A Blog component for decidim's participatory spaces.
112
112
  email:
113
113
  - isaac.mg@coditramuntana.com
@@ -152,7 +152,6 @@ files:
152
152
  - app/views/decidim/blogs/posts/index.html.erb
153
153
  - app/views/decidim/blogs/posts/show.html.erb
154
154
  - config/assets.rb
155
- - config/environment.rb
156
155
  - config/locales/am-ET.yml
157
156
  - config/locales/ar-SA.yml
158
157
  - config/locales/ar.yml
@@ -185,6 +184,7 @@ files:
185
184
  - config/locales/ga-IE.yml
186
185
  - config/locales/gl.yml
187
186
  - config/locales/gn-PY.yml
187
+ - config/locales/he-IL.yml
188
188
  - config/locales/hr-HR.yml
189
189
  - config/locales/hr.yml
190
190
  - config/locales/hu.yml
@@ -240,6 +240,7 @@ files:
240
240
  - db/migrate/20200320105910_index_foreign_keys_in_decidim_blogs_posts.rb
241
241
  - db/migrate/20200827153709_add_commentable_counter_cache_to_posts.rb
242
242
  - db/migrate/20210310120514_add_followable_counter_cache_to_blogs.rb
243
+ - decidim-blogs.gemspec
243
244
  - lib/decidim/api/blogs_type.rb
244
245
  - lib/decidim/api/post_input_filter.rb
245
246
  - lib/decidim/api/post_input_sort.rb
@@ -256,23 +257,23 @@ homepage: https://github.com/decidim/decidim
256
257
  licenses:
257
258
  - AGPL-3.0
258
259
  metadata: {}
259
- post_install_message:
260
+ post_install_message:
260
261
  rdoc_options: []
261
262
  require_paths:
262
263
  - lib
263
264
  required_ruby_version: !ruby/object:Gem::Requirement
264
265
  requirements:
265
- - - ">="
266
+ - - "~>"
266
267
  - !ruby/object:Gem::Version
267
- version: '3.0'
268
+ version: 3.0.0
268
269
  required_rubygems_version: !ruby/object:Gem::Requirement
269
270
  requirements:
270
271
  - - ">="
271
272
  - !ruby/object:Gem::Version
272
273
  version: '0'
273
274
  requirements: []
274
- rubygems_version: 3.4.22
275
- signing_key:
275
+ rubygems_version: 3.2.22
276
+ signing_key:
276
277
  specification_version: 4
277
278
  summary: Decidim blogs module
278
279
  test_files: []
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Empty line for playing nice with tpope/vim-rails