decidim-api 0.26.0.rc2 → 0.26.2

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: ce8724c03015ee8492adc16450e98dca8248cdcdb2b4ee0b08672032366a465a
4
- data.tar.gz: 4a7912c4b97f4fae948301991c5c4aa4fa13d9e6d3c51325da9071de39bd1bd7
3
+ metadata.gz: f803e5514a9e631c857e34bb58049429c4dbcf1ab079888ac833cf3dc9655071
4
+ data.tar.gz: 4bd72061bfe2ffa54c6f6ae0273d051b1653f61f9c39e8c92c2aa8fd7314def2
5
5
  SHA512:
6
- metadata.gz: b8f408cda33c995f2579a13f887b303b37b615e48f25d0242b4467c348911f56a639c8a4497d1d56e60e5be704f1781c9738dfd42e6a6d581aa6d35e63c13d14
7
- data.tar.gz: 94ebf73426a118a0529b14839895893f738ec1959f21f58a5ade68c4a7d48d353c8224697a9710f8000774548e3481d8ce877c5fedfa006565f8c1191981fe90
6
+ metadata.gz: 3b841dd7d197504ca2ac629605ccd2ab8c5a6cd040f373c8caa445008b2fca5df0e11cad0bb4ad07652112e1c3313c8083798edd47f98f2110212433e7d0d33e
7
+ data.tar.gz: aa3c37a6ca44e6de708ad2ae61abdb94912fd3a0bf91849ed51a3c09fb4412b3feed2cfbac58d9e502e7cfb4143acb0ffbcbe472a58c9c5e1710de5d72415ba9
@@ -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.rc2"
7
+ "0.26.2"
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.rc2
4
+ version: 0.26.2
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-02-02 00:00:00.000000000 Z
13
+ date: 2022-06-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: graphql
@@ -72,56 +72,56 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.26.0.rc2
75
+ version: 0.26.2
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.rc2
82
+ version: 0.26.2
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.rc2
89
+ version: 0.26.2
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.rc2
96
+ version: 0.26.2
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.rc2
103
+ version: 0.26.2
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.rc2
110
+ version: 0.26.2
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.rc2
117
+ version: 0.26.2
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.rc2
124
+ version: 0.26.2
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: