tms 1.4.2 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/tms/backup.rb +6 -1
  2. data/tms.gemspec +1 -1
  3. metadata +5 -5
data/lib/tms/backup.rb CHANGED
@@ -20,7 +20,12 @@ module Tms
20
20
 
21
21
  def backups_dir
22
22
  unless @backups_dir
23
- self.backups_dir = Path.new(backup_volume) / 'Backups.backupdb' / computer_name
23
+ if system('which -s tmutil')
24
+ $stderr.puts "Using tmutil to detect and mount Time Machine volume"
25
+ self.backups_dir = `tmutil machinedirectory`.strip
26
+ else
27
+ self.backups_dir = Path.new(backup_volume) / 'Backups.backupdb' / computer_name
28
+ end
24
29
  end
25
30
  @backups_dir
26
31
  end
data/tms.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'tms'
5
- s.version = '1.4.2'
5
+ s.version = '1.5.0'
6
6
  s.summary = %q{Time Machine Status}
7
7
  s.description = %Q{View avaliable Time Machine backups and show their diff}
8
8
  s.homepage = "http://github.com/toy/#{s.name}"
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 4
9
- - 2
10
- version: 1.4.2
8
+ - 5
9
+ - 0
10
+ version: 1.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ivan Kuchin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-15 00:00:00 Z
18
+ date: 2012-10-17 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: colored
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  requirements: []
100
100
 
101
101
  rubyforge_project: tms
102
- rubygems_version: 1.8.12
102
+ rubygems_version: 1.8.24
103
103
  signing_key:
104
104
  specification_version: 3
105
105
  summary: Time Machine Status