entangler 0.1.0 → 0.1.1

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: 545e59239dbbe8601083e4d7a827721a0aafbdd4
4
- data.tar.gz: f97f1d7eec1f101ad4211acbd872c31ca9876179
3
+ metadata.gz: 490b5a2f8672548a4e3a7d15fbd641291f9456fc
4
+ data.tar.gz: 5750ebccf9775aa3971dc7dfe930527ee7803af4
5
5
  SHA512:
6
- metadata.gz: d5f23e59f7bb1319594d4805a82d959e443ea13038c874ccade02b6784de9b2f2065e877d03e0a2051cd00a348e4db18439481a73905d3428bbc3b7facaaf259
7
- data.tar.gz: 83fdd384fa0b618539fccc33d1bd8491b4c2edc341bbe8f7a37471405c11820341968d90f434dca165ca4d2c5e2f05062db0742144528cc8c59b08955a07cd86
6
+ metadata.gz: 6b74a61f4a3dda5e52b8b10fe8f41e92eb9e9266dfa923bfc015b857f68e24757770c620ee6f937da0fc18e2885c2a0a723a2a329febf9871574ab9128dd223e
7
+ data.tar.gz: 4df993ced868041b7f96012b425bf2b0a1d569a1d16074a852c63bf4e9d1b96f19b2ffd1ff362af09f00888bb7a8ca55ce9471848db37d19f76b63b56aa4c642
@@ -120,8 +120,14 @@ module Entangler
120
120
  msg[:content].each do |base, changes|
121
121
  possible_creation_dirs = changes[:dirs].clone
122
122
  possible_creation_files = changes[:files].keys.clone
123
+ full_base_path = generate_abs_path(base)
123
124
 
124
- Dir.entries(generate_abs_path(base)).each do |f|
125
+ unless File.directory?(full_base_path)
126
+ FileUtils::mkdir_p(full_base_path)
127
+ @notify_sleep = Time.now.to_i + 60
128
+ end
129
+
130
+ Dir.entries(full_base_path).each do |f|
125
131
  next if ['.', '..'].include? f
126
132
  full_path = File.join(generate_abs_path(base), f)
127
133
  if File.directory?(full_path)
@@ -1,3 +1,3 @@
1
1
  module Entangler
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entangler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Allie
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 2.5.1
128
+ rubygems_version: 2.4.8
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Two way file syncer using platform native notify and rdiff syncing.