decidim-sortitions 0.19.1 → 0.20.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
2
  SHA256:
3
- metadata.gz: 1818bde5a6cba9e7201e994adb7cb2b84e2761ea52645f421cfcdb74d0f24b02
4
- data.tar.gz: 4edd8135b75c26bd7f6afe0436eac93d49a424e606d1d73d6efb0fdd87e604c4
3
+ metadata.gz: 72948deb85e5cdbef4fc5a2b63b6d6c6967cf38c337d082866799f77da1acb1b
4
+ data.tar.gz: 00e2de7419e10c78d73c8aae6fa3dc9fc4a3244302eb0eda474770e77aef77ad
5
5
  SHA512:
6
- metadata.gz: 7f5e7a15ba8dacb89217b2666239f08372c80dfff9719a813a96b49f0ad2ba4ad65bc89f770451cb04d9d3c50cbbf8c67a0a6c8108b2a829fd064d86bfd9ac69
7
- data.tar.gz: 601db9e6e33c5284f6e85d506faa3797ffd471d81eeda8189eb0e2d2d2465cdc457a9524ee0bb3b4b04bacf656feb1f76abca04a08e7dbd266bd33770b397fdb
6
+ metadata.gz: 8925e4d5e43a89bfcb60f708e900bca5bf407118977a7258ece47efc8c00ad8da97afc502e037dab5e84dd1a5adf7e808277745478db463419a9c9df93270b2e
7
+ data.tar.gz: 8e83bf43b8de51f7407e41a01db0d4432a673f4fb13baa0ca675868df355ec99de9263be2c255ad06bfe286c5ddf5593ddea4e81a8b5a71fbdc386b6ac39fbea
@@ -25,6 +25,7 @@ module Decidim
25
25
  if category.nil?
26
26
  return Decidim::Proposals::Proposal
27
27
  .except_withdrawn
28
+ .except_drafts
28
29
  .where("created_at < ?", request_timestamp)
29
30
  .where(component: sortition.decidim_proposals_component)
30
31
  .order(id: :asc)
@@ -34,6 +35,7 @@ module Decidim
34
35
  Decidim::Proposals::Proposal
35
36
  .joins(:categorization)
36
37
  .except_withdrawn
38
+ .except_drafts
37
39
  .where(component: sortition.decidim_proposals_component)
38
40
  .where("decidim_proposals_proposals.created_at < ?", request_timestamp)
39
41
  .where("decidim_categorizations.decidim_category_id = ?", category.id)
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module Sortitions
5
5
  def self.version
6
- "0.19.1"
6
+ "0.20.0"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-sortitions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Salvador Perez Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-13 00:00:00.000000000 Z
11
+ date: 2020-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
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.19.1
26
+ version: 0.20.0
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.19.1
33
+ version: 0.20.0
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.19.1
40
+ version: 0.20.0
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.19.1
47
+ version: 0.20.0
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.19.1
54
+ version: 0.20.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-proposals
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.19.1
61
+ version: 0.20.0
62
62
  type: :runtime
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.19.1
68
+ version: 0.20.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: decidim-dev
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.19.1
75
+ version: 0.20.0
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.19.1
82
+ version: 0.20.0
83
83
  description: This module makes possible to select amont a set of proposal by sortition
84
84
  email:
85
85
  - jsperezg@gmail.com