graphql-sugar 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9904961aeb441dbd1d1301a168af2d7a8d21b4b3
4
- data.tar.gz: e4cb7ae1d8843b015e38fabdd62b5df10bba17d1
2
+ SHA256:
3
+ metadata.gz: 55953fb2831038783e2324834410d6375b7eeb97d60165040e846ce30a0a3ee6
4
+ data.tar.gz: 4f30593332cb50404f96e5a93fc036260423a244c11dd7a46bf9a73b37ef81ec
5
5
  SHA512:
6
- metadata.gz: c9e1a358cc709ea1cd95d92979c87bd442ad56988175b7e51d8a6647a9f730d332560473ae1600062de88117e502be862c7c668da7d30473a020d8ab3d4cecae
7
- data.tar.gz: 0a195e8b8b7d7ac8997da8fe0c8a2be5c629c096c602c64488894ac681284d4f68160091f10b54d30c5dd3be4764cecaedb266709bdf87a9a8cace91ea6cdaa0
6
+ metadata.gz: c4ccd6cbfbd5b5d2ad67a5437dc091788b1dae692ca3f05db7dba7a4d284167a9422d6876ba5e738bc9ab055304c05d381c785ecdf7bc4c2d2fb254442958bee
7
+ data.tar.gz: d94734fd5b4e9278ff267f3dc34c9d9dc9c0ea4e40cbb0a4f8f214d7f9fc583a14a6f530b0fa89d7b1a53805fab5441e5784e52d1433347bdb817f5934e4fa98
@@ -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.6] - 2018-05-18
10
+ ### Fixed
11
+ - Support for MySQL by conditionally checking Postgres-specific `array?`
12
+
9
13
  ## [0.1.5] - 2018-02-13
10
14
  ### Fixed
11
15
  - Add checks for `allow_blank` and `allow_nil` (#3)
@@ -58,7 +58,7 @@ module GraphQL
58
58
  GRAPHQL_TYPE_MAPPING[column_details.type] || GraphQL::STRING_TYPE
59
59
  end
60
60
 
61
- type = type.to_list_type if column_details.array?
61
+ type = type.to_list_type if column_details.respond_to?(:array?) && column_details.array?
62
62
 
63
63
  if enforce_non_null
64
64
  is_not_null = !column_details.null
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Sugar
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
5
5
  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.5
4
+ version: 0.1.6
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-02-13 00:00:00.000000000 Z
11
+ date: 2018-05-18 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.13
119
+ rubygems_version: 2.7.6
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: A sweet, extended DSL written on top of the graphql-ruby gem.