entangler 1.3.1 → 1.3.2

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
  SHA256:
3
- metadata.gz: 9b405d69c91dd74bb2f638da3d1204475962d781421ac2a6a146bfab43097ff9
4
- data.tar.gz: '08a7f913c8a7d6717c2f0f549b2d1e1c7b43e08d815d38baf41cf8359461fdd7'
3
+ metadata.gz: ede22d7fd84575aa02eea914dc7eef35eb35bce727db9b03bbcd25f6b975a30d
4
+ data.tar.gz: c71f387c5a1859fc2c2931d4d4acbc5c7251d87491a604d7ac157f8a67b4cef2
5
5
  SHA512:
6
- metadata.gz: d1c21079b0e05c852c2ddcbf3451bf3a232975c2378a54eda2d4e295611c592fe7757171d25bd4082029e59b0f7c6045744e4ddeeea1c1f8bc8ec426ffefe06a
7
- data.tar.gz: 79c45d86b0b136bbaaacd1fb8f895714593aee7caa154948e567e5565b3045d5f922a217e6382f683ad5362cb35aa3c32294f2ec83e7578574ebe058579eab90
6
+ metadata.gz: 34a0de48ff67103ff238d2fae9aad59b90fe86b5999b36b6d73dbe2372b4dc9afc1d47ecbaa6798818d94cc00770a73d16b148c1451d588c4cd136a0ee215844
7
+ data.tar.gz: f4f1664744f0b8647cc4f94bbf9cc106879c71950acaddf0a1836a100f74961251604caef3540a44a73d05a1e0ad28836e8e00a3ecc33745a4f82a037c69407b
data/README.md CHANGED
@@ -19,7 +19,7 @@ $ entangler master /some/base/path user@remote:/some/remote/path
19
19
 
20
20
  ```
21
21
  $ entangler -h
22
- Entangler v1.3.0
22
+ Entangler v1.3.2
23
23
 
24
24
  Usage:
25
25
  entangler master <base_dir> <remote_user>@<remote_host>:<remote_base_dir> [options]
@@ -18,6 +18,10 @@ module Entangler
18
18
  Entangler.executor.generate_abs_path(@path)
19
19
  end
20
20
 
21
+ def not_a_directory?
22
+ !File.directory?(full_path)
23
+ end
24
+
21
25
  def file_exists?
22
26
  File.exist?(full_path)
23
27
  end
@@ -56,7 +60,7 @@ module Entangler
56
60
  end
57
61
 
58
62
  def marshal_dump
59
- if file_exists? && (action == :create || action == :update)
63
+ if file_exists? && not_a_directory? && (action == :create || action == :update)
60
64
  @desired_modtime = File.mtime(full_path).to_i
61
65
  @contents = File.read(full_path)
62
66
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Entangler
4
- VERSION = '1.3.1'
4
+ VERSION = '1.3.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entangler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Allie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-05 00:00:00.000000000 Z
11
+ date: 2024-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler