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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a50b3e9a1cbc50cbfdd91eb7c9d6f7e1e8ecf320
4
- data.tar.gz: 1fddaf4b081bd984f0737c5ef36e9738d3ac3738
3
+ metadata.gz: ae8089693fe933f7b69dc4ad1f9adf0ef1e2b55e
4
+ data.tar.gz: a65d381d19c619ea51b6c523ca2bdf2eb9ff9f32
5
5
  SHA512:
6
- metadata.gz: 7be670d2404bde647a5b79c063c11da1109f5154650229877678aa760316117be94027974736d0a806824d791e8f67e9871322439f04d0341ec32a18232f3150
7
- data.tar.gz: 9de9338b2cf7ea670ba3fbb244d31d12c220d837eb23349c1288d24dc678247cf58ba32c887d9694cd4442890ebb6128343712868236b3d69daafe3f60ada94d
6
+ metadata.gz: aadfb4959a55c7acb03830f76694c812cda691fd65a019ff446eeeb16343f0ec0cc6a2d398954c14510551df8429baa8f4e469009bfa7e57dbf9c2bc18f5c962
7
+ data.tar.gz: 893d5097d05d147eb6702c4b4b59adbcf900efdaf963b6e90de345f07f8963f7bc3cc2b5318019a02b7d877bca873396f446c4795ca6a356989f1c30e8b1e9d2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tmsync (0.3.0)
4
+ tmsync (0.3.4)
5
5
  thor
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module Tmsync
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
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
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-12 00:00:00.000000000 Z
11
+ date: 2018-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor