stigg-api-client 0.1.1 → 0.3.0

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.
@@ -2,7 +2,7 @@ import * as gql from 'graphql';
2
2
  import fs from 'fs';
3
3
 
4
4
  const schema = fs.readFileSync(
5
- '../api-client-schema/src/schema.graphql',
5
+ '../api-client-schema/src/generated/schema.graphql',
6
6
  'utf8'
7
7
  );
8
8
 
data/scripts/generate.sh CHANGED
@@ -2,8 +2,9 @@
2
2
  cat ../api-client-schema/src/operations/fragments.graphql > operations.graphql
3
3
  cat ../api-client-schema/src/operations/queries.graphql >> operations.graphql
4
4
  cat ../api-client-schema/src/operations/mutations.graphql >> operations.graphql
5
+ cat ../api-client-schema/src/operations/subscriptions.graphql >> operations.graphql
5
6
 
6
- cp ../api-client-schema/src/schema.json schema.json
7
+ cp ../api-client-schema/src/generated/schema.json schema.json
7
8
 
8
9
  cat <<-EOF > schema.json
9
10
  $(echo { \"data\": ) $(cat schema.json) $(echo })
@@ -12,3 +13,5 @@ EOF
12
13
  node scripts/generate-operations.mjs
13
14
 
14
15
  rubocop -a lib/stigg/generated/operations.rb
16
+
17
+ printf "api-client-ruby generated!\n"
@@ -0,0 +1,7 @@
1
+ bump minor --no-commit --no-bundle
2
+
3
+ rake build
4
+
5
+ rake release
6
+
7
+ printf "api-client-ruby published!\n"
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/stigg/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "stigg-api-client"
7
+ spec.version = Stigg::VERSION
8
+ spec.authors = ["Stigg"]
9
+ spec.email = ["support@stigg.io"]
10
+
11
+ spec.summary = "Stigg API Client"
12
+ spec.description = "Stigg API Client for Ruby"
13
+ spec.homepage = "https://stigg.io"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 3.0.0"
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(__dir__) do
21
+ `git ls-files -z`.split("\x0").reject do |f|
22
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
23
+ end
24
+ end
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ["lib"]
28
+
29
+ spec.add_dependency "graphlient", "~> 0.7.0"
30
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-13 00:00:00.000000000 Z
11
+ date: 2023-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient
@@ -47,6 +47,8 @@ files:
47
47
  - schema.json
48
48
  - scripts/generate-operations.mjs
49
49
  - scripts/generate.sh
50
+ - scripts/publish.sh
51
+ - stigg-api-client.gemspec
50
52
  homepage: https://stigg.io
51
53
  licenses:
52
54
  - MIT