graphql-client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql/client.rb +7 -1
- data/lib/graphql/client/http.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1aa82bdba6a8574b9ef862cbcfa222935b945334
|
4
|
+
data.tar.gz: 0031342b2a99551a01b5abfb0c590e5ea641d210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28a03cd2bcb52c6e80f9650fa0cc3379722e017a75f099291cfe028ded2e8a1993f62de538d9b17ac156c95fbfcaed2bf99b1283a60abd92661435774d2f35b3
|
7
|
+
data.tar.gz: aa3ca97cb51d6d0e5c160d1baa28b7b7e453bea00a2c703f57c7b368a30d4065988af885a189007d88db5f5c770bf268b02a3dc1b32ed75152f1deafd3672b19
|
data/lib/graphql/client.rb
CHANGED
@@ -153,7 +153,13 @@ module GraphQL
|
|
153
153
|
str = str.gsub(/\.\.\.([a-zA-Z0-9_]+(::[a-zA-Z0-9_]+)+)/) do
|
154
154
|
match = Regexp.last_match
|
155
155
|
const_name = match[1]
|
156
|
-
|
156
|
+
begin
|
157
|
+
fragment = ActiveSupport::Inflector.constantize(const_name)
|
158
|
+
rescue NameError
|
159
|
+
fragment = nil
|
160
|
+
end
|
161
|
+
|
162
|
+
case fragment
|
157
163
|
when FragmentDefinition
|
158
164
|
definition_dependencies.merge(fragment.document.definitions)
|
159
165
|
"...#{fragment.definition_name}"
|
data/lib/graphql/client/http.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -37,6 +37,9 @@ dependencies:
|
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '0.18'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.18.11
|
40
43
|
type: :runtime
|
41
44
|
prerelease: false
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -44,13 +47,16 @@ dependencies:
|
|
44
47
|
- - "~>"
|
45
48
|
- !ruby/object:Gem::Version
|
46
49
|
version: '0.18'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.18.11
|
47
53
|
- !ruby/object:Gem::Dependency
|
48
54
|
name: actionpack
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|
50
56
|
requirements:
|
51
57
|
- - ">="
|
52
58
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
59
|
+
version: 3.2.22
|
54
60
|
- - "<"
|
55
61
|
- !ruby/object:Gem::Version
|
56
62
|
version: '6.0'
|
@@ -60,7 +66,7 @@ dependencies:
|
|
60
66
|
requirements:
|
61
67
|
- - ">="
|
62
68
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
69
|
+
version: 3.2.22
|
64
70
|
- - "<"
|
65
71
|
- !ruby/object:Gem::Version
|
66
72
|
version: '6.0'
|