stigg-api-client 0.0.1.pre.b.4 → 0.1.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 +0 -2
- data/Gemfile.lock +7 -11
- data/README.md +5 -2
- data/lib/stigg/client.rb +1 -3
- data/lib/stigg/generated/operations.rb +608 -0
- data/lib/stigg/version.rb +1 -1
- data/package.json +4 -0
- data/project.json +1 -34
- data/schema.json +50719 -0
- data/scripts/generate-operations.mjs +1 -1
- data/scripts/generate.sh +7 -10
- metadata +11 -10
- data/scripts/publish.sh +0 -31
- data/stigg-api-client.gemspec +0 -30
data/scripts/generate.sh
CHANGED
@@ -1,17 +1,14 @@
|
|
1
|
-
#!/bin/bash -e
|
2
|
-
|
3
1
|
# stitch the operation files together
|
4
|
-
cat ../api-client-schema/src/operations
|
2
|
+
cat ../api-client-schema/src/operations/fragments.graphql > operations.graphql
|
3
|
+
cat ../api-client-schema/src/operations/queries.graphql >> operations.graphql
|
4
|
+
cat ../api-client-schema/src/operations/mutations.graphql >> operations.graphql
|
5
5
|
|
6
|
-
|
6
|
+
cp ../api-client-schema/src/schema.json schema.json
|
7
7
|
|
8
|
-
cat <<-EOF >
|
9
|
-
$(echo { \"data\": ) $(cat
|
8
|
+
cat <<-EOF > schema.json
|
9
|
+
$(echo { \"data\": ) $(cat schema.json) $(echo })
|
10
10
|
EOF
|
11
11
|
|
12
12
|
node scripts/generate-operations.mjs
|
13
|
-
rm operations.graphql
|
14
|
-
|
15
|
-
bundle exec rubocop -a lib/stigg/generated/operations.rb
|
16
13
|
|
17
|
-
|
14
|
+
rubocop -a lib/stigg/generated/operations.rb
|
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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stigg
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphlient
|
@@ -40,18 +40,19 @@ files:
|
|
40
40
|
- Rakefile
|
41
41
|
- lib/stigg.rb
|
42
42
|
- lib/stigg/client.rb
|
43
|
+
- lib/stigg/generated/operations.rb
|
43
44
|
- lib/stigg/version.rb
|
45
|
+
- package.json
|
44
46
|
- project.json
|
47
|
+
- schema.json
|
45
48
|
- scripts/generate-operations.mjs
|
46
49
|
- scripts/generate.sh
|
47
|
-
- scripts/publish.sh
|
48
|
-
- stigg-api-client.gemspec
|
49
50
|
homepage: https://stigg.io
|
50
51
|
licenses:
|
51
52
|
- MIT
|
52
53
|
metadata:
|
53
54
|
homepage_uri: https://stigg.io
|
54
|
-
post_install_message:
|
55
|
+
post_install_message:
|
55
56
|
rdoc_options: []
|
56
57
|
require_paths:
|
57
58
|
- lib
|
@@ -62,12 +63,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
63
|
version: 3.0.0
|
63
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
65
|
requirements:
|
65
|
-
- - "
|
66
|
+
- - ">="
|
66
67
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
68
|
+
version: '0'
|
68
69
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
70
|
-
signing_key:
|
70
|
+
rubygems_version: 3.2.3
|
71
|
+
signing_key:
|
71
72
|
specification_version: 4
|
72
73
|
summary: Stigg API Client
|
73
74
|
test_files: []
|
data/scripts/publish.sh
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
#!/bin/bash -e
|
2
|
-
|
3
|
-
VERSION=$1
|
4
|
-
|
5
|
-
if [ -z "$VERSION" ]; then
|
6
|
-
echo "Usage: ./scripts/publish.sh <version>"
|
7
|
-
exit 1
|
8
|
-
fi
|
9
|
-
|
10
|
-
bundle config unset deployment
|
11
|
-
|
12
|
-
bundle exec bump set "${VERSION}" --no-commit --no-bundle
|
13
|
-
git diff
|
14
|
-
|
15
|
-
echo "Building..."
|
16
|
-
bundle exec rake build
|
17
|
-
|
18
|
-
# create a temporary commit, since it's not possible to
|
19
|
-
# release with a dirty working directory
|
20
|
-
TAG="v${VERSION}"
|
21
|
-
echo "Creating temporary commit and tag (${TAG})..."
|
22
|
-
git add .
|
23
|
-
git commit --no-verify -m "tmp commit for ruby release"
|
24
|
-
git tag "${TAG}"
|
25
|
-
|
26
|
-
echo "Releasing..."
|
27
|
-
bundle exec rake release -v || (git tag -d "${TAG}" ; git reset --soft HEAD~1 ; exit 1)
|
28
|
-
git reset --soft HEAD~1
|
29
|
-
git tag -d "${TAG}"
|
30
|
-
|
31
|
-
echo "api-client-ruby published!"
|
data/stigg-api-client.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
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
|