rstrip 0.0.3 → 0.0.4

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: 335626a2f1c52914985cb085fcb123023379de65
4
- data.tar.gz: 1c43cf6e1073eea4fe2949b1cb0cdd06599374da
3
+ metadata.gz: 9a0895dd1dfd6092bdd442b43459a98af2deca57
4
+ data.tar.gz: c29a683eb8e661b29389ec3b6f650ac22ad5131c
5
5
  SHA512:
6
- metadata.gz: 6936b049dab5e71f3203bff9e2cf1177ac4efc2f206dcd3a72115b7d3a78ced8e4fafee13fb1d9cc59564bcf47c0e18b08bd0238f1f286df7e2a6c12170e652e
7
- data.tar.gz: 16055a11b4834fe983b601856b30699395febf0e1919cdfe8f336e44ecc55fe967e599a442388ba6974dba2299b9e8559e3c32ea55d85c26d342deedad718e65
6
+ metadata.gz: 62ca3e77e4a2dad2bc8dbd6a3970abc53d327f09f0f01501b254584cca36052d26bea1d200e78094bb1ef30616306e4305bddc980953d4ee3570e13ce48731c9
7
+ data.tar.gz: 149b8c83a3b755447ff89482388bb0be1840735973fadf9c660612923fc3705d78bc3bde3eeefaa738bb9f9939d1cbc23de9fc322a6d34e990835dc1f09017b6
@@ -6,9 +6,14 @@ module Rstrip
6
6
 
7
7
  def process(file_path)
8
8
  if File.symlink?(file_path)
9
- puts "skip symlink #{file_path}" and return
9
+ puts "skip symlink #{file_path}"
10
+ return
10
11
  elsif !File.writable?(file_path)
11
- puts "skip read only #{file_path}" and return
12
+ puts "skip read only #{file_path}"
13
+ return
14
+ elsif File.directory?(file_path)
15
+ # Return quietly
16
+ return
12
17
  else
13
18
  puts "process #{file_path}"
14
19
  end
@@ -1,3 +1,3 @@
1
1
  module Rstrip
2
- VERSION = "0.0.3"
3
- end
2
+ VERSION = "0.0.4"
3
+ end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rstrip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhengjia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-28 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.13.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.13.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aruba
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.5.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.5.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thor
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: A ruby executable that removes the trailing white space in the current
@@ -61,7 +61,7 @@ executables:
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
- - .gitignore
64
+ - ".gitignore"
65
65
  - Gemfile
66
66
  - README.md
67
67
  - Rakefile
@@ -84,17 +84,17 @@ require_paths:
84
84
  - lib
85
85
  required_ruby_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - '>='
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project: rstrip
97
- rubygems_version: 2.0.3
97
+ rubygems_version: 2.4.6
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: A ruby executable that removes the trailing white space in the current project