graphql-guard 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +16 -6
- data/CHANGELOG.md +4 -0
- data/lib/graphql/guard.rb +1 -1
- data/lib/graphql/guard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a2e7401f8ee86471223205990a0fa396e1bb4f734e6982a1f48230ee3b98212
|
4
|
+
data.tar.gz: dad0f0a6a5e218a6e0cd6cb9b6f79092c756230a5c596cd3c60948344eb5261b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62666a144b953c0be6dc27cc5e4efebd5493c558a64ae00c764eb814c0b59c679a03972ba612442669843cd5c0dc230fa7f9d8bed056ccad41091e56a1211693
|
7
|
+
data.tar.gz: 5bf860d514e91b26c663437a8b682e16258fcc3165896ef675bc89a3f6ae0c126256c361cfa704627167d865fd39782a6538ed9f14abd667f560f7daca4879b6
|
data/.travis.yml
CHANGED
@@ -1,13 +1,23 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.3.4
|
5
|
-
env:
|
6
|
-
- CI=true
|
7
3
|
before_install: gem install bundler -v 1.15.2
|
8
4
|
matrix:
|
9
5
|
include:
|
10
6
|
- gemfile: graphql-1.7.gemfile
|
11
|
-
env: GRAPHQL_RUBY_VERSION=1_7
|
7
|
+
env: GRAPHQL_RUBY_VERSION=1_7 CI=true
|
8
|
+
rvm: 2.3.4
|
12
9
|
- gemfile: graphql-1.8.gemfile
|
13
|
-
env: GRAPHQL_RUBY_VERSION=1_8
|
10
|
+
env: GRAPHQL_RUBY_VERSION=1_8 CI=true
|
11
|
+
rvm: 2.3.4
|
12
|
+
- gemfile: graphql-1.7.gemfile
|
13
|
+
env: GRAPHQL_RUBY_VERSION=1_7 CI=true
|
14
|
+
rvm: 2.4.3
|
15
|
+
- gemfile: graphql-1.8.gemfile
|
16
|
+
env: GRAPHQL_RUBY_VERSION=1_8 CI=true
|
17
|
+
rvm: 2.4.3
|
18
|
+
- gemfile: graphql-1.7.gemfile
|
19
|
+
env: GRAPHQL_RUBY_VERSION=1_7 CI=true
|
20
|
+
rvm: 2.5.1
|
21
|
+
- gemfile: graphql-1.8.gemfile
|
22
|
+
env: GRAPHQL_RUBY_VERSION=1_8 CI=true
|
23
|
+
rvm: 2.5.1
|
data/CHANGELOG.md
CHANGED
@@ -12,6 +12,10 @@ that you can set version constraints properly.
|
|
12
12
|
|
13
13
|
* WIP
|
14
14
|
|
15
|
+
#### [v1.2.1](https://github.com/exAspArk/graphql-guard/compare/v1.2.0...v1.2.1) – 2018-10-18
|
16
|
+
|
17
|
+
* `Fixed`: compatibility with Ruby 2.5 and `graphql` gem version 1.7. [#21](https://github.com/exAspArk/graphql-guard/pull/21)
|
18
|
+
|
15
19
|
#### [v1.2.0](https://github.com/exAspArk/graphql-guard/compare/v1.1.0...v1.2.0) – 2018-06-29
|
16
20
|
|
17
21
|
* `Added`: support for `graphql` gem version 1.8. [#17](https://github.com/exAspArk/graphql-guard/pull/17)
|
data/lib/graphql/guard.rb
CHANGED
@@ -75,7 +75,7 @@ if GraphQL::ObjectType.respond_to?(:accepts_definitions) # GraphQL-Ruby version
|
|
75
75
|
GraphQL::Field.accepts_definitions(mask: GraphQL::Define.assign_metadata_key(:mask))
|
76
76
|
end
|
77
77
|
|
78
|
-
if GraphQL::Schema::Object.respond_to?(:accepts_definition) # GraphQL-Ruby version >= 1.8
|
78
|
+
if Object.const_defined?('GraphQL::Schema::Object') && GraphQL::Schema::Object.respond_to?(:accepts_definition) # GraphQL-Ruby version >= 1.8
|
79
79
|
GraphQL::Schema::Object.accepts_definition(:guard)
|
80
80
|
GraphQL::Schema::Field.accepts_definition(:guard)
|
81
81
|
GraphQL::Schema::Field.accepts_definition(:mask)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-guard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- exAspArk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|