graphql_rails 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +2 -2
- data/lib/graphql_rails/type_parser.rb +3 -3
- data/lib/graphql_rails/version.rb +1 -1
- 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: 349d2e706f6e37ea205a07dff6da8ef90b0cfa7cb4de5e1307085a445ccb45d3
|
4
|
+
data.tar.gz: ae79e6ea80653f21b61ba563bbc9e2cbba97fd317f2cf9e3c09c87b0a223ce60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e92b5d83d83fe272da215aaa00d0e228e2bd7d293dcdcf3d9d6a004c10bfd0fdf1b9cfa481e47a07af2091983da98fcafef501e4b328c4c8caafd6a9f91f65f3
|
7
|
+
data.tar.gz: 308a6b503baad6c87dbcac947e1115a63cdbbe379be19bd2ecb5d108239409ace03c9a20a5acdbe1736f3f58cf30fe5935b57a34c5c4a7f4a56ea76d156ce5b9
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
graphql_rails (0.4.
|
4
|
+
graphql_rails (0.4.2)
|
5
5
|
activesupport (>= 4)
|
6
6
|
graphql (~> 1)
|
7
7
|
|
@@ -31,7 +31,7 @@ GEM
|
|
31
31
|
concurrent-ruby (1.0.5)
|
32
32
|
diff-lcs (1.3)
|
33
33
|
docile (1.3.0)
|
34
|
-
graphql (1.
|
34
|
+
graphql (1.9.3)
|
35
35
|
i18n (1.0.1)
|
36
36
|
concurrent-ruby (~> 1.0)
|
37
37
|
json (2.1.0)
|
@@ -105,4 +105,4 @@ DEPENDENCIES
|
|
105
105
|
simplecov
|
106
106
|
|
107
107
|
BUNDLED WITH
|
108
|
-
1.16.
|
108
|
+
1.16.2
|
data/README.md
CHANGED
@@ -184,7 +184,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
184
184
|
|
185
185
|
## Contributing
|
186
186
|
|
187
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
187
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/samesystem/graphql_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
188
188
|
|
189
189
|
## License
|
190
190
|
|
@@ -192,4 +192,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
192
192
|
|
193
193
|
## Code of Conduct
|
194
194
|
|
195
|
-
Everyone interacting in the GraphqlRails project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
195
|
+
Everyone interacting in the GraphqlRails project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/samesystem/graphql_rails/blob/master/CODE_OF_CONDUCT.md).
|
@@ -82,11 +82,11 @@ module GraphqlRails
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def inner_type_name
|
85
|
-
unparsed_type.to_s.
|
85
|
+
unparsed_type.to_s.tr('[]!', '')
|
86
86
|
end
|
87
87
|
|
88
88
|
def type_by_name
|
89
|
-
TYPE_MAPPING.fetch(inner_type_name) do
|
89
|
+
TYPE_MAPPING.fetch(inner_type_name.downcase) do
|
90
90
|
dynamicly_defined_type || raise(
|
91
91
|
UnknownTypeError,
|
92
92
|
"Type #{unparsed_type.inspect} is not supported. Supported scalar types are: #{TYPE_MAPPING.keys}." \
|
@@ -96,7 +96,7 @@ module GraphqlRails
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def dynamicly_defined_type
|
99
|
-
type_class = inner_type_name.
|
99
|
+
type_class = inner_type_name.safe_constantize
|
100
100
|
return unless type_class.respond_to?(:graphql)
|
101
101
|
|
102
102
|
type_class.graphql.graphql_type
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Povilas Jurčys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
version: '0'
|
173
173
|
requirements: []
|
174
174
|
rubyforge_project:
|
175
|
-
rubygems_version: 2.7.
|
175
|
+
rubygems_version: 2.7.7
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: GrapQL server and client for rails
|