decidim-api 0.26.0.rc1 → 0.26.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: f8966fdb7af16d9e87ea0371f1efb1a77fb33da4f353eb88dd9d1f5d96b7980d
4
- data.tar.gz: a39816d4d9db6d4ab1b48daaac293afc77a05d0a01688a63d5fef460c7fc3b14
3
+ metadata.gz: 05bce047e39747af22989f19ea5b4ac80415ad20ac1a8e4c3e359310ad8e576d
4
+ data.tar.gz: c10a390ba0114d1b43dac6c4c87477fe7d312d28c633bf76acea5e1bcd04afb8
5
5
  SHA512:
6
- metadata.gz: 053aa239dc4948331225fd4e6847d3a418500f8716dcd61e820f71ba0224652cb77f78c6e9e443e37ca498fc8f35e6fb77bff032607087b5804a796c277853bb
7
- data.tar.gz: 592a23fabedba0855ec8e7c33110a14bb05d297064d4b0bc380b8f66d896ec3230b857e7dae2b4d73c620ef56f0a5e7f2bb6aef43d62ddeef2cfc15bd3e6fedb
6
+ metadata.gz: bd06d7edc07a5a2fbe99b2972643f735693e58baaafa29f946e895dfce94e6504ee677db97da2cd1d1472553f522fff470fae15c776c5f1b452473c6abd2d1bf
7
+ data.tar.gz: 6b028ffc4d2b3a8f02605f360fcdd1ee827aa44414c22384a9ab0f170bc0b54caf245290aba2e2e368a053c7fce097a6b2ed8573057ddf0c0764b12747b3ec1f
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+
5
+ shared_examples "implements stats type" do
6
+ context "when the space implements stats" do
7
+ let(:expected_data) do
8
+ {
9
+ "stats" => [
10
+ { "name" => "dummies_count_high", "value" => 0 },
11
+ { "name" => "pages_count", "value" => 0 },
12
+ { "name" => "proposals_count", "value" => 0 },
13
+ { "name" => "meetings_count", "value" => 0 },
14
+ { "name" => "budgets_count", "value" => 0 },
15
+ { "name" => "surveys_count", "value" => 0 },
16
+ { "name" => "results_count", "value" => 0 },
17
+ { "name" => "debates_count", "value" => 0 },
18
+ { "name" => "sortitions_count", "value" => 0 },
19
+ { "name" => "posts_count", "value" => 0 },
20
+ { "name" => "elections_count", "value" => 0 }
21
+ ]
22
+ }
23
+ end
24
+
25
+ it "executes sucessfully" do
26
+ expect { response }.not_to raise_error
27
+ end
28
+
29
+ it "returns the correct response" do
30
+ expect(stats_response).to match_array(expected_data["stats"])
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "decidim/api/test/shared_examples/statistics_examples"
@@ -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.26.0.rc1"
7
+ "0.26.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.26.0.rc1
4
+ version: 0.26.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: 2022-01-24 00:00:00.000000000 Z
13
+ date: 2022-03-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: graphql
@@ -19,9 +19,9 @@ dependencies:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: '1.12'
22
- - - ">="
22
+ - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: 1.12.3
24
+ version: '1.13'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,9 +29,9 @@ dependencies:
29
29
  - - "~>"
30
30
  - !ruby/object:Gem::Version
31
31
  version: '1.12'
32
- - - ">="
32
+ - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: 1.12.3
34
+ version: '1.13'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: rack-cors
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -72,56 +72,56 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.26.0.rc1
75
+ version: 0.26.1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.26.0.rc1
82
+ version: 0.26.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: decidim-core
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.26.0.rc1
89
+ version: 0.26.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.26.0.rc1
96
+ version: 0.26.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: decidim-dev
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 0.26.0.rc1
103
+ version: 0.26.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 0.26.0.rc1
110
+ version: 0.26.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: decidim-participatory_processes
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 0.26.0.rc1
117
+ version: 0.26.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 0.26.0.rc1
124
+ version: 0.26.1
125
125
  description: API engine for decidim
126
126
  email:
127
127
  - josepjaume@gmail.com
@@ -155,7 +155,9 @@ files:
155
155
  - lib/decidim/api/mutation_type.rb
156
156
  - lib/decidim/api/query_type.rb
157
157
  - lib/decidim/api/schema.rb
158
+ - lib/decidim/api/test.rb
158
159
  - lib/decidim/api/test/component_context.rb
160
+ - lib/decidim/api/test/shared_examples/statistics_examples.rb
159
161
  - lib/decidim/api/test/type_context.rb
160
162
  - lib/decidim/api/types.rb
161
163
  - lib/decidim/api/types/base_argument.rb
@@ -183,9 +185,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
185
  version: '2.7'
184
186
  required_rubygems_version: !ruby/object:Gem::Requirement
185
187
  requirements:
186
- - - ">"
188
+ - - ">="
187
189
  - !ruby/object:Gem::Version
188
- version: 1.3.1
190
+ version: '0'
189
191
  requirements: []
190
192
  rubygems_version: 3.1.6
191
193
  signing_key: