zapwhite 2.0.0 → 2.1.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: 0fb0eada69b01c2b889300dec91a617488d6b4a6
4
- data.tar.gz: c8ef49b445687b197fdfaafda74b5c02bbec23e1
3
+ metadata.gz: 557aeb69423865c097ac9b1c8ae228da5e224618
4
+ data.tar.gz: 6765271d8a737ea0427356616a2dc29666876c04
5
5
  SHA512:
6
- metadata.gz: b2954ff2cc652657e0311b57a6a452ade7225b1837ba60bc880d958cbf69d0b2e333e232e492c558d77b42f915944d0324c68d2904e0bd3940250b08b52a09c9
7
- data.tar.gz: 7d1beea31dc78a152408ac33371369c88fd3de8b6bac349185c6d0e57602a8814d47fda980903a35703ee15b9f5bd87ae3d07cfc7d0b4d1b2822de5ea1820a09
6
+ metadata.gz: e5816494aa39b231359957dc0e80ce8a9ddfda05db122d9729cf16720322680362dad07d0866c78a64d613839062c96e99b9bbb24e8ef539f67fa5c16ddeff6d
7
+ data.tar.gz: 20ca729314f053c28be95ef709e9f827626284cac978d9fba067d593f1effa25d133adf512a7361942f280567d5bb8b16dbe01da6cdb9cf333d2e7da7226e391
data/README.md CHANGED
@@ -21,7 +21,19 @@ ASCII. The tool will also scan and remove duplicate new lines if any file
21
21
  has a attribute `-dupnl`. The tool will not enforce end of file new
22
22
  lines if attribute `-eofnl` is set.
23
23
 
24
- ## TODO
25
-
26
- * Next version should generate `.gitattributes` based on scanning project
27
- and then follow up with normal zapwhite process.
24
+ Error:
25
+ ```
26
+ NoMethodError: undefined method `reverse' for {}:Hash
27
+ Did you mean? reverse_each
28
+ /Users/peter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/gitattributes-2.0.0/lib/reality/git/attributes.rb:45:in `attributes'
29
+ /Users/peter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/zapwhite-2.0.0/lib/reality/zapwhite.rb:85:in `block (2 levels) in collect_files'
30
+ /Users/peter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/zapwhite-2.0.0/lib/reality/zapwhite.rb:82:in `each'
31
+ /Users/peter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/zapwhite-2.0.0/lib/reality/zapwhite.rb:82:in `block in collect_files'
32
+ /Users/peter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/zapwhite-2.0.0/lib/reality/zapwhite.rb:138:in `in_dir'
33
+ /Users/peter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/zapwhite-2.0.0/lib/reality/zapwhite.rb:81:in `collect_files'
34
+ /Users/peter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/zapwhite-2.0.0/lib/reality/zapwhite.rb:43:in `run'
35
+ /Users/peter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/zapwhite-2.0.0/bin/zapwhite:42:in `<top (required)>'
36
+ /Users/peter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bin/zapwhite:23:in `load'
37
+ /Users/peter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bin/zapwhite:23:in `<top (required)>'
38
+ bundler: failed to load command: zapwhite (/Users/peter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bin/zapwhite)
39
+ ```
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ task :default => [:test, :build]
10
10
 
11
11
  desc 'Test Task'
12
12
  Rake::TestTask.new do |t|
13
- files = FileList['test/helper.rb', 'test/**/test_*.rb']
13
+ files = FileList['test/**/test_*.rb']
14
14
  t.loader = :rake
15
15
  t.test_files = files
16
16
  t.libs << '.'
data/test/helper.rb CHANGED
@@ -82,6 +82,7 @@ module Reality
82
82
 
83
83
  in_dir(directory) do
84
84
  run_command('git init')
85
+ run_command("git config --local commit.gpgsign false")
85
86
  run_command("git config --local user.name \"Your Name\"")
86
87
  run_command("git config --local user.email \"you@example.com\"")
87
88
  yield
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.0.0'
5
+ s.version = '2.1.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.0.0'
24
+ s.add_dependency 'gitattributes', '= 2.1.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.0.0
4
+ version: 2.1.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-01 00:00:00.000000000 Z
11
+ date: 2017-08-04 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.0.0
19
+ version: 2.1.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.0.0
26
+ version: 2.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement