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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5601d2f7aa039d200df20fa117df18f06a5473f1
4
- data.tar.gz: 73b673e1a522ade77581115a22e2e3c5d5cfdd9e
3
+ metadata.gz: 1aa82bdba6a8574b9ef862cbcfa222935b945334
4
+ data.tar.gz: 0031342b2a99551a01b5abfb0c590e5ea641d210
5
5
  SHA512:
6
- metadata.gz: af9d1074b12a2d82b45d4f90472a7d7f97061eda325787e4a43c726bda1041254e3e4db9fd91f0a25b4677c03851c4bbf9d660cff3aa11ffa1964951deb9552e
7
- data.tar.gz: 5720e2af73259abec92963c3746c787821f547813282cf4dcac9ba32ee224b395684048690edb203c80cbb6513c045f47733588b0db15271a4f6a096ce441eed
6
+ metadata.gz: 28a03cd2bcb52c6e80f9650fa0cc3379722e017a75f099291cfe028ded2e8a1993f62de538d9b17ac156c95fbfcaed2bf99b1283a60abd92661435774d2f35b3
7
+ data.tar.gz: aa3ca97cb51d6d0e5c160d1baa28b7b7e453bea00a2c703f57c7b368a30d4065988af885a189007d88db5f5c770bf268b02a3dc1b32ed75152f1deafd3672b19
@@ -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
- case fragment = ActiveSupport::Inflector.safe_constantize(const_name)
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}"
@@ -29,7 +29,7 @@ module GraphQL
29
29
  # block - Optional block to configure class
30
30
  def initialize(uri, &block)
31
31
  @uri = URI.parse(uri)
32
- class_eval(&block) if block_given?
32
+ singleton_class.class_eval(&block) if block_given?
33
33
  end
34
34
 
35
35
  # Public: Parsed endpoint URI
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.0
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-14 00:00:00.000000000 Z
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: '3.0'
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: '3.0'
69
+ version: 3.2.22
64
70
  - - "<"
65
71
  - !ruby/object:Gem::Version
66
72
  version: '6.0'