cucumber-messages 17.0.0 → 17.0.1

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: 3bef092f22949b100942e5cd60551ca25af9da7517d922faccfa43a46d086535
4
- data.tar.gz: d4eed120887862877c6f9ded70f0e535db4778e990275f6ba5f940bdf5e3edfd
3
+ metadata.gz: 8d0c5f3b224e9a7990db0315f80048238598fb3e28ff751e1d3f28a2a59cb492
4
+ data.tar.gz: bc63d1daa752d4d68c59dbcac28b2e04f36e8477a91013090bdf85ecb6e9a81a
5
5
  SHA512:
6
- metadata.gz: 9ef92d134420fae388e18862516779a4ef0245eea94daf881107ea7e52070babf977326e62f00a08f4c52c252ccaa5e100dc976d2534a9c987222f0cdd88a339
7
- data.tar.gz: 614160559fdf8bd094b17cdc8061429b700146517e402aba84b2ec98115d6353d50f801a4c44b197f43b876dda340d1d556501d769f52d1bfe717822d0353bf8
6
+ metadata.gz: 0bbe6bc4aed1f7ee18136c80f3c417e623fe336b7d1c71458f1fe167ba11d202fa7493423309636fe4df8c58c7e82beecc99a345054a1b71df511ae97970cf75
7
+ data.tar.gz: f6f418b641a8c71e58000c180b438698e9b60f3e8bc64a111170a43fd122eb50aa7fb8b3448e18c3a7e310ce6f72affc6a83e976831e8414aba74d1a8a039644
data/VERSION CHANGED
@@ -1 +1 @@
1
- 17.0.0
1
+ 17.0.1
@@ -19,7 +19,7 @@ module Cucumber
19
19
  nanos = second_modulus * NANOSECONDS_PER_SECOND
20
20
  {
21
21
  'seconds' => seconds,
22
- 'nanos' => nanos
22
+ 'nanos' => nanos.to_i
23
23
  }
24
24
  end
25
25
 
@@ -28,6 +28,14 @@ module Cucumber
28
28
 
29
29
  expect(duration_in_seconds_again).to be_within(0.000000001).of(duration_in_seconds)
30
30
  end
31
+
32
+ it 'converts to a hash where seconds and nanos are integers' do
33
+ duration_in_seconds = 3.000161
34
+ duration = seconds_to_duration(duration_in_seconds)
35
+
36
+ expect(duration['seconds']).to be_integer
37
+ expect(duration['nanos']).to be_integer
38
+ end
31
39
  end
32
40
  end
33
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-messages
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.0.0
4
+ version: 17.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-08 00:00:00.000000000 Z
11
+ date: 2021-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '13.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 13.0.5
22
+ version: 13.0.6
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '13.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 13.0.5
32
+ version: 13.0.6
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -107,15 +107,15 @@ requirements: []
107
107
  rubygems_version: 3.1.2
108
108
  signing_key:
109
109
  specification_version: 4
110
- summary: cucumber-messages-17.0.0
110
+ summary: cucumber-messages-17.0.1
111
111
  test_files:
112
112
  - spec/capture_warnings.rb
113
113
  - spec/cucumber/messages/acceptance_spec.rb
114
- - spec/cucumber/messages/ndjson_serialization_spec.rb
114
+ - spec/cucumber/messages/id_generator_spec.rb
115
115
  - spec/cucumber/messages/message/deserialization_spec.rb
116
116
  - spec/cucumber/messages/message/dummy_messages.rb
117
- - spec/cucumber/messages/message/utils_spec.rb
118
117
  - spec/cucumber/messages/message/serialization_spec.rb
118
+ - spec/cucumber/messages/message/utils_spec.rb
119
+ - spec/cucumber/messages/ndjson_serialization_spec.rb
119
120
  - spec/cucumber/messages/time_conversion_spec.rb
120
- - spec/cucumber/messages/id_generator_spec.rb
121
121
  - spec/cucumber/messages/version_spec.rb