graphql-guard 1.2.2 → 1.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34a246fe2de402bdd84f388a3469aee83b23bdafcd9225400c0fc3cd9506a383
4
- data.tar.gz: 0efca01c24426cd0b1a35db070cabf37e6a50b0fd712dfd465eae567406ef920
3
+ metadata.gz: b06636860d44863e738be1b6e7bfd9431559d4bb32271526144cdcdd2b8ad97c
4
+ data.tar.gz: 47bd22cf638fd78deee5d1e6ff211ca465be8dfaacf2a792553bdd31a15fe892
5
5
  SHA512:
6
- metadata.gz: 8c63963864a2a3a0aa7a2b7303e1cd1edde6719ea777403ec8ffe405f30da68eaee167745a4ea34ceddae3c5dce361161a36e5f8f3ffb0c6d6d838fe23887dc1
7
- data.tar.gz: df4f04504dda1cb0cca0126c30c49356a776d8a58ccd36a5094f99e4294a7ea9c04007174c654e9bc72aad623244924a5cee3c2c9a1f785e5f7c9742dc3ad41e
6
+ metadata.gz: 5ff2142a28b03afd323ec97755b3e4e3f21fd1b07246023b14154af1a31b783fad9bcda934e3c287adc3ce7dbf1fc76c3560f0650d9366078e4937e04203fefd
7
+ data.tar.gz: 17a671a32a162bd40773509f07f94d50df969ed4060b1bd24b2fe44f734d04e2749816c04ac21e8f3f5f9f0a722b7b9ab2312489910bd2bd0ada2f00c0565749
@@ -1 +1 @@
1
- 2.6.1
1
+ 2.6.5
@@ -1,6 +1,6 @@
1
1
  sudo: false
2
2
  language: ruby
3
- before_install: gem install bundler -v 1.15.2
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.3
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.3
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.1
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.1
29
+ rvm: 2.6.5
@@ -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.2.2...HEAD)
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.universe.com/" target="_blank" rel="noopener noreferrer">
30
- <img src="images/universe.png" height="41" width="153" alt="Sponsored by Universe" style="max-width:100%;">
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
@@ -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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  class Guard
5
- VERSION = "1.2.2"
5
+ VERSION = "1.3.0"
6
6
  end
7
7
  end
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.2
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-03-04 00:00:00.000000000 Z
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.1
119
+ rubygems_version: 3.0.3
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Simple authorization gem for graphql-ruby