google-apis-generator 0.17.0 → 0.18.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/CHANGELOG.md +6 -0
- data/lib/google/apis/generator/templates/toys.rb.tmpl +57 -0
- data/lib/google/apis/generator/version.rb +1 -1
- data/lib/google/apis/generator.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6c7c7c5aa1043d0246fa0d5136a2ee6cb61f94e23dc63521a6322732afb7576
|
4
|
+
data.tar.gz: 2f93c766024963523dfbe41e052b2ced84a3ad0268ca7d1e31ea09be6507acf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a37167d3772ba5f8534b66c14533eedc113fbe90ed57f90e7d3d3c1fa940e961cddaa6aa90c23ad15eaab23c2931836a780f2e758379e1aa05083c115d939a97
|
7
|
+
data.tar.gz: 88d83005a702a135a3186ecc287245384cc1a15e3594b5c94845a0aac8cafa0e4175a4ae127a82cf60ca99273d018a5b0716ef70ef543dda21ea8e40ad97b14e
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,57 @@
|
|
1
|
+
expand :clean, paths: :gitignore
|
2
|
+
|
3
|
+
expand :rspec do |t|
|
4
|
+
t.libs = ["lib", "spec"]
|
5
|
+
t.use_bundler
|
6
|
+
end
|
7
|
+
|
8
|
+
expand :yardoc do |t|
|
9
|
+
t.generate_output_flag = true
|
10
|
+
t.use_bundler
|
11
|
+
end
|
12
|
+
|
13
|
+
expand :gem_build
|
14
|
+
|
15
|
+
tool "bundle" do
|
16
|
+
flag :update
|
17
|
+
|
18
|
+
include :exec, e: true
|
19
|
+
|
20
|
+
def run
|
21
|
+
exec ["bundle", update ? "update" : "install"]
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
tool "ci" do
|
26
|
+
include :terminal
|
27
|
+
include :exec
|
28
|
+
|
29
|
+
def run
|
30
|
+
Dir.chdir context_directory
|
31
|
+
@gem_name = File.basename context_directory
|
32
|
+
@failures = []
|
33
|
+
step "bundle"
|
34
|
+
step "spec"
|
35
|
+
step "yardoc"
|
36
|
+
step "build"
|
37
|
+
if @failures.empty?
|
38
|
+
puts "CI SUCEEDED", :green, :bold
|
39
|
+
else
|
40
|
+
puts "CI FAILED", :red, :bold
|
41
|
+
@failures.each { |name| puts " failed: #{name}", :red, :bold }
|
42
|
+
exit 1
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def step tool
|
47
|
+
full_name = "#{@gem_name}:#{tool}"
|
48
|
+
puts "Starting: #{full_name}...", :cyan, :bold
|
49
|
+
result = exec_separate_tool [tool]
|
50
|
+
if result.success?
|
51
|
+
puts "SUCCESS: #{full_name}", :green, :bold
|
52
|
+
else
|
53
|
+
@failures << full_name
|
54
|
+
puts "FAILED: #{full_name}", :red, :bold
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -79,6 +79,7 @@ module Google
|
|
79
79
|
result.files[result.version_path] = render_template("initial-gem_version.rb", context)
|
80
80
|
result.files[File.join(spec_path, "generated_spec.rb")] = render_template("generated_spec.rb", context)
|
81
81
|
result.files[File.join(base_path, ".repo-metadata.json")] = render_template("repo-metadata.json", context)
|
82
|
+
result.files[File.join(base_path, ".toys.rb")] = render_template("toys.rb", context)
|
82
83
|
result
|
83
84
|
end
|
84
85
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- lib/google/apis/generator/templates/repo-metadata.json.tmpl
|
129
129
|
- lib/google/apis/generator/templates/representations.rb.tmpl
|
130
130
|
- lib/google/apis/generator/templates/service.rb.tmpl
|
131
|
+
- lib/google/apis/generator/templates/toys.rb.tmpl
|
131
132
|
- lib/google/apis/generator/updater.rb
|
132
133
|
- lib/google/apis/generator/version.rb
|
133
134
|
homepage: https://github.com/google/google-api-ruby-client
|
@@ -136,7 +137,7 @@ licenses:
|
|
136
137
|
metadata:
|
137
138
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
138
139
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-generator/CHANGELOG.md
|
139
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-generator/v0.
|
140
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-generator/v0.18.0
|
140
141
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-generator
|
141
142
|
rdoc_options: []
|
142
143
|
require_paths:
|
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
153
|
- !ruby/object:Gem::Version
|
153
154
|
version: '0'
|
154
155
|
requirements: []
|
155
|
-
rubygems_version: 3.6.
|
156
|
+
rubygems_version: 3.6.9
|
156
157
|
specification_version: 4
|
157
158
|
summary: Code generator for legacy Google REST clients
|
158
159
|
test_files: []
|