graphql-guard 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +5 -5
- data/CHANGELOG.md +5 -1
- data/README.md +2 -2
- data/lib/graphql/guard.rb +1 -1
- data/lib/graphql/guard/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: b06636860d44863e738be1b6e7bfd9431559d4bb32271526144cdcdd2b8ad97c
|
4
|
+
data.tar.gz: 47bd22cf638fd78deee5d1e6ff211ca465be8dfaacf2a792553bdd31a15fe892
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ff2142a28b03afd323ec97755b3e4e3f21fd1b07246023b14154af1a31b783fad9bcda934e3c287adc3ce7dbf1fc76c3560f0650d9366078e4937e04203fefd
|
7
|
+
data.tar.gz: 17a671a32a162bd40773509f07f94d50df969ed4060b1bd24b2fe44f734d04e2749816c04ac21e8f3f5f9f0a722b7b9ab2312489910bd2bd0ada2f00c0565749
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6.
|
1
|
+
2.6.5
|
data/.travis.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
|
-
before_install: gem install bundler -v 1.
|
3
|
+
before_install: gem install bundler -v 1.17.3
|
4
4
|
matrix:
|
5
5
|
include:
|
6
6
|
- gemfile: graphql-1.7.gemfile
|
@@ -17,13 +17,13 @@ matrix:
|
|
17
17
|
rvm: 2.4.5
|
18
18
|
- gemfile: graphql-1.7.gemfile
|
19
19
|
env: GRAPHQL_RUBY_VERSION=1_7 CI=true
|
20
|
-
rvm: 2.5.
|
20
|
+
rvm: 2.5.7
|
21
21
|
- gemfile: graphql-1.8.gemfile
|
22
22
|
env: GRAPHQL_RUBY_VERSION=1_8 CI=true
|
23
|
-
rvm: 2.5.
|
23
|
+
rvm: 2.5.7
|
24
24
|
- gemfile: graphql-1.7.gemfile
|
25
25
|
env: GRAPHQL_RUBY_VERSION=1_7 CI=true
|
26
|
-
rvm: 2.6.
|
26
|
+
rvm: 2.6.5
|
27
27
|
- gemfile: graphql-1.8.gemfile
|
28
28
|
env: GRAPHQL_RUBY_VERSION=1_8 CI=true
|
29
|
-
rvm: 2.6.
|
29
|
+
rvm: 2.6.5
|
data/CHANGELOG.md
CHANGED
@@ -8,10 +8,14 @@ one of the following labels: `Added`, `Changed`, `Deprecated`,
|
|
8
8
|
to manage the versions of this gem so
|
9
9
|
that you can set version constraints properly.
|
10
10
|
|
11
|
-
#### [Unreleased](https://github.com/exAspArk/graphql-guard/compare/v1.
|
11
|
+
#### [Unreleased](https://github.com/exAspArk/graphql-guard/compare/v1.3.0...HEAD)
|
12
12
|
|
13
13
|
* WIP
|
14
14
|
|
15
|
+
#### [v1.3.0](https://github.com/exAspArk/graphql-guard/compare/v1.2.2...v1.3.0) – 2019-10-24
|
16
|
+
|
17
|
+
* `Added`: More descriptive default error message for `NotAuthorizedError`. [#32](https://github.com/exAspArk/graphql-guard/pull/32)
|
18
|
+
|
15
19
|
#### [v1.2.2](https://github.com/exAspArk/graphql-guard/compare/v1.2.1...v1.2.2) – 2019-03-04
|
16
20
|
|
17
21
|
* `Fixed`: compatibility with Ruby 2.6 and `graphql` gem version 1.7. [#26](https://github.com/exAspArk/graphql-guard/pull/26)
|
data/README.md
CHANGED
@@ -26,8 +26,8 @@ This gem provides a field-level authorization for [graphql-ruby](https://github.
|
|
26
26
|
* [License](#license)
|
27
27
|
* [Code of Conduct](#code-of-conduct)
|
28
28
|
|
29
|
-
<a href="https://www.
|
30
|
-
<img src="images/
|
29
|
+
<a href="https://www.hyrestaff.com/" target="_blank" rel="noopener noreferrer">
|
30
|
+
<img src="images/hyre.png" height="39" width="137" alt="Sponsored by Hyre" style="max-width:100%;">
|
31
31
|
</a>
|
32
32
|
|
33
33
|
## Usage
|
data/lib/graphql/guard.rb
CHANGED
@@ -6,7 +6,7 @@ require "graphql/guard/version"
|
|
6
6
|
module GraphQL
|
7
7
|
class Guard
|
8
8
|
ANY_FIELD_NAME = :'*'
|
9
|
-
DEFAULT_NOT_AUTHORIZED = ->(type, field) { raise NotAuthorizedError.new("#{type}.#{field}") }
|
9
|
+
DEFAULT_NOT_AUTHORIZED = ->(type, field) { raise NotAuthorizedError.new("Not authorized to access: #{type}.#{field}") }
|
10
10
|
|
11
11
|
NotAuthorizedError = Class.new(StandardError)
|
12
12
|
|
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.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- exAspArk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
|
-
rubygems_version: 3.0.
|
119
|
+
rubygems_version: 3.0.3
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Simple authorization gem for graphql-ruby
|