graphql-sugar 0.1.4 → 0.1.5
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/CHANGELOG.md +7 -2
- data/lib/graphql/sugar.rb +2 -0
- data/lib/graphql/sugar/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9904961aeb441dbd1d1301a168af2d7a8d21b4b3
|
4
|
+
data.tar.gz: e4cb7ae1d8843b015e38fabdd62b5df10bba17d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9e1a358cc709ea1cd95d92979c87bd442ad56988175b7e51d8a6647a9f730d332560473ae1600062de88117e502be862c7c668da7d30473a020d8ab3d4cecae
|
7
|
+
data.tar.gz: 0a195e8b8b7d7ac8997da8fe0c8a2be5c629c096c602c64488894ac681284d4f68160091f10b54d30c5dd3be4764cecaedb266709bdf87a9a8cace91ea6cdaa0
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.1.5] - 2018-02-13
|
10
|
+
### Fixed
|
11
|
+
- Add checks for `allow_blank` and `allow_nil` (#3)
|
12
|
+
|
9
13
|
## [0.1.4] - 2018-01-26
|
10
14
|
### Fixed
|
11
15
|
- Fix has_many through relationships (#2)
|
@@ -29,8 +33,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
29
33
|
### Added
|
30
34
|
- First release of this gem
|
31
35
|
|
32
|
-
[Unreleased]: https://github.com/keepworks/graphql-sugar/compare/v0.1.
|
33
|
-
[0.1.
|
36
|
+
[Unreleased]: https://github.com/keepworks/graphql-sugar/compare/v0.1.5...HEAD
|
37
|
+
[0.1.5]: https://github.com/keepworks/graphql-sugar/compare/v0.1.4...v0.1.5
|
38
|
+
[0.1.4]: https://github.com/keepworks/graphql-sugar/compare/v0.1.3...v0.1.4
|
34
39
|
[0.1.3]: https://github.com/keepworks/graphql-sugar/compare/v0.1.2...v0.1.3
|
35
40
|
[0.1.2]: https://github.com/keepworks/graphql-sugar/compare/v0.1.1...v0.1.2
|
36
41
|
[0.1.1]: https://github.com/keepworks/graphql-sugar/compare/v0.1.0...v0.1.1
|
data/lib/graphql/sugar.rb
CHANGED
@@ -78,6 +78,8 @@ module GraphQL
|
|
78
78
|
column_validators = model_class.validators_on(column_name)
|
79
79
|
column_validators.any? do |validator|
|
80
80
|
validator.class == ActiveRecord::Validations::PresenceValidator &&
|
81
|
+
!validator.options[:allow_nil] &&
|
82
|
+
!validator.options[:allow_blank] &&
|
81
83
|
!validator.options.key?(:if) &&
|
82
84
|
!validator.options.key?(:unless)
|
83
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-sugar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pradeep Kumar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
118
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.6.
|
119
|
+
rubygems_version: 2.6.13
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: A sweet, extended DSL written on top of the graphql-ruby gem.
|