gapic-generator 0.6.3 → 0.6.4

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: 745e30ea242120669b722820eaa82bfe276d83ae511865f7f9ba50ae8eac0fa3
4
- data.tar.gz: 0dcdb8ac89fdaa5e568a09b5e0606e546211280844aba34c49c08662cc609dfc
3
+ metadata.gz: 0dc10e022bdc300aff2d3f5cb95686c3deae5cd4ab3068dc621771ab716137d2
4
+ data.tar.gz: '048e93d769f582f002d59be693b3f49818cefb205db30bc70969994edb0880bf'
5
5
  SHA512:
6
- metadata.gz: 7e5d18b93ad455ac93e48f0650184c2d6e482f3c8cdd5abb8b4e3c1a3b08832d074b5424d9eafd0aa984669d8f5dae7b2375aece2897f7e253fbe35aa9909981
7
- data.tar.gz: 495752c28967d05bc8f133b8248ab96cab896ae3406cd2ad60602c530b7f3a15ef149b8a079b76bbb876a2abf6f75c133cf396136bd09bf5bc8526efe7fc73b6
6
+ metadata.gz: '0496b671939b2290d878ce0ba38e3d6cc2499e483c018d7a1b62ad99f629c506c261b6108d4d5a5cd82f82dd40050b374a7a059a03b3fad1b5951256dd940b1c'
7
+ data.tar.gz: b521992f0db776914b9a4f035bcc3fb76ecb57f0bd005f2ff0fc6c744410d48f787fd648bfb218a88d93ecc12cfa86bdccd63557ddbe63aa962f3d4994e8a3ca
@@ -1,5 +1,11 @@
1
1
  # Release History for gapic-generator
2
2
 
3
+ ### 0.6.4 / 2020-07-13
4
+
5
+ * Fix rubocop warning on a generated multi-path helper if it could take no arguments.
6
+ * Run the rubocop file formatting step without caching.
7
+ * Fix an issue where generating a service with no options would fail.
8
+
3
9
  ### 0.6.3 / 2020-06-27
4
10
 
5
11
  * Fixes for generated tests for some cases involving proto maps.
@@ -39,7 +39,7 @@ module Gapic
39
39
  write_file dir, file
40
40
  end
41
41
 
42
- system "rubocop -x #{dir} -o #{dir}/rubocop.out -c #{configuration}"
42
+ system "rubocop --cache false -x #{dir} -o #{dir}/rubocop.out -c #{configuration}"
43
43
 
44
44
  files.each do |file|
45
45
  read_file dir, file
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Gapic
18
18
  module Generator
19
- VERSION = "0.6.3"
19
+ VERSION = "0.6.4"
20
20
  end
21
21
  end
@@ -203,7 +203,8 @@ module Gapic
203
203
  def client_scopes
204
204
  common_service_delegate&.client_scopes ||
205
205
  @service.scopes ||
206
- default_config(:oauth_scopes)
206
+ default_config(:oauth_scopes) ||
207
+ []
207
208
  end
208
209
 
209
210
  def credentials_name
@@ -13,7 +13,11 @@ def <%= resource.path_helper %> **args
13
13
  <%- last_pattern_index = resource.patterns.count - 1 -%>
14
14
  <%- resource.patterns.each_with_index do |pattern, index| -%>
15
15
  <%- comma = last_pattern_index == index ? "" : "," -%>
16
+ <%- if pattern.formal_arguments.empty? -%>
17
+ <%= pattern.arguments_key.inspect %> => (proc do
18
+ <%- else -%>
16
19
  <%= pattern.arguments_key.inspect %> => (proc do |<%= pattern.formal_arguments %>|
20
+ <%- end -%>
17
21
  <%= indent render(partial: "service/client/resource/def", locals: { pattern: pattern }), 6 %>
18
22
  end)<%= comma %>
19
23
  <%- end -%>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gapic-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
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-06-27 00:00:00.000000000 Z
13
+ date: 2020-07-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack
@@ -60,14 +60,14 @@ dependencies:
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: 1.30.0.pre1
63
+ version: 1.30.1
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: 1.30.0.pre1
70
+ version: 1.30.1
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: minitest
73
73
  requirement: !ruby/object:Gem::Requirement