tms 1.7.3 → 1.7.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: bc4f759b14c1ba2e830eb8944acbcdd98cc296b0c9e4f031e59081058bf8f97b
4
- data.tar.gz: c1459fd0b8f4d802ca8007881b2304f0d9aae3ed520eecd80081678269b89f90
3
+ metadata.gz: dc21c9ec74863adb56cb8478e21481b61b3625329052a4802fe22d625381bd89
4
+ data.tar.gz: af36cb99bbc2a1720eac8db49d834c30204ea7e19742d92146dde1c7dba52f51
5
5
  SHA512:
6
- metadata.gz: a8faf5bd34a591a0e17acffeda732e520cc851898ef27b504408d4cc8db7396924b577af616c42fc37c8472dc1e9a71f2eddaec840b101236c5d22e1448895d8
7
- data.tar.gz: 0a5e49bf545c68382ec85a665ca0e2ead225833cacca47960aed968a0eaac9b57591d09da13ca65faad81fb14567b86c57c0fef9c82e6c152452315801847e3d
6
+ metadata.gz: df02101c3fa62d0c1db44115c558447acd844390587abb752be6ead7afebd4de48d0e74792e3f654eac6e7db94ebef7df2fda261f873e515457522d047a8d250
7
+ data.tar.gz: 72a78d5d548918a5d2347671f30178c72230bbc5f50c4fc947eae59b354b14d84e1641c6eae2e6eaccd259b90804a67d7970f807525d94d812be74f4fad5670c
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2019 Ivan Kuchin
1
+ Copyright (c) 2010-2024 Ivan Kuchin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.markdown CHANGED
@@ -48,4 +48,4 @@ Other options:
48
48
 
49
49
  ## Copyright
50
50
 
51
- Copyright (c) 2010-2019 Ivan Kuchin. See LICENSE.txt for details.
51
+ Copyright (c) 2010-2024 Ivan Kuchin. See LICENSE.txt for details.
data/ext/tms/tms.c CHANGED
@@ -1,4 +1,5 @@
1
1
  #include "ruby.h"
2
+ #include "ruby/encoding.h"
2
3
  #include <CoreServices/CoreServices.h>
3
4
  #include <SystemConfiguration/SystemConfiguration.h>
4
5
 
data/lib/tms/backup.rb CHANGED
@@ -119,10 +119,10 @@ module Tms
119
119
  finished_at - started_at
120
120
  end
121
121
  {
122
- :state => 'com.apple.backupd.SnapshotState',
123
- :type => 'com.apple.backupd.SnapshotType',
124
- :version => 'com.apple.backup.SnapshotVersion',
125
- :number => 'com.apple.backup.SnapshotNumber',
122
+ state: 'com.apple.backupd.SnapshotState',
123
+ type: 'com.apple.backupd.SnapshotType',
124
+ version: 'com.apple.backup.SnapshotVersion',
125
+ number: 'com.apple.backup.SnapshotNumber',
126
126
  }.each do |name, attr|
127
127
  class_eval <<-RUBY
128
128
  def #{name}
@@ -74,12 +74,12 @@ module Tms
74
74
  end
75
75
 
76
76
  COLORS = {
77
- :total => {:extra => :bold},
78
- :right => {:foreground => :green},
79
- :left => {:foreground => :blue},
80
- :diff_type => {:foreground => :red, :extra => :bold},
81
- :diff => {:foreground => :yellow},
82
- :unreadable => {:foreground => :red, :extra => :bold},
77
+ total: {extra: :bold},
78
+ right: {foreground: :green},
79
+ left: {foreground: :blue},
80
+ diff_type: {foreground: :red, extra: :bold},
81
+ diff: {foreground: :yellow},
82
+ unreadable: {foreground: :red, extra: :bold},
83
83
  }
84
84
  CLEAR_LINE = "\e[K"
85
85
 
@@ -129,7 +129,7 @@ module Tms
129
129
  end
130
130
 
131
131
  def space(size)
132
- Tms::Space.space(size, :color => Tms::Backup.colorize?)
132
+ Tms::Space.space(size, color: Tms::Backup.colorize?)
133
133
  end
134
134
 
135
135
  def colorize(s, type)
data/lib/tms/space.rb CHANGED
@@ -7,11 +7,11 @@ module Tms
7
7
  SIZE_SYMBOLS = %w[B K M G T P E Z Y].freeze
8
8
  COLORS = [].tap do |colors|
9
9
  [:white, :black, :yellow, :red].each do |color|
10
- colors << {:foreground => color}
11
- colors << {:foreground => color, :extra => :bold}
10
+ colors << {foreground: color}
11
+ colors << {foreground: color, extra: :bold}
12
12
  end
13
- colors << {:foreground => :yellow, :extra => :reversed}
14
- colors << {:foreground => :red, :extra => :reversed}
13
+ colors << {foreground: :yellow, extra: :reversed}
14
+ colors << {foreground: :red, extra: :reversed}
15
15
  end.freeze
16
16
  PRECISION = 1
17
17
  LENGTH = 4 + PRECISION + 1
data/lib/tms/table.rb CHANGED
@@ -11,9 +11,9 @@ module Tms
11
11
  yield self if block_given?
12
12
  end
13
13
 
14
- ADJUST = {:left => :ljust, :right => :rjust, :center => :center}
14
+ ADJUST = {left: :ljust, right: :rjust, center: :center}
15
15
  def col(name, color = nil, adjust = nil)
16
- @cols << {:name => name, :color => color, :adjust => ADJUST[adjust]}
16
+ @cols << {name: name, color: color, adjust: ADJUST[adjust]}
17
17
  end
18
18
 
19
19
  def <<(row)
@@ -30,7 +30,7 @@ module Tms
30
30
  width, color, adjust = col.values_at(:width, :color, :adjust)
31
31
  adjust ||= val.is_a?(Integer) ? :rjust : :ljust
32
32
  val_s = val.to_s.send(adjust, width)
33
- val_s = Colored.colorize(val_s, :foreground => color) if color
33
+ val_s = Colored.colorize(val_s, foreground: color) if color
34
34
  val_s
35
35
  end.join(' ')
36
36
  end
data/tms.gemspec CHANGED
@@ -2,13 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'tms'
5
- s.version = '1.7.3'
5
+ s.version = '1.7.4'
6
6
  s.summary = %q{Time Machine Status}
7
7
  s.description = %Q{View avaliable Time Machine backups and show their diff}
8
- s.homepage = "http://github.com/toy/#{s.name}"
8
+ s.homepage = "https://github.com/toy/#{s.name}"
9
9
  s.authors = ['Ivan Kuchin']
10
10
  s.license = 'MIT'
11
11
 
12
+ s.required_ruby_version = '>= 1.9.3'
13
+
12
14
  s.metadata = {
13
15
  'bug_tracker_uri' => "https://github.com/toy/#{s.name}/issues",
14
16
  'documentation_uri' => "https://www.rubydoc.info/gems/#{s.name}/#{s.version}",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-14 00:00:00.000000000 Z
11
+ date: 2024-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.0.4
41
41
  description: View avaliable Time Machine backups and show their diff
42
- email:
42
+ email:
43
43
  executables:
44
44
  - tms
45
45
  extensions:
@@ -60,14 +60,14 @@ files:
60
60
  - lib/tms/space.rb
61
61
  - lib/tms/table.rb
62
62
  - tms.gemspec
63
- homepage: http://github.com/toy/tms
63
+ homepage: https://github.com/toy/tms
64
64
  licenses:
65
65
  - MIT
66
66
  metadata:
67
67
  bug_tracker_uri: https://github.com/toy/tms/issues
68
- documentation_uri: https://www.rubydoc.info/gems/tms/1.7.3
68
+ documentation_uri: https://www.rubydoc.info/gems/tms/1.7.4
69
69
  source_code_uri: https://github.com/toy/tms
70
- post_install_message:
70
+ post_install_message:
71
71
  rdoc_options: []
72
72
  require_paths:
73
73
  - lib
@@ -75,15 +75,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
- version: '0'
78
+ version: 1.9.3
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.0.3
86
- signing_key:
85
+ rubygems_version: 3.5.17
86
+ signing_key:
87
87
  specification_version: 4
88
88
  summary: Time Machine Status
89
89
  test_files: []