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 +4 -4
- data/README.md +1 -1
- data/lib/entangler/entangled_file.rb +5 -1
- data/lib/entangler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ede22d7fd84575aa02eea914dc7eef35eb35bce727db9b03bbcd25f6b975a30d
|
4
|
+
data.tar.gz: c71f387c5a1859fc2c2931d4d4acbc5c7251d87491a604d7ac157f8a67b4cef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34a0de48ff67103ff238d2fae9aad59b90fe86b5999b36b6d73dbe2372b4dc9afc1d47ecbaa6798818d94cc00770a73d16b148c1451d588c4cd136a0ee215844
|
7
|
+
data.tar.gz: f4f1664744f0b8647cc4f94bbf9cc106879c71950acaddf0a1836a100f74961251604caef3540a44a73d05a1e0ad28836e8e00a3ecc33745a4f82a037c69407b
|
data/README.md
CHANGED
@@ -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
|
data/lib/entangler/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|