decidim-term_customizer 0.18.0 → 0.19.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: ddc3ca2291e44d29a3d8a137006a7ba1e94ad55490a77059eb2a3fc9837a8fa2
4
- data.tar.gz: c387dad256fb3d261ca71926116831ebca56d89dc5d402fd2f6cfedb7bd59ed2
3
+ metadata.gz: 498fce55a6425a5ce29d3197b19f12a4dbffa479384f1f8ed6acbaa70fa79ee8
4
+ data.tar.gz: f9a3f0573ef2fb5ab1921fd362abc959c4e45b18449722076212f7fa166e05a7
5
5
  SHA512:
6
- metadata.gz: f141278212906ccb425248ee375d604e478e564ae4a424f17d1d3dffa9588560dbd03055df58a0f7ee5ce33d443e0ab15a35228b025d035a9f0357d723db1a9c
7
- data.tar.gz: 76663c880f493298b93252390259a9c1f3f3dc3279b2f18b7b92b73e3af4abade578a0756c79c496167b48d78295dd02dfdc4d96bdae4e00bb21933eccd393ca
6
+ metadata.gz: 2de859e68d0df2109f6abe902394f9d940530f9e787a339a7fed604bd0a7cc7bf4c0f79820415ca05645131a2da36e1b01fe108ca4889c16051a002447f0ebf1
7
+ data.tar.gz: 0c43d3ef38f6833385e96582b212de448912b5390feff26aeda31a3c3c441f730172af93c8a93a96a83fba648151a2156504af8437df2956bdb57509792fea45
@@ -13,13 +13,15 @@ module Decidim
13
13
  # E.g. at the participatory process controller the
14
14
  # `decidim.current_participatory_space` environment variable has not
15
15
  # been set. Therefore, we need to fetch it directly from the
16
- # controller using its private method.
17
- @space =
18
- if controller.respond_to?(:current_participatory_space, true)
19
- controller.send(:current_participatory_space)
20
- else
21
- env["decidim.current_participatory_space"]
22
- end
16
+ # controller using its private method. In some edge cases this may not
17
+ # be implemented (https://github.com/mainio/decidim-module-term_customizer/issues/28)
18
+ # in which case we do not have access to the participatory space.
19
+ if controller.respond_to?(:current_participatory_space, true)
20
+ @space = controller.try(
21
+ :current_participatory_space
22
+ )
23
+ end
24
+ @space ||= env["decidim.current_participatory_space"]
23
25
 
24
26
  @component = env["decidim.current_component"]
25
27
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Decidim
4
4
  module TermCustomizer
5
- VERSION = "0.18.0"
6
- DECIDIM_VERSION = "~> 0.18.0"
5
+ VERSION = "0.19.0"
6
+ DECIDIM_VERSION = "~> 0.19.0"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-term_customizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antti Hukkanen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-28 00:00:00.000000000 Z
11
+ date: 2019-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.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.18.0
26
+ version: 0.19.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.18.0
33
+ version: 0.19.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.18.0
40
+ version: 0.19.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dalli
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -64,56 +64,56 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 0.18.0
67
+ version: 0.19.0
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 0.18.0
74
+ version: 0.19.0
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: decidim-dev
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: 0.18.0
81
+ version: 0.19.0
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: 0.18.0
88
+ version: 0.19.0
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: decidim-participatory_processes
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: 0.18.0
95
+ version: 0.19.0
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: 0.18.0
102
+ version: 0.19.0
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: decidim-proposals
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: 0.18.0
109
+ version: 0.19.0
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: 0.18.0
116
+ version: 0.19.0
117
117
  description: Adds a UI to customize the terms and limit the customizations to specific
118
118
  places.
119
119
  email: