rspec-graphql_assistant 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Gemfile.lock +1 -1
- data/lib/rspec/graphql_assistant/argument_builder.rb +6 -2
- data/lib/rspec/graphql_assistant/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2b4385fedc5038956c0cd64c11ab946f15c62fa2433315537c845fbf4d59625
|
|
4
|
+
data.tar.gz: a31b4b003685dee26cda121145f1314fd2b9506d5fa64e646b85ec6b4d368052
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e70a716d442b013ac61bd03db6939a4befc7db0730be2f2b1c1d8b11c7b111a2a49876c04c58149010ca6d8fff0581b5f45a79f4045930b0d7bd168db4cb6547
|
|
7
|
+
data.tar.gz: 5b660dbe18276a82e7604c1bc9ab0e1f46626079e695a5c15173db8b9b93e787dbfdb414b733c1b429ea830f5d1859fe6a09cd600e8d943cbb41b1a82e8c1da5
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -29,7 +29,7 @@ module RSpec
|
|
|
29
29
|
arg.each do |item|
|
|
30
30
|
result << process_root(item)
|
|
31
31
|
end
|
|
32
|
-
|
|
32
|
+
result.map { |item| "{#{item}}"}.join(', ')
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def process_hash(arg)
|
|
@@ -49,7 +49,11 @@ module RSpec
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
def is_scalar?(arg)
|
|
52
|
-
arg.is_a?(Symbol) ||
|
|
52
|
+
arg.is_a?(Symbol) ||
|
|
53
|
+
arg.is_a?(String) ||
|
|
54
|
+
arg.is_a?(Numeric) ||
|
|
55
|
+
[true, false].include?(arg) ||
|
|
56
|
+
%w[date time].include?(arg.class.to_s.downcase)
|
|
53
57
|
end
|
|
54
58
|
end
|
|
55
59
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-graphql_assistant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Lopatin
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-07-
|
|
11
|
+
date: 2020-07-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|
|
@@ -61,7 +61,7 @@ metadata:
|
|
|
61
61
|
homepage_uri: https://github.com/gingray/rspec-graphql_assistant
|
|
62
62
|
source_code_uri: https://github.com/gingray/rspec-graphql_assistant
|
|
63
63
|
changelog_uri: https://github.com/gingray/rspec-graphql_assistant
|
|
64
|
-
post_install_message:
|
|
64
|
+
post_install_message:
|
|
65
65
|
rdoc_options: []
|
|
66
66
|
require_paths:
|
|
67
67
|
- lib
|
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
77
|
version: '0'
|
|
78
78
|
requirements: []
|
|
79
79
|
rubygems_version: 3.0.8
|
|
80
|
-
signing_key:
|
|
80
|
+
signing_key:
|
|
81
81
|
specification_version: 4
|
|
82
82
|
summary: Collection of RSpec helpers to easy test GraphQL query, mutation, subscription
|
|
83
83
|
test_files: []
|