google-cloud-pubsub 0.38.0 → 0.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d5381a504110817167a469d767b176debfe597ba4388de028485ef49118cc83
4
- data.tar.gz: 83915c1329784d01e58d208dff9e713417d768a26a2924e54f3e7ab48edfd453
3
+ metadata.gz: f651d0f3a5709a23fe001543fdc0c362b1b125e9641cfb86464724e84318b744
4
+ data.tar.gz: 9d95824382157ffeb3e42148b6504c5915d6a92feea9882fde9cad7208cc53ce
5
5
  SHA512:
6
- metadata.gz: ce37e8734b042325330222d29672abf5f7f77334b4bc03d21ff234aefdd5c9865edb4e6c0c33660855f229f9cc8c3c6ce06bb42db0e0d0edf45adb564523a9ff
7
- data.tar.gz: 3c5da92014d6c54983930b380146f86c79a5ab7474b17d1bb3361f1c13418d513836045ff5f6211f244185694bde54465cceebf95e598842145727219597a453
6
+ metadata.gz: 9ae5641b74e9ec7277645ca7ef401613c7a3347f590ecea6994a67ced0562bfd0b5dee1928acd2ecbeacbae937b7bc09419f6f5878f8157f884414411f0d52c4
7
+ data.tar.gz: 5d2f57bb4eb865e8f876b5e6ec5468550058de0a58a17c5bacbd392aee4f2200119758d26c26743dccadc9515d5cc069abca9796153c1b22e24baad011efca8b
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 0.38.1 / 2019-08-02
4
+
5
+ * Add endpoint argument to constructor
6
+
3
7
  ### 0.38.0 / 2019-07-31
4
8
 
5
9
  * Allow persistence_regions to be set
@@ -59,6 +59,8 @@ module Google
59
59
  # @param [Integer] timeout Default timeout to use in requests. Optional.
60
60
  # @param [Hash] client_config A hash of values to override the default
61
61
  # behavior of the API client. Optional.
62
+ # @param [String] endpoint Override of the endpoint host name. Optional.
63
+ # If the param is nil, uses the default endpoint.
62
64
  # @param [String] emulator_host Pub/Sub emulator host. Optional.
63
65
  # If the param is nil, uses the value of the `emulator_host` config.
64
66
  # @param [String] project Alias for the `project_id` argument. Deprecated.
@@ -70,18 +72,19 @@ module Google
70
72
  # @example
71
73
  # require "google/cloud/pubsub"
72
74
  #
73
- # pubsub = Google::Cloud.pubsub
75
+ # pubsub = Google::Cloud::PubSub.new
74
76
  #
75
77
  # topic = pubsub.topic "my-topic"
76
78
  # topic.publish "task completed"
77
79
  #
78
80
  def self.new project_id: nil, credentials: nil, scope: nil, timeout: nil,
79
- client_config: nil, emulator_host: nil, project: nil,
80
- keyfile: nil
81
+ client_config: nil, endpoint: nil, emulator_host: nil,
82
+ project: nil, keyfile: nil
81
83
  project_id ||= (project || default_project_id)
82
84
  scope ||= configure.scope
83
85
  timeout ||= configure.timeout
84
86
  client_config ||= configure.client_config
87
+ endpoint ||= configure.endpoint
85
88
  emulator_host ||= configure.emulator_host
86
89
 
87
90
  if emulator_host
@@ -111,7 +114,7 @@ module Google
111
114
  PubSub::Project.new(
112
115
  PubSub::Service.new(
113
116
  project_id, credentials, timeout: timeout,
114
- host: configure.endpoint,
117
+ host: endpoint,
115
118
  client_config: client_config
116
119
  )
117
120
  )
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module PubSub
19
- VERSION = "0.38.0".freeze
19
+ VERSION = "0.38.1".freeze
20
20
  end
21
21
 
22
22
  Pubsub = PubSub unless const_defined? :Pubsub
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-pubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.38.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-08-01 00:00:00.000000000 Z
12
+ date: 2019-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core