decidim-api 0.28.0 → 0.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/decidim-api.gemspec +45 -0
- data/docs/usage.md +2 -0
- data/lib/decidim/api/engine.rb +3 -3
- data/lib/decidim/api/version.rb +1 -1
- metadata +29 -29
- data/config/environment.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11b5b86606409d604ccb82d74f1dad329bf5969b4c8c595c9e912a8e7124896e
|
4
|
+
data.tar.gz: 0e949b4a54931745b9d9eb0876df470865fbfd16b199e29b63a88b009b0c6147
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6353efdf1f4ea08e900b61ece00e6f1a8c8d6f500ab7025daf3bf17bfd9fc91e0dd36c5058e8942dee91aac906db86d39191c7b56b462133e006aba1e46919c
|
7
|
+
data.tar.gz: 28a8f3b28b843348a4c3d0a257e0828305265d5fba3625b26185cf386c63ff8829d4829ff4d139d7aea696c2cd94980906dbf5df2b67bde52cc00b48de447429
|
data/decidim-api.gemspec
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
# Maintain your gem's version:
|
6
|
+
require "decidim/api/version"
|
7
|
+
|
8
|
+
# Describe your gem and declare its dependencies:
|
9
|
+
Gem::Specification.new do |s|
|
10
|
+
s.version = Decidim::Api.version
|
11
|
+
s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
|
12
|
+
s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
|
13
|
+
s.license = "AGPL-3.0"
|
14
|
+
s.homepage = "https://decidim.org"
|
15
|
+
s.metadata = {
|
16
|
+
"bug_tracker_uri" => "https://github.com/decidim/decidim/issues",
|
17
|
+
"documentation_uri" => "https://docs.decidim.org/",
|
18
|
+
"funding_uri" => "https://opencollective.com/decidim",
|
19
|
+
"homepage_uri" => "https://decidim.org",
|
20
|
+
"source_code_uri" => "https://github.com/decidim/decidim"
|
21
|
+
}
|
22
|
+
s.required_ruby_version = "~> 3.1.0"
|
23
|
+
|
24
|
+
s.name = "decidim-api"
|
25
|
+
s.summary = "Decidim API module"
|
26
|
+
s.description = "API engine for decidim"
|
27
|
+
|
28
|
+
s.files = Dir.chdir(__dir__) do
|
29
|
+
`git ls-files -z`.split("\x0").select do |f|
|
30
|
+
(File.expand_path(f) == __FILE__) ||
|
31
|
+
f.start_with?(*%w(app/ config/ docs/ lib/ Rakefile README.md))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
s.add_dependency "commonmarker", "~> 0.23.0", ">= 0.23.9"
|
36
|
+
s.add_dependency "decidim-core", Decidim::Api.version
|
37
|
+
# Graphql version 2.1 breaks graphql-client compatibility See https://github.com/github/graphql-client/pull/310
|
38
|
+
s.add_dependency "graphql", "~> 2.0.0"
|
39
|
+
s.add_dependency "graphql-docs", "~> 3.0.1"
|
40
|
+
s.add_dependency "rack-cors", "~> 1.0"
|
41
|
+
|
42
|
+
s.add_development_dependency "decidim-comments", Decidim::Api.version
|
43
|
+
s.add_development_dependency "decidim-dev", Decidim::Api.version
|
44
|
+
s.add_development_dependency "decidim-participatory_processes", Decidim::Api.version
|
45
|
+
end
|
data/docs/usage.md
CHANGED
@@ -16,6 +16,8 @@ Typically (although some particular installations may change that) you will find
|
|
16
16
|
|
17
17
|
The GraphQL format is a JSON formatted text that is specified in a query. Response is a JSON object as well. For details about specification check the official [GraphQL site](https://graphql.org/learn/).
|
18
18
|
|
19
|
+
Exercise caution when utilizing the output of this API, as it may include HTML that has not been escaped. Take particular care in handling this data, specially if you intend to render it on a webpage.
|
20
|
+
|
19
21
|
For instance, you can check the version of a Decidim installation by using `curl` in the terminal:
|
20
22
|
|
21
23
|
```bash
|
data/lib/decidim/api/engine.rb
CHANGED
@@ -35,9 +35,9 @@ module Decidim
|
|
35
35
|
initializer "decidim_api.graphiql" do
|
36
36
|
Decidim::GraphiQL::Rails.config.tap do |config|
|
37
37
|
config.query_params = true
|
38
|
-
config.initial_query =
|
39
|
-
File.join(__dir__, "graphiql-initial-query.txt")
|
40
|
-
)
|
38
|
+
config.initial_query = ERB::Util.html_escape(
|
39
|
+
File.read(File.join(__dir__, "graphiql-initial-query.txt"))
|
40
|
+
)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
data/lib/decidim/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.28.
|
4
|
+
version: 0.28.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
8
8
|
- Marc Riera Casals
|
9
9
|
- Oriol Gual Oliva
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: commonmarker
|
@@ -32,6 +32,20 @@ dependencies:
|
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 0.23.9
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: decidim-core
|
37
|
+
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 0.28.1
|
42
|
+
type: :runtime
|
43
|
+
prerelease: false
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - '='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 0.28.1
|
35
49
|
- !ruby/object:Gem::Dependency
|
36
50
|
name: graphql
|
37
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,56 +94,42 @@ dependencies:
|
|
80
94
|
requirements:
|
81
95
|
- - '='
|
82
96
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.28.
|
97
|
+
version: 0.28.1
|
84
98
|
type: :development
|
85
99
|
prerelease: false
|
86
100
|
version_requirements: !ruby/object:Gem::Requirement
|
87
101
|
requirements:
|
88
102
|
- - '='
|
89
103
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.28.
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: decidim-core
|
93
|
-
requirement: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - '='
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: 0.28.0
|
98
|
-
type: :development
|
99
|
-
prerelease: false
|
100
|
-
version_requirements: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - '='
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: 0.28.0
|
104
|
+
version: 0.28.1
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: decidim-dev
|
107
107
|
requirement: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - '='
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 0.28.
|
111
|
+
version: 0.28.1
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
114
|
version_requirements: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - '='
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.28.
|
118
|
+
version: 0.28.1
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
120
|
name: decidim-participatory_processes
|
121
121
|
requirement: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - '='
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.28.
|
125
|
+
version: 0.28.1
|
126
126
|
type: :development
|
127
127
|
prerelease: false
|
128
128
|
version_requirements: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - '='
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: 0.28.
|
132
|
+
version: 0.28.1
|
133
133
|
description: API engine for decidim
|
134
134
|
email:
|
135
135
|
- josepjaume@gmail.com
|
@@ -154,8 +154,8 @@ files:
|
|
154
154
|
- app/views/decidim/api/graphiql/show.html.erb
|
155
155
|
- app/views/layouts/decidim/api/documentation.html.erb
|
156
156
|
- config/assets.rb
|
157
|
-
- config/environment.rb
|
158
157
|
- config/routes.rb
|
158
|
+
- decidim-api.gemspec
|
159
159
|
- docs/usage.md
|
160
160
|
- lib/decidim/api.rb
|
161
161
|
- lib/decidim/api/engine.rb
|
@@ -189,23 +189,23 @@ metadata:
|
|
189
189
|
funding_uri: https://opencollective.com/decidim
|
190
190
|
homepage_uri: https://decidim.org
|
191
191
|
source_code_uri: https://github.com/decidim/decidim
|
192
|
-
post_install_message:
|
192
|
+
post_install_message:
|
193
193
|
rdoc_options: []
|
194
194
|
require_paths:
|
195
195
|
- lib
|
196
196
|
required_ruby_version: !ruby/object:Gem::Requirement
|
197
197
|
requirements:
|
198
|
-
- - "
|
198
|
+
- - "~>"
|
199
199
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
200
|
+
version: 3.1.0
|
201
201
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
202
202
|
requirements:
|
203
203
|
- - ">="
|
204
204
|
- !ruby/object:Gem::Version
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
208
|
-
signing_key:
|
207
|
+
rubygems_version: 3.5.9
|
208
|
+
signing_key:
|
209
209
|
specification_version: 4
|
210
210
|
summary: Decidim API module
|
211
211
|
test_files: []
|
data/config/environment.rb
DELETED