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.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +9 -7
- data/README.md +2 -5
- data/lib/stigg/generated/operations.rb +900 -253
- data/lib/stigg/version.rb +1 -1
- data/project.json +21 -1
- data/schema.json +26881 -17277
- data/scripts/generate-operations.mjs +1 -1
- data/scripts/generate.sh +4 -1
- data/scripts/publish.sh +7 -0
- data/stigg-api-client.gemspec +30 -0
- metadata +4 -2
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"
|
data/scripts/publish.sh
ADDED
@@ -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.
|
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:
|
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
|