github-graphql 1.1.2 → 1.2.0

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 +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afed0e342c963c03ff31ec5751f081c29e580048
4
- data.tar.gz: 7ed3f2ba22f772a742d0226d9b16721ae9076fa2
3
+ metadata.gz: b787724c4b0aca62917c14ccc07a76cda920e449
4
+ data.tar.gz: 5e39ec8434559bdcc2994fccfc39bae45ab6b999
5
5
  SHA512:
6
- metadata.gz: b9fcf8aabd49a55be437ea9c8d6b3397274204c325926ffad2a2f426cb1a5029353da02e4ddf6d99e3c7620c52a946f4aaa78ac99230a89fdfa456ef07b20541
7
- data.tar.gz: 5e723df6044835208180126053c368572bd5328ae137884e502094e3ff6757b9be2ea5e3315cd2541a59b800d477dfb832db240e12b18ebc04eae7d52ded16ec
6
+ metadata.gz: 87926f25f026f87a35a5bb210e3a4b32c83367f69effb38bff62ec77405ab12909ab1cc3cb9b972683e2a3f4dbc068cfa75e7c7b01924317c990505de37ad36f
7
+ data.tar.gz: cde8169468bc8f054cbd5f7dbeb60f980cb14827a16063ba59303ca3e05388e3d08c99a18ac611b12f7466e1d2bad2582a34ac34cf0a4f2a0291ff258f34a998
@@ -37,4 +37,8 @@ module Github
37
37
  JSON.parse(response.body)
38
38
  end
39
39
  end
40
+
41
+ def self.query(token, query, vars = nil)
42
+ GraphQL.new(token, query, vars).query
43
+ end
40
44
  end
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.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Smith