linux-utmpx 0.2.0 → 0.3.0

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: d949aa7d9cedc8ed59720ded4a18a8ec41e2eaaa2c1dea79713dedc8110e1edf
4
- data.tar.gz: bcc2c7417e713cc22878bf010002716ca04f27e5859e2c00dfae7a45bbcdd132
3
+ metadata.gz: f2a58325bdb0f5834b265340693b7ae9a0c8ada572f651b2cf36f9ebb8936c07
4
+ data.tar.gz: fe015c6a4fec17fbc50c52110905a0b90aea87fc3bbb2c0a46aa07768d992193
5
5
  SHA512:
6
- metadata.gz: '08d56610c4f6c65c8b500ef0ee046cba28d145f59f0f8c1e2b7a327a4e0cee21bf56974cc0abebec2da7983c4d123155c9b9f1a55f66edb26bd5ba3d285a20d4'
7
- data.tar.gz: 9659b5f10bd9f48b8ec59d61fe3026d9570caeae77397b97f0829e210f7b022bb9fe41c02c130b3677d6875908a2499d23a4eeca23fea90462d34e08fa2171a8
6
+ metadata.gz: 228bd21d078c6a22e7ee440d448af5abfeccb195b3afd33fb3e31117a499623ea80d28943fa8a9d9101cd15d5189f0fbed1bbd5827301a4d9860a494ef9cbfe5
7
+ data.tar.gz: c9b7f974914b6d67a76664702c194b6dc0825f87f877e12da083e84a452087b21eb0d0106c525997aff064658ff5f680d1f8a1c83f39a1bd30aef072a48fd5e9
data/examples/utmpx.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "linux/utmpx"
2
2
  require "optparse"
3
+ require "time"
3
4
 
4
5
  options = {}
5
6
  parser = OptionParser.new
@@ -38,7 +38,7 @@ module Linux
38
38
  string :reserved, :length => 20
39
39
 
40
40
  def time
41
- Time.at(ut_tv.tv_sec, ut_tv.tv_usec).iso8601
41
+ Time.at(ut_tv.tv_sec, ut_tv.tv_usec)
42
42
  end
43
43
 
44
44
  def type
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Linux
4
4
  module Utmpx
5
- VERSION = "0.2.0"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linux-utmpx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaro Hayashi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-30 00:00:00.000000000 Z
11
+ date: 2021-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata