snapsync 0.3.3 → 0.3.4

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
  SHA1:
3
- metadata.gz: 1db39c52daf088025f37bad911ed2cdf61b636d2
4
- data.tar.gz: 2d301b73b85d3331020945823873403484230e13
3
+ metadata.gz: a4639e92e1a8e69da3e924d648eeeae80cfdb392
4
+ data.tar.gz: 870aae2667103317cfff0fe1b6592c204a297d60
5
5
  SHA512:
6
- metadata.gz: cde7036bd9b9f4a02384d2ddb317905255ba064341b05cd0483ff62a3fbbe4745ddcc0ab599559faa2a51ed82d14fd68d1ac92378a41e0566758d1cfbb331308
7
- data.tar.gz: af261e9db68b0905ba7b138956c5e98a29e783fbe5f4db7739091a226ec08342fb156518b4e805fd971cf249be589ed7324373061b6e1f4d3657c70348678737
6
+ metadata.gz: 9570aafa0a365db3a621849c442dfaae87f95450e4352ab748cb84e4b88abc2f0525d95f3d4fa0395b38534f3720aef0e71432eec71c2a54663aeab74d40c51c
7
+ data.tar.gz: 16e22e9ade691d507c7ab2a60d3a046f97157c55e9af1483bf33fc55b71cecdc7899f4ebf4ef62cc83a7de4becd62988a9c5367c95d070010540c836d179f6cb
data/README.md CHANGED
@@ -71,6 +71,10 @@ provided by auto-sync, run 'snapsync' without arguments to get all the
71
71
  possibilities. Targets have configuration files that allow to fine-tune
72
72
  snapsync's automated behaviour to that effect.
73
73
 
74
+ '''NOTE''' thor, the underlying library that handles snapsync's command line
75
+ interface, has a bug in which the `--no-` prefix is often not recognized
76
+ properly. Use e.g. `--all=f` instead of `--no-all`
77
+
74
78
  ## Future development
75
79
 
76
80
  The main two functionalities that I plan to add to snapsync are having a
@@ -30,6 +30,7 @@ module Snapsync
30
30
 
31
31
  def partition_of(dir)
32
32
  rel = Pathname.new("")
33
+ dir = dir.expand_path
33
34
  while !dir.mountpoint?
34
35
  rel = dir.basename + rel
35
36
  dir = dir.dirname
@@ -44,10 +45,11 @@ module Snapsync
44
45
  str[0..-2].pack("U*")
45
46
  end
46
47
  if mount_points.include?(dir.to_s)
48
+ binding.pry
47
49
  return uuid, rel
48
50
  end
49
51
  end
50
- nil
52
+ raise ArgumentError, "cannot guess the partition UUID of the mountpoint #{dir} for #{dir + rel}"
51
53
  end
52
54
 
53
55
  def dirty!
@@ -1,3 +1,3 @@
1
1
  module Snapsync
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-03 00:00:00.000000000 Z
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging