apiql 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/apiql.gemspec +1 -1
- data/assets/javascripts/apiql.js +7 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2239e120580841a94f58c1a7e15a8be3b2563d352092817905975c69cb69dc26
|
4
|
+
data.tar.gz: 3b22d1a1aab96520d240e6728d79754771098cec23b8275e0d63c1e06f4c2f7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '06876552a00283a6586b03c24730c6ef4a98065897d173170f721d67110e6439e17c7b94ed4ce491cde5be6cb8b559a61a7e07f5c216b13df87d05ad1ce4e7ba'
|
7
|
+
data.tar.gz: 442ca29ae8e1f95132c964830ac36dafce8a433d9e5540efaf1fd044991c52d7514206bc4a79f69b5545abbe12a1786df4caec06bb90dc9288433b6e4bbe086c
|
data/apiql.gemspec
CHANGED
data/assets/javascripts/apiql.js
CHANGED
@@ -13,7 +13,10 @@ const APIQL = {
|
|
13
13
|
return hash
|
14
14
|
},
|
15
15
|
|
16
|
-
call(schema, params
|
16
|
+
call(schema, params) {
|
17
|
+
if(!params) params = {}
|
18
|
+
if(!form) form = null
|
19
|
+
|
17
20
|
return new Promise((resolve, reject) => {
|
18
21
|
if(params instanceof FormData) {
|
19
22
|
form = params
|
@@ -66,6 +69,8 @@ const APIQL = {
|
|
66
69
|
}
|
67
70
|
}
|
68
71
|
|
69
|
-
function apiql(schema, params
|
72
|
+
function apiql(schema, params, form) {
|
73
|
+
if(!params) params = {}
|
74
|
+
if(!form) form = null
|
70
75
|
return APIQL.call(schema, params, form)
|
71
76
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apiql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Silchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.7.
|
88
|
+
rubygems_version: 2.7.7
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Implementation of the API language similar to GraphQL for Ruby on Rails
|