google-cloud-trace 0.34.2 → 0.34.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: 7519f860e058884c0abedc93d49565ff8bc7b6a12a432bfd4194e5dca06b12fa
4
- data.tar.gz: 2b2f62529a7a9741143d4ecf592387489f4e7ce856dbd83976cd9fbf41321151
3
+ metadata.gz: e283386f69a6f1fe63c72f5fdc1ae1d83f2ebdba44a00848e2d63612e09b8f22
4
+ data.tar.gz: b1dc3c2492cac16ed55b3d8663f6d2a3bcba0921bdcc1395d98ff457114b3f26
5
5
  SHA512:
6
- metadata.gz: 27a1d602c21c19dd03526088cf664b85c2ed729ed35363a828fc1c63043fe97937a9056d1640bbce1bf96fa2a8d253478fe22f22599408adaec3f9f857f6ada1
7
- data.tar.gz: 16a6f56576e8494af4886d3165bf904015b906df8a7b5416c51bf5ab5e173a33bcdd297df0dd97ffddd166638bf1712a23138d6764a78d24f0498014dfd43594
6
+ metadata.gz: 38244622a28ffff2a1b3dff731f2a340ec752297b1ef1142dc2ad6cfc508b4e904abb1f411ba2c22cec2ef33a226607b110ff20c01a30ac924252b52c27e09b6
7
+ data.tar.gz: f99f0a35bd20219324960587c063f1b4a72a54cc7317df3bea12587e6912edbedeaf64cb1c3feed0d312b6a2e867ffd42a676bfe30a4b474cd0e5e20b26dbcfe
@@ -1,5 +1,10 @@
1
1
  # Release History
2
2
 
3
+ ### 0.34.3 / 2019-06-11
4
+
5
+ * Accept Numeric in Google::Cloud::Trace::Utils.time_to_grpc
6
+ * Add VERSION constant
7
+
3
8
  ### 0.34.2 / 2019-04-29
4
9
 
5
10
  * Add AUTHENTICATION.md guide.
@@ -29,6 +29,13 @@ module Google
29
29
  #
30
30
  def self.time_to_grpc time
31
31
  return nil if time.nil?
32
+
33
+ # sometimes this gets called with time as a float or
34
+ # int. Coerce into a time object, and move on.
35
+ time = Time.at(time) if time.is_a? Numeric
36
+
37
+ raise ArgumentError unless time.is_a? Time
38
+
32
39
  Google::Protobuf::Timestamp.new seconds: time.to_i,
33
40
  nanos: time.nsec
34
41
  end
@@ -27,6 +27,7 @@ require "google/gax"
27
27
 
28
28
  require "google/devtools/cloudtrace/v1/trace_pb"
29
29
  require "google/cloud/trace/v1/credentials"
30
+ require "google/cloud/trace/version"
30
31
 
31
32
  module Google
32
33
  module Cloud
@@ -135,7 +136,7 @@ module Google
135
136
  updater_proc = credentials.updater_proc
136
137
  end
137
138
 
138
- package_version = Gem.loaded_specs['google-cloud-trace'].version.version
139
+ package_version = Google::Cloud::Trace::VERSION
139
140
 
140
141
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
141
142
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -27,6 +27,7 @@ require "google/gax"
27
27
 
28
28
  require "google/devtools/cloudtrace/v2/tracing_pb"
29
29
  require "google/cloud/trace/v2/credentials"
30
+ require "google/cloud/trace/version"
30
31
 
31
32
  module Google
32
33
  module Cloud
@@ -159,7 +160,7 @@ module Google
159
160
  updater_proc = credentials.updater_proc
160
161
  end
161
162
 
162
- package_version = Gem.loaded_specs['google-cloud-trace'].version.version
163
+ package_version = Google::Cloud::Trace::VERSION
163
164
 
164
165
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
165
166
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Trace
19
- VERSION = "0.34.2".freeze
19
+ VERSION = "0.34.3".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-trace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.2
4
+ version: 0.34.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-30 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core