snapsync 0.3.4 → 0.3.5

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: a4639e92e1a8e69da3e924d648eeeae80cfdb392
4
- data.tar.gz: 870aae2667103317cfff0fe1b6592c204a297d60
3
+ metadata.gz: c809fd16c3f578d58d3af399333f68781bf53ae4
4
+ data.tar.gz: 4822cfbeb7c7dc00cff374a07dbf55d17a328719
5
5
  SHA512:
6
- metadata.gz: 9570aafa0a365db3a621849c442dfaae87f95450e4352ab748cb84e4b88abc2f0525d95f3d4fa0395b38534f3720aef0e71432eec71c2a54663aeab74d40c51c
7
- data.tar.gz: 16e22e9ade691d507c7ab2a60d3a046f97157c55e9af1483bf33fc55b71cecdc7899f4ebf4ef62cc83a7de4becd62988a9c5367c95d070010540c836d179f6cb
6
+ metadata.gz: 84c69e553af59dadd780a38905d36751a90854f865026426e0f433aeddd5adca40dfa66851f988a7b3a3c1ae2eede39404242a66d7c3b399ec3a1065aa2f098c
7
+ data.tar.gz: 7e8c97f3edaa6c0162e6db011a17f0b866c94a2e55b0b06fadbf5ac75bef1aa5a16df39fb6a6a222f590797f72863c3dbdc46d6040d0d83e73fb2e04066ad1ca
@@ -153,13 +153,13 @@ policy for more information
153
153
  rescue Exception => policy_validation_error
154
154
  # Try to see if the user forgot to add the NAME option or added
155
155
  # the name option but should not have
156
- if options[:auto]
156
+ if (args.size > 1) && options[:auto]
157
157
  begin
158
158
  normalize_policy(args[1..-1])
159
159
  raise ArgumentError, "--auto is set but it seems that you did not provide a name"
160
160
  rescue InvalidConfiguration
161
161
  end
162
- else
162
+ elsif args.size > 2
163
163
  begin
164
164
  normalize_policy(args[2..-1])
165
165
  raise ArgumentError, "--auto is not set but it seems that you provided a name"
@@ -144,7 +144,7 @@ module Snapsync
144
144
  sync_policy = SyncLastPolicy
145
145
  cleanup = SyncLastPolicy
146
146
  else
147
- raise InvalidConfiguration, "synchronization policy #{type} does not exist"
147
+ raise InvalidConfiguration, "synchronization policy '#{type}' does not exist"
148
148
  end
149
149
  sync_policy = sync_policy.from_config(options)
150
150
  cleanup =
@@ -45,7 +45,6 @@ module Snapsync
45
45
  str[0..-2].pack("U*")
46
46
  end
47
47
  if mount_points.include?(dir.to_s)
48
- binding.pry
49
48
  return uuid, rel
50
49
  end
51
50
  end
@@ -71,9 +70,6 @@ module Snapsync
71
70
  each_partition_with_filesystem.find do |name, dev|
72
71
  fs = dev['org.freedesktop.UDisks2.Filesystem']
73
72
  mp = fs['MountPoints']
74
- if !mp.empty?
75
- binding.pry
76
- end
77
73
  # .map { |str| Pathname.new(str) }
78
74
  mp.include?(dir)
79
75
  end
@@ -1,3 +1,3 @@
1
1
  module Snapsync
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
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.4
4
+ version: 0.3.5
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-16 00:00:00.000000000 Z
11
+ date: 2016-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging