decidim-api 0.1.0 → 0.2.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
  SHA1:
3
- metadata.gz: ffe12ec4d6d5f09c4c2fc611e9cc49b351e220a7
4
- data.tar.gz: 85254b5cc140ef4ef9bb9aace3bdd477ce55a8c7
3
+ metadata.gz: f3ed1ba14c56b9f39db1ab3255e8510a8a486c92
4
+ data.tar.gz: 52fe551fe40f26a9cdfd1ea27ba62cf27afdba11
5
5
  SHA512:
6
- metadata.gz: 312f3c312fccc184f641d424a29b76bbec5de8bd2ece833c8b87223a5a4e2416aa8df530e44490cfcb0bb84fc657b4f5206ccafa30b84a6dd885466a9678750f
7
- data.tar.gz: 4cfc32332f8da3433e6eadea321577d48c696ee4d2862f65b09435738334c7328883579a19122a44b782df0d6a90aa3d34407c44d5f25921d50991513a69834d
6
+ metadata.gz: 18f5057e1b2f7a93b43b7e15e18e5d3c0760170a7042200e75b0241334bf23f9ecacdaef2d64791136b10abaf20760ff9eaf52e05b19510194f693498a235d37
7
+ data.tar.gz: 28290e5a0a66c41c80ff3f207263b1138011a15b889a0eba79e58864d939ff62e3208828caaea43dd759c0c206844d923f533e96c058b2437e7c2ea7e2ab9867
data/Rakefile CHANGED
@@ -1,2 +1,3 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "decidim/dev/common_rake"
@@ -1,3 +1,5 @@
1
+ /* eslint-disable react/jsx-no-undef */
2
+
1
3
  // = require jquery
2
4
  // = require decidim/api/react
3
5
  // = require decidim/api/react-dom
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Decidim
3
4
  module Api
4
5
  # Base controller for `decidim-api`. All other controllers inherit from this.
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Decidim
3
4
  module Api
4
5
  # This controller takes queries from an HTTP endpoint and sends them out to
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Decidim
3
4
  module Api
4
5
  # This controller takes queries from an HTTP endpoint and sends them out to
data/config/routes.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  Decidim::Api::Engine.routes.draw do
3
4
  mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/api", as: :graphiql
4
5
  get "/docs", to: "documentation#show", as: :documentation
data/lib/decidim/api.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "decidim/api/engine"
3
4
 
4
5
  module Decidim
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "graphql"
3
4
  require "graphiql/rails"
4
5
  require "rack/cors"
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Decidim
3
4
  module Api
4
5
  # This type represents the root mutation type of the whole API
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Decidim
3
4
  module Api
4
5
  # This type represents the root query type of the whole API.
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Decidim
3
4
  module Api
4
5
  # Main GraphQL schema for decidim's API.
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  RSpec.shared_context "graphql type" do
3
4
  let!(:current_organization) { create(:organization) }
4
5
  let!(:current_user) { create(:user, organization: current_organization) }
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.1.0
4
+ version: 0.2.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: 2017-05-18 00:00:00.000000000 Z
13
+ date: 2017-06-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 1.5.3
35
+ version: 1.6.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 1.5.3
42
+ version: 1.6.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: graphiql-rails
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -88,14 +88,14 @@ dependencies:
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.1.0
91
+ version: 0.2.0
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.1.0
98
+ version: 0.2.0
99
99
  description: API engine for decidim
100
100
  email:
101
101
  - josepjaume@gmail.com