stigg-api-client 0.1.0 → 0.1.1

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
2
  SHA256:
3
- metadata.gz: eb5028b371f0211e5eb36b851f178f31511e4fab423638d92724e534d120a400
4
- data.tar.gz: 31e5e37fab257d53fd006f5854ad3c8e4650398607a4c7113ba37901eef34df8
3
+ metadata.gz: 3682a31cd8aa4a5829cde58b0edad7bd77dc28b9b38a42ab0a9f9a1ed329817a
4
+ data.tar.gz: c5c3512b9992d1f5b28f8838469b37298a23359acd76b567e9afb689f80a4cfe
5
5
  SHA512:
6
- metadata.gz: 84fde9de567650ab41a0ee5f13f7322303dae573457dbe276082c77dce300b1444ab3d1e7f8f0f087dd5c790ffa1abca16ef349387603f3c80cced268882f994
7
- data.tar.gz: 3dbab4968ff612a628dca33a59766b802d397d6a48d5a4ab8c06f2c809790eaf89383126380df2e8336d44dbfcee0c753a134a9eb96beb77b06d359ae1c877ea
6
+ metadata.gz: 1a266c7bd536876c55089c7a1c675bdb9f17c4188c32fe22ab46dd02093b60f83739d9e504a09fdfc9fd0bf3da15f2b22ce0b6251efb5c5df71d67836066c0a0
7
+ data.tar.gz: abdbfd5826d3d11a914a87ed2952aa2fc5cbf8f80af08eb6ab6dfa9e855cfa47f2b73d65238b584eb43ae9b7d0f4f5dcb0d68a75551f374f489dce56cd491c47
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (0.1.0)
4
+ stigg-api-client (0.1.1)
5
5
  graphlient (~> 0.7.0)
6
6
 
7
7
  GEM
data/lib/stigg/client.rb CHANGED
@@ -19,6 +19,8 @@ module Stigg
19
19
  # @param [String api_url
20
20
  # @return [Client]
21
21
  def create_client(api_key, api_url = "https://api.stigg.io/graphql", request_timeout=30)
22
+ schema_path = File.join(__dir__, '../../schema.json').to_s
23
+
22
24
  client = Graphlient::Client.new(
23
25
  api_url,
24
26
  headers: {
@@ -28,7 +30,7 @@ module Stigg
28
30
  read_timeout: request_timeout,
29
31
  write_timeout: request_timeout
30
32
  },
31
- schema_path: 'schema.json'
33
+ schema_path: schema_path
32
34
  )
33
35
 
34
36
  Client.new(client)
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg