zapwhite 2.2.0 → 2.3.0

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: 90ca59a1a16be44551dac26f55408f8de250cb9c
4
- data.tar.gz: 85e7c3a7b430135c066e618954f929a763dc99bd
3
+ metadata.gz: 9e01ddb47be67c86113a697084374a3eca1708af
4
+ data.tar.gz: f9ef186668f4592aefa57c0361699f08025717b5
5
5
  SHA512:
6
- metadata.gz: 504f45fbca1bae2375051b07646804f9a64b30cb3d4c40d378bf4e71f91259504b88029e90ec69c256d9800dd429ed6a3a06abba6be2c2fcf990fb1e799bd5cd
7
- data.tar.gz: 45380c18b96d5b92457e85f7384efe0bea17b6c56df2371ff01b945e55200149417add73e5422fc28d750e63333e7765ad49ee00f4fcf8268413577f631f7b89
6
+ metadata.gz: 8aa55a595cb0f292477779158658f8b19ac38a243f7f2e04d3302e97e2306bf718811c959712ff1bdf9147d7eb23183a1293c25f8884512115414e2f8165f136
7
+ data.tar.gz: ab77af6ef30cb74d1c2085e3ebec3d6410b6e40d74ff166ce587c5c577353940bb8bec3dc06f1546ff4d626a625ea37eb46122ce5134642c29aed86dab8d9a93
@@ -28,6 +28,20 @@ TEXT
28
28
  end
29
29
  end
30
30
 
31
+ def test_fixing_trailing_whitespace_where_rule_has_whitespace_pattern
32
+ dir = create_git_repo do
33
+ write_gitattributes_file(<<TEXT)
34
+ Read[[:space:]]Me.txt text
35
+ TEXT
36
+ write_file('Read Me.txt', "Hello \n")
37
+ end
38
+ in_dir(dir) do
39
+ output = run_command("#{ZAPWHITE_BIN}", 1)
40
+ assert_equal "Fixing: Read Me.txt\n", output
41
+ assert_equal "Hello\n", IO.binread("#{dir}/Read Me.txt")
42
+ end
43
+ end
44
+
31
45
  def test_fixing_trailing_whitespace_not_crlf_specified
32
46
  dir = create_git_repo do
33
47
  write_gitattributes_file(<<TEXT)
data/zapwhite.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{zapwhite}
5
- s.version = '2.2.0'
5
+ s.version = '2.3.0'
6
6
  s.platform = Gem::Platform::RUBY
7
7
 
8
8
  s.authors = ['Peter Donald']
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.has_rdoc = false
22
22
  s.rdoc_options = %w(--line-numbers --inline-source --title zapwhite)
23
23
 
24
- s.add_dependency 'gitattributes', '= 2.2.0'
24
+ s.add_dependency 'gitattributes', '= 2.3.0'
25
25
 
26
26
  s.add_development_dependency(%q<minitest>, ['= 5.9.1'])
27
27
  s.add_development_dependency(%q<test-unit>, ['= 3.1.5'])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zapwhite
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Donald
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-05 00:00:00.000000000 Z
11
+ date: 2017-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitattributes
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.0
19
+ version: 2.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.0
26
+ version: 2.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement