litestream 0.10.4 → 0.10.5

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: 13812e32edf8d771d37e89513bb94e390ef230b4435235f06a1b697b283ed891
4
- data.tar.gz: 8a602f67112aa1ccb8f3f991c791d7e28e0a1d0ce0dc161b4a6db79ebc0a1230
3
+ metadata.gz: 83266feaf552f42e5ee9fc049401c7961c53238e7c1f838351446a63c0da045f
4
+ data.tar.gz: 1a3d3d72875c9a9251ada34b329114dfa921b16ed9876d2c0da98b3bfdcfebc4
5
5
  SHA512:
6
- metadata.gz: e9fd5464285272513d57b48e10b16ea4911d348463a960a7a285e3fe23d94738c29264d95ef42e5f8fb40ff40cf152caec7e1e412c0334370e2f84d6f0c7888d
7
- data.tar.gz: 47be0a908920add441906366bdbc90177e1619b5733759df1448e1c90def78c448589905e6cbe2ee837c4b5adc8a445e0e40779b48e42013fbcd93e77a21b128
6
+ metadata.gz: 203cdb883f7b3e1dc79e7d98a3fd51ff27e7e2f17ba166dd043119127aa0963bd9af9d29e22c18f91c1864089327a06b33c89754fa64f895b54e4baa3071e055
7
+ data.tar.gz: 23a720a1265fd18a399e2a60a60796610ea14ec09d2c0a227eb71a1889b105fcf3b98627e676489c7f2036797b3a2ff075a5aad4a13c6c5232a93e11a4ff2850
@@ -1,3 +1,3 @@
1
1
  module Litestream
2
- VERSION = "0.10.4"
2
+ VERSION = "0.10.5"
3
3
  end
data/lib/litestream.rb CHANGED
@@ -82,11 +82,11 @@ module Litestream
82
82
  pid, _name = value.strip.split(" ")
83
83
  info[:pid] = pid
84
84
  elsif line.start_with?("Active:")
85
- _key, value = line.split(":")
86
- value, _ago = value.split(";")
85
+ value, _ago = line.split(";")
87
86
  status, timestamp = value.split(" since ")
88
- info[:started] = DateTime.strptime(timestamp.strip, "%Y-%m-%d %H:%M:%S %Z")
89
- info[:status] = status.split("(").first.strip
87
+ info[:started] = DateTime.strptime(timestamp.strip, "%a %Y-%m-%d %H:%M:%S %Z")
88
+ status_match = status.match(%r{\((?<status>.*)\)})
89
+ info[:status] = status_match ? status_match[:status] : nil
90
90
  end
91
91
  end
92
92
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: litestream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.4
4
+ version: 0.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Margheim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-21 00:00:00.000000000 Z
11
+ date: 2024-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logfmt
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  requirements: []
135
- rubygems_version: 3.5.1
135
+ rubygems_version: 3.5.17
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Integrate Litestream with the RubyGems infrastructure.