gapic-generator-cloud 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/bin/ruby-cloud-docker-entrypoint +16 -4
- data/lib/gapic/generator/cloud/version.rb +1 -1
- data/templates/cloud/gem/rakefile.erb +2 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa40108edbcc0c4837ddd71c24a8524e11d55a37793c14608e03a9106e63d88b
|
4
|
+
data.tar.gz: a8e291c06bdc9bdf3f0e801a45c8b089d0cd170cd4e2762cc5b12ab2eb0240b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a50e21c3c649b6c8b46316f3b91c23f3bc3476be1a17f7fdc4b034003aee7687fe3a8ac7692308f26dd8c5634d20f70c85ddef4bf2d19e165a2083e80d1afea
|
7
|
+
data.tar.gz: d4a51eab2725e0e32a13757b33b49b9aac4b4efc433b1545341dbca5e4b9d947b0df9116d5e7de13cace00cbb78d75e1c4816c5eeaa9ab22383085ff8e717ac8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Release History for gapic-generator-cloud
|
2
2
|
|
3
|
+
### 0.2.3 / 2020-04-06
|
4
|
+
|
5
|
+
* Includes changes from gapic-generator 0.2.3
|
6
|
+
* Namespace and path overrides can be set from the docker command line.
|
7
|
+
* Temporary hack disabling paging for two specific google.cloud.talent RPCs.
|
8
|
+
|
3
9
|
### 0.2.2 / 2020-03-31
|
4
10
|
|
5
11
|
* Includes changes from gapic-generator 0.2.2
|
@@ -40,14 +40,19 @@ path_option_map = {
|
|
40
40
|
"samples" => ["ruby-cloud-samples", "samples"],
|
41
41
|
"grpc_service_config" => "ruby-cloud-grpc-service-config"
|
42
42
|
}
|
43
|
+
map_option_map = {
|
44
|
+
":overrides.:file_path" => "ruby-cloud-path-override",
|
45
|
+
":overrides.:namespace" => "ruby-cloud-namespace-override"
|
46
|
+
}
|
43
47
|
|
44
48
|
parameters = {}
|
45
49
|
|
46
50
|
OptionParser.new do |op|
|
47
51
|
bool_option_map.each do |key, flags|
|
48
|
-
flags = Array(flags).map { |f| "--#{f}" }
|
49
|
-
op.on(*flags) do
|
50
|
-
|
52
|
+
flags = Array(flags).map { |f| "--#{f} BOOL" }
|
53
|
+
op.on(*flags) do |val|
|
54
|
+
val = val.downcase
|
55
|
+
parameters[key] = val if ["true", "false"].include? val
|
51
56
|
end
|
52
57
|
end
|
53
58
|
value_option_map.each do |key, flags|
|
@@ -57,13 +62,20 @@ OptionParser.new do |op|
|
|
57
62
|
end
|
58
63
|
end
|
59
64
|
path_option_map.each do |key, flags|
|
60
|
-
flags = Array(flags).map { |f| "--#{f}
|
65
|
+
flags = Array(flags).map { |f| "--#{f} PATHS" }
|
61
66
|
op.on(*flags) do |paths|
|
62
67
|
parameters[key] = paths.split(";")
|
63
68
|
.map { |path| File.expand_path path, "/in" }
|
64
69
|
.join(";")
|
65
70
|
end
|
66
71
|
end
|
72
|
+
map_option_map.each do |key, flags|
|
73
|
+
flags = Array(flags).map { |f| "--#{f} MAPPING" }
|
74
|
+
op.on(*flags) do |mapping|
|
75
|
+
mapping_key, mapping_val = mapping.split("=", 2)
|
76
|
+
parameters["#{key}.#{mapping_key}"] = mapping_val if mapping_val
|
77
|
+
end
|
78
|
+
end
|
67
79
|
end.parse! ARGV
|
68
80
|
|
69
81
|
parameter_strs =
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gapic-generator-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernest Landrito
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-04-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: actionpack
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.2.
|
35
|
+
version: 0.2.3
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.2.
|
42
|
+
version: 0.2.3
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: google-style
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|