decidim-api 0.17.2 → 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: 816bd115d2c4949ccd0dfbc7d8130e3c25e0fd4ab981d743baf0cae1bbb9e3f4
4
- data.tar.gz: 1f90ded819ce5b8e333ea5b8974d8fd42279a97c69c0dc6c63699589a38e7c46
3
+ metadata.gz: 6ede2d9f0980641504e7ff4aec97759a6c05a314bcef716457507f71943a338d
4
+ data.tar.gz: a58a1e708b2ab68a4331a0d5f3af08f8aa60cc5b0b9ec4802ab544d2f3c16160
5
5
  SHA512:
6
- metadata.gz: 3ca6ae705140b192a0ffa7f40b097addf86432399335a6d7d28c33a1ae6807978a10a3ba8b4a553da88cb3c92eca5dd54440a4dce1ab0b19c4f75c9fc61031f2
7
- data.tar.gz: b5ef790af1a464de06fa6cad83613ab09fa3861e687643e2334d7d56f2056c65bc12e0743d2c129529d11f37721d10cade2f4ac223d55822706324306c9a17aa
6
+ metadata.gz: 239c65a26226ecc0dac546602c186575986bfc9e50bcd34c0c4bc51a2d2ddadaf5f43093867e50bc17fcfc529d769ef43d6c3fa0ccd7feec697090e1b55d75b2
7
+ data.tar.gz: a019a8560073799b99bad28c50972339cd6d25862428313412976b4749c60c5f83ae94387a89ba90ec3589c5b4a4b6f2e2e6f222ba7f96a9172135e5035a4fae
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable react/jsx-no-undef */
2
2
 
3
- // = require jquery
3
+ // = require jquery3
4
4
  // = require decidim/api/react
5
5
  // = require decidim/api/react-dom
6
6
  // = require decidim/api/graphql-docs
@@ -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.2"
7
+ "0.20.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.17.2
4
+ version: 0.20.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-07-03 00:00:00.000000000 Z
13
+ date: 2020-01-08 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.2
83
+ version: 0.20.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.17.2
90
+ version: 0.20.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.17.2
97
+ version: 0.20.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.17.2
104
+ version: 0.20.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.17.2
111
+ version: 0.20.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.17.2
118
+ version: 0.20.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.17.2
125
+ version: 0.20.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.17.2
132
+ version: 0.20.0
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