github-graphql 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/github/graphql.rb +2 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a64cda2d0c65307a9429e3f5b87b1b6531b68ca0
4
- data.tar.gz: 1ce6840ad118ee1e55dcf717d261b332c88f831d
3
+ metadata.gz: afed0e342c963c03ff31ec5751f081c29e580048
4
+ data.tar.gz: 7ed3f2ba22f772a742d0226d9b16721ae9076fa2
5
5
  SHA512:
6
- metadata.gz: d4e5fe5039b85c58f8fa981e0d4cef6045f5a34556e3fda604885d8ac6e97e8000f57c845347b8fd1e66fab9c3e699664d766c99190c374bf2928ed945702675
7
- data.tar.gz: 4186337cc3e5c0f15ba0122928dbbdd985fbd6f3eb8811be941ae084ca5df082b57858fe8cbae9d96f302489f00a8661846dd47b3b7dca68812cb4b535b91492
6
+ metadata.gz: b9fcf8aabd49a55be437ea9c8d6b3397274204c325926ffad2a2f426cb1a5029353da02e4ddf6d99e3c7620c52a946f4aaa78ac99230a89fdfa456ef07b20541
7
+ data.tar.gz: 5e723df6044835208180126053c368572bd5328ae137884e502094e3ff6757b9be2ea5e3315cd2541a59b800d477dfb832db240e12b18ebc04eae7d52ded16ec
@@ -21,10 +21,12 @@ module Github
21
21
  end
22
22
 
23
23
  def token(token)
24
+ raise ArgumentError, 'Cannot have nil token!', caller if token.nil?
24
25
  @request['Authorization'] = "bearer #{token}"
25
26
  end
26
27
 
27
28
  def payload(query, vars = nil)
29
+ raise ArgumentError, 'Cannot have nil query!', caller if query.nil?
28
30
  @payload['query'] = query
29
31
  @payload['variables'] = vars
30
32
  @request.body = @payload.to_json
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Smith