winft 1.0.1 → 1.0.4

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: '09b3dbc46db8c2aa992f8e8eba468496224401d26665730b6cf23c5c2fba4562'
4
- data.tar.gz: 0cff38640753d054f9f38f9004e3a270f5b43dac1e55fe33633d2f3baa4cbb0d
3
+ metadata.gz: 3a0f0ca0dfdb939ce620ae59f7ded3a4b798317c249d06641d76ed85e4ae48ef
4
+ data.tar.gz: 20c5722d0ae66925614c637a1752e3ef3c3ed1b1a6b5c852ce257772ecd55a6d
5
5
  SHA512:
6
- metadata.gz: 617f788ee0c2f922c7081cc24cf234bc4f1a3a32a438d1f7e60ef881791d3bc287d85b418f8860f0b14270903522dc46155afcb5a577008fc8113a09b2a5fbfb
7
- data.tar.gz: 7d2d90cb4e2fa2f37195a431855d3030d4d8297ae1f9fd36d9e6e8f9e7fb3aba45f214fc246663d20cd160cb06f42336b4b6117a0a1f929ffd248993ad5d9fd2
6
+ metadata.gz: c9fa63d1ae63434b9ba9afbd7cd67d8e137ecb2097aa593a2e5478d89501c098feef6ddecab09c0a07b3f3f63e4dff336db272ed09662f22b1b3e824728fb1e6
7
+ data.tar.gz: 18449abc7c22ff8c000fa59eac0fc43997f72a4cf1901016567b1daf051c380a98ef31e7746ec6fc8645f86e9397098c2576a4b1fd26c6c0dde445fe92751bff
data/lib/winft/time.rb CHANGED
@@ -18,6 +18,8 @@ class Time
18
18
  # since 12:00 midnight, January 1, 1601 A.D. (C.E.) Coordinated Universal Time (UTC).
19
19
  # Windows uses a file time to record when an application creates, accesses, or writes to a file.
20
20
  #
21
+ # @param timestamp [String | Integer] the number of 100-nanosecond intervals since Windows epoch.
22
+ # @return [Time] the corresponding local time.
21
23
  def self.at_winft(timestamp)
22
24
  at((timestamp.to_i + WINFT_OFFSET) / WINFT_MULTIPLIER)
23
25
  end
data/lib/winft/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Winft
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winft
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse vonBergen
@@ -32,6 +32,8 @@ licenses:
32
32
  - MIT
33
33
  metadata:
34
34
  rubygems_mfa_required: 'true'
35
+ homepage_uri: https://github.com/jvon1904/winft
36
+ source_code_uri: https://github.com/jvon1904/winft
35
37
  post_install_message:
36
38
  rdoc_options: []
37
39
  require_paths: