decidim-process_groups_content_block 0.14.3 → 0.14.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb5e104b1a119f90d15316fd213d1953b12a6eba
4
- data.tar.gz: 51f087cce43d9459ec5d737662819c7170c6d821
3
+ metadata.gz: ba8fdb4946cc131ba635d2a1c4c9b53d53007f87
4
+ data.tar.gz: 919e72599be3456eceb49a509bf83e1752a95ccd
5
5
  SHA512:
6
- metadata.gz: 050fa9628c0771c0b074a880a1b383b3836a864f6ab4cf61629761f4963252cafd558407879d7ca763e92fcf32d531b3816998a2e8622f381f3deb52c14bbbae
7
- data.tar.gz: b50c6c2c1291201f32e2d3f70f81b800445da41d3c065ad984115e0ff298b5f6f30e0ec8df39c223acd9fb60d1f358aece5853ea9e88cd151eba1e7fcfb56582
6
+ metadata.gz: b278ec5797c3be3e873615c78ff2595e594fd6f4801dac60a20729d94d797d2438f190b452fa0c5e81a5655bb1f9382dc8efbc5739bb000072f48f6ca9cc20a7
7
+ data.tar.gz: 9e9574c37f268ab3badd332bbd37a6991220586ed5f71f130672ea3d437c3682bfc678792dc9ddb088a789c1a928ad853b96b82a8aa220aafd488e13aa8e8c94
data/README.md CHANGED
@@ -41,6 +41,12 @@ $ DATABASE_USERNAME=<username> DATABASE_PASSWORD=<password> bundle exec rspec
41
41
  Note that the database user has to have rights to create and drop a database in
42
42
  order to create the dummy test app database.
43
43
 
44
+ In case you are using [rbenv](https://github.com/rbenv/rbenv) and have the
45
+ [rbenv-vars](https://github.com/rbenv/rbenv-vars) plugin installed for it, you
46
+ can add these environment variables to the root directory of the project in a
47
+ file named `.rbenv-vars`. In this case, you can omit defining these in the
48
+ commands shown above.
49
+
44
50
  ## License
45
51
 
46
52
  See [LICENSE-AGPLv3.txt](LICENSE-AGPLv3.txt).
@@ -18,7 +18,11 @@ module Decidim
18
18
  def highlighted_groups
19
19
  Decidim::ParticipatoryProcesses::OrganizationPrioritizedParticipatoryProcessGroups.new(
20
20
  current_organization
21
- )
21
+ ).query
22
+ .joins(:participatory_processes)
23
+ .where.not(decidim_participatory_processes: { published_at: nil })
24
+ .group('decidim_participatory_process_groups.id')
25
+ .having('COUNT(decidim_participatory_processes.id) > 0')
22
26
  end
23
27
 
24
28
  def i18n_scope
@@ -1,6 +1,6 @@
1
1
  module Decidim
2
2
  module ProcessGroupsContentBlock
3
- VERSION = "0.14.3"
3
+ VERSION = "0.14.4"
4
4
  DECIDIM_VERSION = "~> 0.14"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-process_groups_content_block
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.3
4
+ version: 0.14.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antti Hukkanen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-21 00:00:00.000000000 Z
11
+ date: 2018-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-core