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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af9fa1cb96cd3d2e6d145267c14c58dcf8d8c7a1447cfe824744ec5eba0cad03
4
- data.tar.gz: 7c24953bb0c44591e51e381c3e514726239187148c5ec0266beb189f3db1ec0b
3
+ metadata.gz: 2239e120580841a94f58c1a7e15a8be3b2563d352092817905975c69cb69dc26
4
+ data.tar.gz: 3b22d1a1aab96520d240e6728d79754771098cec23b8275e0d63c1e06f4c2f7f
5
5
  SHA512:
6
- metadata.gz: 70f020f58b6490b0d94b4b3f71f5c74bc4c432a3b19712e626058cf07c8235ae5f4f7001cd334b91f9ec41289af471bb6977987b8d72d283af62866978a83707
7
- data.tar.gz: 27577d19ebb03273470d84ec35ca9a9b5248fe4e67647723a1f5d63ebc18a70a07a6e8ab22be1fa4e7944b0cac75e015bb32ceb8228c13f011b8d6a0d6f7ff63
6
+ metadata.gz: '06876552a00283a6586b03c24730c6ef4a98065897d173170f721d67110e6439e17c7b94ed4ce491cde5be6cb8b559a61a7e07f5c216b13df87d05ad1ce4e7ba'
7
+ data.tar.gz: 442ca29ae8e1f95132c964830ac36dafce8a433d9e5540efaf1fd044991c52d7514206bc4a79f69b5545abbe12a1786df4caec06bb90dc9288433b6e4bbe086c
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'apiql'
7
- spec.version = '0.4.6'
7
+ spec.version = '0.4.7'
8
8
  spec.authors = ['Dmitry Silchenko']
9
9
  spec.email = ['dmitry@desofto.com']
10
10
 
@@ -13,7 +13,10 @@ const APIQL = {
13
13
  return hash
14
14
  },
15
15
 
16
- call(schema, params = {}, form = null) {
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 = {}, form = null) {
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.6
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: 2018-09-04 00:00:00.000000000 Z
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.6
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