decidim-api 0.17.1 → 0.19.1

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: d626428957ebccc9068db9c369d103db67878c6f139fab7c344c8a6c290f7071
4
- data.tar.gz: 377efe49086dc09455e30724c646bf7b30226203f7832f06cf9122a2c4abaa20
3
+ metadata.gz: 62863937a4950654c49d11b073731bf5d91e702209fdc3ed7889031f23c99d36
4
+ data.tar.gz: 461f8a09b9252e8579ccab1eeeb808e01a874b042be3b9a151b94e152301bff3
5
5
  SHA512:
6
- metadata.gz: c4e98deafde3351025dfaee44a8dd11196a99ff25ebabe6f9b9496ed38d7e98289493150e6ebbb9c4e83e3f33849d05649b04f5ffb7397891daa06b06d3a32f4
7
- data.tar.gz: c531fcfe388df8ee16d414e5643866d3d605b1b738e8f3297a2e84e38c13b5ff0a576de92d87b29d75c16fddeec086bedeacb26bb442f91e20f8f531cb56d65e
6
+ metadata.gz: 235f251dd40c8aa260cbfc935b00d30651a0c8754a70e39b3d20db7211e7d5519ecf1f5b4750f5cb3f811bc7c75c3574229264c4d1c987d6c97d7ac3ed5f0e38
7
+ data.tar.gz: 1da0874abe9e159bdc2163080472f77782dc0cde009cb811480f8b0e984ad16ae235190eccb772967810252ccad89fe17d429d42f6a747ddd9a4d1d692edfb96
@@ -9,8 +9,11 @@ module Decidim
9
9
  include NeedsPermission
10
10
  include ImpersonateUsers
11
11
 
12
+ register_permissions(::Decidim::Api::ApplicationController,
13
+ ::Decidim::Permissions)
14
+
12
15
  def permission_class_chain
13
- [Decidim::Permissions]
16
+ ::Decidim.permissions_registry.chain_for(::Decidim::Api::ApplicationController)
14
17
  end
15
18
 
16
19
  def permission_scope
@@ -8,7 +8,7 @@ module Decidim
8
8
  mutation MutationType
9
9
 
10
10
  default_max_page_size 50
11
- max_depth 10
11
+ max_depth 15
12
12
  max_complexity 300
13
13
 
14
14
  orphan_types(Api.orphan_types)
@@ -36,6 +36,7 @@ shared_context "with a graphql type" do
36
36
  )
37
37
 
38
38
  raise Exception, result["errors"].map { |e| e["message"] }.join(", ") if result["errors"]
39
+
39
40
  result["data"]
40
41
  end
41
42
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-api version.
5
5
  module Api
6
6
  def self.version
7
- "0.17.1"
7
+ "0.19.1"
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-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.1
4
+ version: 0.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-05-27 00:00:00.000000000 Z
13
+ date: 2019-12-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: graphiql-rails
@@ -38,20 +38,14 @@ dependencies:
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.6'
42
- - - "<"
43
- - !ruby/object:Gem::Version
44
- version: 1.8.11
41
+ version: '1.9'
45
42
  type: :runtime
46
43
  prerelease: false
47
44
  version_requirements: !ruby/object:Gem::Requirement
48
45
  requirements:
49
46
  - - "~>"
50
47
  - !ruby/object:Gem::Version
51
- version: '1.6'
52
- - - "<"
53
- - !ruby/object:Gem::Version
54
- version: 1.8.11
48
+ version: '1.9'
55
49
  - !ruby/object:Gem::Dependency
56
50
  name: rack-cors
57
51
  requirement: !ruby/object:Gem::Requirement
@@ -86,56 +80,56 @@ dependencies:
86
80
  requirements:
87
81
  - - '='
88
82
  - !ruby/object:Gem::Version
89
- version: 0.17.1
83
+ version: 0.19.1
90
84
  type: :development
91
85
  prerelease: false
92
86
  version_requirements: !ruby/object:Gem::Requirement
93
87
  requirements:
94
88
  - - '='
95
89
  - !ruby/object:Gem::Version
96
- version: 0.17.1
90
+ version: 0.19.1
97
91
  - !ruby/object:Gem::Dependency
98
92
  name: decidim-core
99
93
  requirement: !ruby/object:Gem::Requirement
100
94
  requirements:
101
95
  - - '='
102
96
  - !ruby/object:Gem::Version
103
- version: 0.17.1
97
+ version: 0.19.1
104
98
  type: :development
105
99
  prerelease: false
106
100
  version_requirements: !ruby/object:Gem::Requirement
107
101
  requirements:
108
102
  - - '='
109
103
  - !ruby/object:Gem::Version
110
- version: 0.17.1
104
+ version: 0.19.1
111
105
  - !ruby/object:Gem::Dependency
112
106
  name: decidim-dev
113
107
  requirement: !ruby/object:Gem::Requirement
114
108
  requirements:
115
109
  - - '='
116
110
  - !ruby/object:Gem::Version
117
- version: 0.17.1
111
+ version: 0.19.1
118
112
  type: :development
119
113
  prerelease: false
120
114
  version_requirements: !ruby/object:Gem::Requirement
121
115
  requirements:
122
116
  - - '='
123
117
  - !ruby/object:Gem::Version
124
- version: 0.17.1
118
+ version: 0.19.1
125
119
  - !ruby/object:Gem::Dependency
126
120
  name: decidim-participatory_processes
127
121
  requirement: !ruby/object:Gem::Requirement
128
122
  requirements:
129
123
  - - '='
130
124
  - !ruby/object:Gem::Version
131
- version: 0.17.1
125
+ version: 0.19.1
132
126
  type: :development
133
127
  prerelease: false
134
128
  version_requirements: !ruby/object:Gem::Requirement
135
129
  requirements:
136
130
  - - '='
137
131
  - !ruby/object:Gem::Version
138
- version: 0.17.1
132
+ version: 0.19.1
139
133
  description: API engine for decidim
140
134
  email:
141
135
  - josepjaume@gmail.com
@@ -185,8 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
179
  - !ruby/object:Gem::Version
186
180
  version: '0'
187
181
  requirements: []
188
- rubyforge_project:
189
- rubygems_version: 2.7.6
182
+ rubygems_version: 3.0.3
190
183
  signing_key:
191
184
  specification_version: 4
192
185
  summary: Decidim API module