tmsync 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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tmsync/version.rb +1 -1
- data/lib/tmsync.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae8089693fe933f7b69dc4ad1f9adf0ef1e2b55e
|
4
|
+
data.tar.gz: a65d381d19c619ea51b6c523ca2bdf2eb9ff9f32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aadfb4959a55c7acb03830f76694c812cda691fd65a019ff446eeeb16343f0ec0cc6a2d398954c14510551df8429baa8f4e469009bfa7e57dbf9c2bc18f5c962
|
7
|
+
data.tar.gz: 893d5097d05d147eb6702c4b4b59adbcf900efdaf963b6e90de345f07f8963f7bc3cc2b5318019a02b7d877bca873396f446c4795ca6a356989f1c30e8b1e9d2
|
data/Gemfile.lock
CHANGED
data/lib/tmsync/version.rb
CHANGED
data/lib/tmsync.rb
CHANGED
@@ -31,7 +31,13 @@ module Tmsync
|
|
31
31
|
|
32
32
|
# apply exclude regex
|
33
33
|
found_files = all_files.select { |file_path|
|
34
|
-
file_path !~ @exclude_regex
|
34
|
+
file_path !~ @exclude_regex && !File.directory?(file_path)
|
35
|
+
}
|
36
|
+
|
37
|
+
# exclude empty files
|
38
|
+
found_files = found_files.select { |file_path|
|
39
|
+
content = File.open(file_path, 'r') { |f| f.read }
|
40
|
+
!content.strip.empty?
|
35
41
|
}
|
36
42
|
|
37
43
|
# apply matching regex
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tmsync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cihat Gündüz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|