google-apis-generator 0.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d5cacbe3759485e6ce62d3ee51807cbe764aae9b536f6f2ec635dbcffe506d5
4
- data.tar.gz: 6b9cc7f244fca394d0bd785aea5e4b8d3f5856cafb4d660c76b61d85d9d53423
3
+ metadata.gz: d6c7c7c5aa1043d0246fa0d5136a2ee6cb61f94e23dc63521a6322732afb7576
4
+ data.tar.gz: 2f93c766024963523dfbe41e052b2ced84a3ad0268ca7d1e31ea09be6507acf9
5
5
  SHA512:
6
- metadata.gz: 280fc7f56428bc07211c94574b70ca7a5397176f4e923993f0bc717a9dc16553fc559e070179e4db1e1732f54b902ebfdba18e46402e04a4f5e330a9489d8499
7
- data.tar.gz: 4e1a1be0972dec747923c9c5075446b15a7a5d500647cf360c64d98ea9d9d15e32f13894fc857c257790c4121ac834dccb97b0304a164f09ed6ab3cc57ae4706
6
+ metadata.gz: a37167d3772ba5f8534b66c14533eedc113fbe90ed57f90e7d3d3c1fa940e961cddaa6aa90c23ad15eaab23c2931836a780f2e758379e1aa05083c115d939a97
7
+ data.tar.gz: 88d83005a702a135a3186ecc287245384cc1a15e3594b5c94845a0aac8cafa0e4175a4ae127a82cf60ca99273d018a5b0716ef70ef543dda21ea8e40ad97b14e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release History
2
2
 
3
+ ### 0.18.0 (2025-05-22)
4
+
5
+ #### Features
6
+
7
+ * Generate toys file for each client ([#23217](https://github.com/googleapis/google-api-ruby-client/issues/23217))
8
+
9
+ ### 0.17.0 (2025-04-30)
10
+
11
+ #### Features
12
+
13
+ * ruby 3.1 minimum, 3.4 default ([#22594](https://github.com/googleapis/google-api-ruby-client/issues/22594))
14
+
3
15
  ### 0.16.0 (2025-01-10)
4
16
 
5
17
  #### Bug Fixes
@@ -28,6 +28,6 @@ Gem::Specification.new do |gem|
28
28
  gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("*.md") + [".yardopts"]
29
29
  gem.require_paths = ["lib"]
30
30
 
31
- gem.required_ruby_version = '>= 2.7'
31
+ gem.required_ruby_version = '>= 3.1'
32
32
  gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"
33
33
  end
@@ -83,7 +83,7 @@ The [product documentation](<%= api.documentation_link %>) may provide guidance
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.7+.
86
+ This library is supported on Ruby 3.1+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -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
@@ -15,7 +15,7 @@
15
15
  module Google
16
16
  module Apis
17
17
  class Generator
18
- VERSION = "0.16.0"
18
+ VERSION = "0.18.0"
19
19
  end
20
20
  end
21
21
  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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport
@@ -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.16.0
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:
@@ -145,14 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
146
  requirements:
146
147
  - - ">="
147
148
  - !ruby/object:Gem::Version
148
- version: '2.7'
149
+ version: '3.1'
149
150
  required_rubygems_version: !ruby/object:Gem::Requirement
150
151
  requirements:
151
152
  - - ">="
152
153
  - !ruby/object:Gem::Version
153
154
  version: '0'
154
155
  requirements: []
155
- rubygems_version: 3.6.2
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: []