tms 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZmU5MjM4NzZjZWRlMmUxMTcwZmE3NjQ0OTc2ZTNiNjFmN2IyNDAzYg==
5
+ data.tar.gz: !binary |-
6
+ MzE2OGI1MjU0NjgwNWUwYmI5NTMxMjRlZmExNjk3MGI2NTM1ZDhiZA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YjAxYjc3OTU3YzM5ZGQ3MjM4MmY1MjgwM2NlMWNlY2RkOGI0ZGI1ZGY3MTU0
10
+ NThmZmM1NjRlZDAyZWIzZTQyZjQ2OGI1MDc2MWJhYTRkOGZkNjI0MGJkMmYw
11
+ NDE2MzNkZTY3YjljZmNiZWNiZDUwMzYzZmZiODY4Y2U1NjFkY2Y=
12
+ data.tar.gz: !binary |-
13
+ ZGU5MmM0YmM0ZjFkYzEwZDZjNmRkMGYzMzYwOTZkNWNjYzY4NDJiZGYwZWEw
14
+ NWZhNDViMDMxNmNjOThmNWU1NTViNzY4MDgzOGI4ZGEwODY4MGY3MWJmZGUw
15
+ N2JkMGY5MGEyOWZjOTQ3MGYyNjgwZWUxYjRhNmZkZDU5NTE5Njc=
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2011 Ivan Kuchin
1
+ Copyright (c) 2010-2013 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
@@ -48,4 +48,4 @@ Other options:
48
48
 
49
49
  ## Copyright
50
50
 
51
- Copyright (c) 2010-2011 Ivan Kuchin. See LICENSE.txt for details.
51
+ Copyright (c) 2010-2013 Ivan Kuchin. See LICENSE.txt for details.
data/lib/tms.rb CHANGED
@@ -61,9 +61,14 @@ module Tms
61
61
  a_id, b_id = a_id - 1, a_id
62
62
  end
63
63
  end
64
- backup_a = Backup.list[a_id] or abort("No backup #{a}")
65
- backup_b = Backup.list[b_id] or abort("No backup #{b}")
66
- Comparison.new(backup_a, backup_b).run
64
+
65
+ $stdout.puts "Comparing:"
66
+ by_id = proc do |name, id|
67
+ backup = Backup.list[id] or abort("No backup #{name}")
68
+ $stdout.puts "#{id} #{backup.path}"
69
+ backup
70
+ end
71
+ Comparison.new(by_id[a, a_id], by_id[b, b_id]).run
67
72
  end
68
73
 
69
74
  private
@@ -21,11 +21,12 @@ module Tms
21
21
  def backups_dir
22
22
  unless @backups_dir
23
23
  if system('which -s tmutil')
24
- $stderr.print "Using tmutil to detect and mount Time Machine volume\r"
24
+ $stderr.puts "Using tmutil to detect and mount Time Machine volume"
25
25
  self.backups_dir = `tmutil machinedirectory`.strip
26
26
  else
27
27
  self.backups_dir = Path.new(backup_volume) / 'Backups.backupdb' / computer_name
28
28
  end
29
+ $stderr.puts "Detected: #{self.backups_dir}"
29
30
  end
30
31
  @backups_dir
31
32
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'tms'
5
- s.version = '1.6.0'
5
+ s.version = '1.7.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
@@ -1,61 +1,51 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tms
3
- version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease:
6
- segments:
7
- - 1
8
- - 6
9
- - 0
10
- version: 1.6.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.7.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Ivan Kuchin
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2012-12-03 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2013-07-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: colored
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
32
20
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: ffi-xattr
36
21
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: ffi-xattr
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
40
31
  - - ~>
41
- - !ruby/object:Gem::Version
42
- hash: 23
43
- segments:
44
- - 0
45
- - 0
46
- - 4
32
+ - !ruby/object:Gem::Version
47
33
  version: 0.0.4
48
34
  type: :runtime
49
- version_requirements: *id002
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 0.0.4
50
41
  description: View avaliable Time Machine backups and show their diff
51
42
  email:
52
- executables:
43
+ executables:
53
44
  - tms
54
- extensions:
45
+ extensions:
55
46
  - ext/tms/extconf.rb
56
47
  extra_rdoc_files: []
57
-
58
- files:
48
+ files:
59
49
  - .gitignore
60
50
  - LICENSE.txt
61
51
  - README.markdown
@@ -71,38 +61,27 @@ files:
71
61
  - lib/tms/table.rb
72
62
  - tms.gemspec
73
63
  homepage: http://github.com/toy/tms
74
- licenses:
64
+ licenses:
75
65
  - MIT
66
+ metadata: {}
76
67
  post_install_message:
77
68
  rdoc_options: []
78
-
79
- require_paths:
69
+ require_paths:
80
70
  - lib
81
- required_ruby_version: !ruby/object:Gem::Requirement
82
- none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
- version: "0"
90
- required_rubygems_version: !ruby/object:Gem::Requirement
91
- none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 3
96
- segments:
97
- - 0
98
- version: "0"
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
99
81
  requirements: []
100
-
101
82
  rubyforge_project: tms
102
- rubygems_version: 1.8.24
83
+ rubygems_version: 2.0.3
103
84
  signing_key:
104
- specification_version: 3
85
+ specification_version: 4
105
86
  summary: Time Machine Status
106
87
  test_files: []
107
-
108
- has_rdoc: