graphql-extras 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c08fc8a7e24470fcf0d5ca6752e2a8576c83e2dde1aea5d72e4dcf0264ede74
4
- data.tar.gz: 923e2158166cc38655e0e3aa7987143b5652ca04061f45352c8910766a1ae172
3
+ metadata.gz: 1a587f57b312930a4acbc2e05a5085e88ad87091e63071a84e4a2dc44d9579e1
4
+ data.tar.gz: 70e3df8ee4eaf5aad6ebda59d82cabf1bdb003e2b1cf71c34dd091246dd4363c
5
5
  SHA512:
6
- metadata.gz: 20a2352c191d9bab87d292c141e1e89bca5d8444b89ef9c41f74c648326f2de0bb28c976e3bbbee3b45ac964eb750a4232f10413d8ddd9aff3cc9944065731e4
7
- data.tar.gz: 92e9ec2ab58a9d6735f8114ae7efb8096edeb5d059bd494a08f10479d0d546d21303379c313e6289889466261fa58d810606f8520e5f085ec6bd8b4fc0ae9669
6
+ metadata.gz: cda336492a615c8df70e3d1093f2820fef1ffc3bbd246e7c0e2f501f710c325ec72fb7ceb9ef61d5f842ebf9b7318706b0763eb85fd2d6363160888194cec5e3
7
+ data.tar.gz: 1b69edd0f8ed98069bf9f07c019b62cddd6272eda5dfdc7c729a5c49d0017e6da742dcf1ec366f48f449f528fcb9720cb96468a497ec4df534b8e6844bcf2905
@@ -6,10 +6,19 @@ module GraphQL
6
6
  module Extras
7
7
  module Types
8
8
  class DateTime < GraphQL::Types::ISO8601DateTime
9
+ description <<~DESC
10
+ The `DateTime` scalar type represents a date and time in the UTC
11
+ timezone. The DateTime appears in a JSON response as an ISO8601 formatted
12
+ string, including UTC timezone ("Z"). The parsed date and time string will
13
+ be converted to UTC and any UTC offset other than 0 will be rejected.
14
+ DESC
9
15
  end
10
16
 
11
17
  class Date < GraphQL::Schema::Scalar
12
- description "An ISO 8601-encoded date"
18
+ description <<~DESC
19
+ The `Date` scalar type represents a date. The Date appears in a JSON
20
+ response as an ISO8601 formatted string.
21
+ DESC
13
22
 
14
23
  def self.coerce_input(value, _context)
15
24
  ::Date.iso8601(value)
@@ -23,7 +32,11 @@ module GraphQL
23
32
  end
24
33
 
25
34
  class Decimal < GraphQL::Schema::Scalar
26
- description "A decimal"
35
+ description <<~DESC
36
+ The `Decimal` scalar type represents signed double-precision fractional
37
+ values parsed by the `Decimal` library. The Decimal appears in a JSON
38
+ response as a string to preserve precision.
39
+ DESC
27
40
 
28
41
  def self.coerce_input(value, _context)
29
42
  BigDecimal(value.to_s)
@@ -37,6 +50,8 @@ module GraphQL
37
50
  end
38
51
 
39
52
  class Upload < GraphQL::Schema::Scalar
53
+ description "Represents an uploaded file."
54
+
40
55
  def self.coerce_input(value, context)
41
56
  return nil if value.nil?
42
57
 
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Extras
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Zane