gapic-common 0.4.1 → 0.4.2

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: 407061663f535d2c1d6e4d156b63dc27d7e550a4e965574861d27bfb88abe51b
4
- data.tar.gz: c009e26d53339c5be07d223a61db173fb2897dafe5fcd63ac1e9a72e9f89fa93
3
+ metadata.gz: e757f6cec4043dffd4d2b89e6f3fc02297074d6a28b361331fa16fbb0eef5d9b
4
+ data.tar.gz: 4dc4b0631dea8a91020bb7a004d9f17cfa48b9c2face5ef7ceb515a6a6ac4bfa
5
5
  SHA512:
6
- metadata.gz: 305e7cdee55f87e69c966019e62b973247de377503ff6b45a42be1dcd9ac55e1a68c54da35e718c58938d5a490b5ce5bcaf8485b9ad980ae46dbdc5f83c65987
7
- data.tar.gz: bc81ef2c7515b2630dd7e06b1ddc37e160ecc08b733a0670e8d42a3a48e41fadbcddf5d8facf3411cdc129935dd10a845edae7c38de38d7e28b0545bdd7a4b06
6
+ metadata.gz: 30b58a2dd114652b524b2878745cc16028c0d65b197a4f3cf8c112883165b0509697a4909fffc19874efb08ee47d059e44b15151b9a74962bbcadac0c085054f
7
+ data.tar.gz: b6e463d4d9ff2c0366d334503da2660d403ee97c40529db65ec0929cf0547407e458d20dd37031536c1129c0439e11d8cce6975baa08f4df14369f475a690b0e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Release History
2
2
 
3
+ ### 0.4.2 / 20201-06-07
4
+
5
+ * Expand googleauth dependency to include 1.x
6
+ * Add a REST PUT method helper to Gapic::Rest.
7
+
3
8
  ### 0.4.1 / 2021-04-15
9
+
4
10
  * Provide a default value for the 'body' in the REST POST method in Gapic::Rest.
5
11
 
6
12
  ### 0.4.0 / 2021-02-23
data/CONTRIBUTING.md CHANGED
@@ -8,7 +8,7 @@ just a few small guidelines you need to follow.
8
8
  Contributions to this project must be accompanied by a Contributor License
9
9
  Agreement. You (or your employer) retain the copyright to your contribution;
10
10
  this simply gives us permission to use and redistribute your contributions as
11
- part of the project. Head over to <https://cla.developers.google.com/> to see
11
+ part of the project. Head over to https://cla.developers.google.com/ to see
12
12
  your current agreements on file or to sign a new one.
13
13
 
14
14
  You generally only need to submit a CLA once, so if you've already submitted one
@@ -14,6 +14,6 @@
14
14
 
15
15
  module Gapic
16
16
  module Common
17
- VERSION = "0.4.1".freeze
17
+ VERSION = "0.4.2".freeze
18
18
  end
19
19
  end
@@ -76,6 +76,19 @@ module Gapic
76
76
  make_http_request :delete, uri: uri, body: nil, params: params, options: options
77
77
  end
78
78
 
79
+ ##
80
+ # Makes a PATCH request
81
+ #
82
+ # @param uri [String] uri to send this request to
83
+ # @param body [String] a body to send with the request, nil for requests without a body
84
+ # @param params [Hash] query string parameters for the request
85
+ # @param options [::Gapic::CallOptions] gapic options to be applied to the REST call.
86
+ # Currently only timeout and headers are supported.
87
+ # @return [Faraday::Response]
88
+ def make_patch_request uri:, body:, params: {}, options: {}
89
+ make_http_request :patch, uri: uri, body: body, params: params, options: options
90
+ end
91
+
79
92
  ##
80
93
  # Makes a POST request
81
94
  #
@@ -90,7 +103,7 @@ module Gapic
90
103
  end
91
104
 
92
105
  ##
93
- # Makes a PATCH request
106
+ # Makes a PUT request
94
107
  #
95
108
  # @param uri [String] uri to send this request to
96
109
  # @param body [String] a body to send with the request, nil for requests without a body
@@ -98,8 +111,8 @@ module Gapic
98
111
  # @param options [::Gapic::CallOptions] gapic options to be applied to the REST call.
99
112
  # Currently only timeout and headers are supported.
100
113
  # @return [Faraday::Response]
101
- def make_patch_request uri:, body:, params: {}, options: {}
102
- make_http_request :patch, uri: uri, body: body, params: params, options: options
114
+ def make_put_request uri:, body: nil, params: {}, options: {}
115
+ make_http_request :put, uri: uri, body: body, params: params, options: options
103
116
  end
104
117
 
105
118
  protected
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gapic-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google API Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-16 00:00:00.000000000 Z
11
+ date: 2021-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 1.3.11
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: '2.0'
36
+ version: 2.a
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 1.3.11
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: '2.0'
46
+ version: 2.a
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: googleapis-common-protos-types
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +53,7 @@ dependencies:
53
53
  version: 1.0.6
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: '2.0'
56
+ version: 2.a
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -63,47 +63,41 @@ dependencies:
63
63
  version: 1.0.6
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
- version: '2.0'
66
+ version: 2.a
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: googleauth
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: '0.15'
74
71
  - - ">="
75
72
  - !ruby/object:Gem::Version
76
- version: 0.15.1
73
+ version: 0.16.2
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: 2.a
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - "~>"
82
- - !ruby/object:Gem::Version
83
- version: '0.15'
84
81
  - - ">="
85
82
  - !ruby/object:Gem::Version
86
- version: 0.15.1
83
+ version: 0.16.2
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: 2.a
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: google-protobuf
89
89
  requirement: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - "~>"
92
92
  - !ruby/object:Gem::Version
93
- version: '3.15'
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: 3.15.2
93
+ version: '3.14'
97
94
  type: :runtime
98
95
  prerelease: false
99
96
  version_requirements: !ruby/object:Gem::Requirement
100
97
  requirements:
101
98
  - - "~>"
102
99
  - !ruby/object:Gem::Version
103
- version: '3.15'
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- version: 3.15.2
100
+ version: '3.14'
107
101
  - !ruby/object:Gem::Dependency
108
102
  name: grpc
109
103
  requirement: !ruby/object:Gem::Requirement
@@ -152,14 +146,14 @@ dependencies:
152
146
  requirements:
153
147
  - - "~>"
154
148
  - !ruby/object:Gem::Version
155
- version: '5.10'
149
+ version: '5.14'
156
150
  type: :development
157
151
  prerelease: false
158
152
  version_requirements: !ruby/object:Gem::Requirement
159
153
  requirements:
160
154
  - - "~>"
161
155
  - !ruby/object:Gem::Version
162
- version: '5.10'
156
+ version: '5.14'
163
157
  - !ruby/object:Gem::Dependency
164
158
  name: minitest-autotest
165
159
  requirement: !ruby/object:Gem::Requirement
@@ -298,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
292
  - !ruby/object:Gem::Version
299
293
  version: '0'
300
294
  requirements: []
301
- rubygems_version: 3.0.3
295
+ rubygems_version: 3.1.6
302
296
  signing_key:
303
297
  specification_version: 4
304
298
  summary: Common code for GAPIC-generated API clients