decidim-api 0.16.1 → 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: a52237eab6df6f2752c6254bc70b4fbce9418b9f685ce2e4431ad67b4d403e4e
4
- data.tar.gz: 1e0e37541c030c8cdac941f8bf59dae728eb27539db75dc8ae63a87a5b6b1368
3
+ metadata.gz: 4e8e0b2036036497d1c6728c24a2e3c46b0af43ca177784691b83c1b4498c6e3
4
+ data.tar.gz: 82f53b72b5fb4c7c5f8191270c1fba6fa3b2355718b6cbaec8a4d0b139459c77
5
5
  SHA512:
6
- metadata.gz: ad696b5986627d79aed035171ce3d147c76dd573819dc55d4386d97880e50900a1df6d50f8e32d48e97ecffe2a34d0d89eca0063de142427081a540e2ecdcfad
7
- data.tar.gz: 2b1d6ab0c2270f107520c01cc1a441ea5f413df763a839a2fce64d621b0a339bcede9f6dd57bef7bd2cce4399f00b4735c2cafb61e094551a8a4c342308f78ae
6
+ metadata.gz: 12065f6b272f7be7a3a7e1d6e0dc66f62810407ed9997be33a46f48cb023733e325b2710f6ecfba39554ee8c19e427d97d1920631706bdcd5b0df0db820509c6
7
+ data.tar.gz: 2a0cb46312a3e090c270f1a764245b08b939e941fa01b2ce2675f6f4d421b9eda3600dbedb389294a148f1885820523e913af3821707ee5774d7d088657f6826
@@ -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.16.1"
7
+ "0.19.0"
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.16.1
4
+ version: 0.19.0
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-03-25 00:00:00.000000000 Z
13
+ date: 2019-10-21 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.16.1
83
+ version: 0.19.0
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.16.1
90
+ version: 0.19.0
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.16.1
97
+ version: 0.19.0
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.16.1
104
+ version: 0.19.0
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.16.1
111
+ version: 0.19.0
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.16.1
118
+ version: 0.19.0
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.16.1
125
+ version: 0.19.0
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.16.1
132
+ version: 0.19.0
139
133
  description: API engine for decidim
140
134
  email:
141
135
  - josepjaume@gmail.com
@@ -178,15 +172,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
172
  requirements:
179
173
  - - ">="
180
174
  - !ruby/object:Gem::Version
181
- version: '2.3'
175
+ version: '2.5'
182
176
  required_rubygems_version: !ruby/object:Gem::Requirement
183
177
  requirements:
184
178
  - - ">="
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