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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b369ab7a1751da6c021b124eb32783b32a14eafbfe1418ba3fef7d54ec6b249
4
- data.tar.gz: 4ec316093cd27d7a0cffed9272345ee03aad4e75f80e42e643d456e31561c3a5
3
+ metadata.gz: fa40108edbcc0c4837ddd71c24a8524e11d55a37793c14608e03a9106e63d88b
4
+ data.tar.gz: a8e291c06bdc9bdf3f0e801a45c8b089d0cd170cd4e2762cc5b12ab2eb0240b1
5
5
  SHA512:
6
- metadata.gz: b0832aeccb07225891c94da723767ddc43edbcac80def2c3acf0e6e2a00c95774d708fc04991eec919df25b1c6512e625f202b15837e7e01a4dbc46f73018bb4
7
- data.tar.gz: 775b51ff592e97bd0b13f6b20190675b0c68bcff6f8e3bd8e65bb852d74b3039ecafbbfa295756ba0eca9ec4280794bd90af313a453f1ac39ed17942e416237e
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
- parameters[key] = "true"
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} PATH" }
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 =
@@ -17,7 +17,7 @@
17
17
  module Gapic
18
18
  module Generator
19
19
  module Cloud
20
- VERSION = "0.2.2"
20
+ VERSION = "0.2.3"
21
21
  end
22
22
  end
23
23
  end
@@ -104,7 +104,9 @@ end
104
104
  require "yard"
105
105
  require "yard/rake/yardoc_task"
106
106
  YARD::Rake::YardocTask.new do |y|
107
+ <%- if gem.yard_strict? -%>
107
108
  y.options << "--fail-on-warning"
109
+ <%- end -%>
108
110
  end
109
111
 
110
112
  desc "Run yard-doctest example tests."
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.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-03-31 00:00:00.000000000 Z
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.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.2
42
+ version: 0.2.3
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: google-style
45
45
  requirement: !ruby/object:Gem::Requirement