google-gax 0.4.3 → 0.4.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
  SHA1:
3
- metadata.gz: 6c36971d472ab4788f1304fcfabf43fb1b6a5614
4
- data.tar.gz: dfcd67ee774c460904ecceb8046ea3725cd09cdf
3
+ metadata.gz: a1860a47251ce665282b79d9dc643dba02ac33aa
4
+ data.tar.gz: 58c4e2686c58d9daab6ab12c4422ab1b618c6085
5
5
  SHA512:
6
- metadata.gz: 2604d74841a2d5c6e91be1009b405289d78e670abac17960362a2aaec7ea3733c430692fd9e7fe491690115a9b8c3ea3d2c182d9b7e7c8732c0ba14f1229eaeb
7
- data.tar.gz: a210559d6f9739279297980afe78a3fb47cec8366803cc729ca961bc370680651e32ce52b49d0b66afafbc133598c11b156fa9d6af2605e8fa3f61e846c0a035
6
+ metadata.gz: 3bf03e4341cc7c385f80ecb42b36b36eae2ac2a69f0ade7e1fd865e2be174d1d79890ffbe46a64f24fd7cd55e407be619b2b6f9995947f9584bb7412b4794926
7
+ data.tar.gz: 7026e43966c514b2a388c4b9775057c29273b8e0e716430359d1dfc726ab19f0af4ad9d7719b418468c64d454032453583771c6c09abd26ea62123401f4d425a
@@ -35,6 +35,7 @@ require 'google/gax/settings'
35
35
  require 'google/gax/version'
36
36
 
37
37
  module Google
38
+ # Gax defines Google API extensions
38
39
  module Gax
39
40
  # rubocop:disable Metrics/ParameterLists
40
41
 
@@ -142,6 +143,8 @@ module Google
142
143
  end
143
144
  end
144
145
 
146
+ private_constant :CallSettings
147
+
145
148
  # Encapsulates the overridable settings for a particular API call
146
149
  # @!attribute [r] timeout
147
150
  # @return [Numeric, :OPTION_INHERIT]
@@ -27,8 +27,11 @@
27
27
  # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
28
  # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
29
 
30
+ # rubocop:disable Style/Documentation
31
+ # Without this, somehow rubocop raises an warning for documentaion for
32
+ # module Gax, however it's documented in lib/google/gax.rb.
33
+
30
34
  module Google
31
- # Gax defines Google API extensions
32
35
  module Gax
33
36
  DEMUX_WARNING = [
34
37
  'Warning: cannot demultiplex the bundled response, got ',
@@ -36,6 +39,8 @@ module Google
36
39
  'receive all responses'
37
40
  ].join
38
41
 
42
+ # rubocop:enable Style/Documentation
43
+
39
44
  # Helper function for #compute_bundle_id.
40
45
  # Used to retrieve a nested field signified by name where dots in name
41
46
  # indicate nested objects.
@@ -29,6 +29,6 @@
29
29
 
30
30
  module Google
31
31
  module Gax
32
- VERSION = '0.4.3'.freeze
32
+ VERSION = '0.4.4'.freeze
33
33
  end
34
34
  end
@@ -42,9 +42,16 @@ end
42
42
  FAKE_STATUS_CODE_1 = :FAKE_STATUS_CODE_1
43
43
  FAKE_STATUS_CODE_2 = :FAKE_STATUS_CODE_2
44
44
 
45
- describe Google::Gax do
46
- CallSettings = Google::Gax::CallSettings
45
+ # Google::Gax::CallSettings is private, only accessible in the module context.
46
+ # For testing purpose, this makes a toplevel ::CallSettings point to the same
47
+ # class.
48
+ module Google
49
+ module Gax
50
+ ::CallSettings = CallSettings
51
+ end
52
+ end
47
53
 
54
+ describe Google::Gax do
48
55
  describe 'create_api_call' do
49
56
  it 'calls api call' do
50
57
  settings = CallSettings.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-gax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
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: 2016-07-29 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: googleauth
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: grpc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.0.pre1
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.0.pre1
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rly
43
43
  requirement: !ruby/object:Gem::Requirement