litestream 0.10.4-x86_64-darwin → 0.10.5-x86_64-darwin

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: b2bece6550557b5ec566524fe602ebe414d914f1b2f0885e6c4b19c7105dec24
4
- data.tar.gz: a44e94b6a12d4749d683863af1dadaccb6f6ff0d061db12721c6611f5d989e10
3
+ metadata.gz: 8b9761ca272865b4a0dbf94ad376b4fd619653e41b4b515f7bb1f6e03ce2f8ef
4
+ data.tar.gz: 62e46f537fbef1684d5d0d8df6206afd12d7250b1e37096b1ddb59540efe7f39
5
5
  SHA512:
6
- metadata.gz: adaca1da192e3702786b8a51cdda7477a12563115b67ad5e58ff3281541eefe9d67a7c62c9a52b5603c34f9af6c27e39c55e48464069450f7dd61fa3182c8149
7
- data.tar.gz: 860c8de253c4305aca1c15d7c5bc52328447318633b00bb82016e32917b1295e69d31ec97e53af7d33a882a8091a6b0f8f48dd8705a2ed52352f619da96dc998
6
+ metadata.gz: 2902bc040b67936eba6695065aa5b66d9bdea96d0f1d8e227684e0408fa0d8f0b12e2d191e10bc559321283a1e6bc52f55c225a531b1eeb32237cb1675a4a853
7
+ data.tar.gz: 717a0fc83682cd9f5337824b226d22d025beaf1457aac1d0e020c7c310699309757c91b6a115c85d7ea753fa6b5460dbb1da1e233bb205e15ee272b6be18fe1d
@@ -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: x86_64-darwin
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
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubygems_version: 3.5.1
137
+ rubygems_version: 3.5.17
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Integrate Litestream with the RubyGems infrastructure.