whiteout 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ rvm:
2
+ - 1.8.7
3
+ - 1.9.3
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  Whiteout
2
2
  ========
3
3
 
4
+ [![Build Status](https://secure.travis-ci.org/camdez/whiteout.png?branch=master)](http://travis-ci.org/camdez/whiteout)
5
+
4
6
  Remove annoying trailing whitespace from files.
5
7
 
6
8
  **Warning:** this is alpha-quality code written with the assistance of
data/Rakefile CHANGED
@@ -1,4 +1,8 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task :default => :spec
2
6
 
3
7
  desc "Build manual"
4
8
  task :build_man do
@@ -1,3 +1,3 @@
1
1
  module Whiteout
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/lib/whiteout.rb CHANGED
@@ -46,6 +46,7 @@ module Whiteout
46
46
  outfile.write(self.clean(line))
47
47
  end
48
48
 
49
+ outfile.chmod(infile.stat.mode)
49
50
  outfile.close
50
51
  FileUtils.mv(outfile, infile)
51
52
  end
data/whiteout.gemspec CHANGED
@@ -23,5 +23,5 @@ desc
23
23
 
24
24
  s.add_development_dependency "rspec"
25
25
  s.add_development_dependency "ronn"
26
- # s.add_runtime_dependency "rest-client"
26
+ s.add_development_dependency "rake"
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whiteout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-16 00:00:00.000000000Z
12
+ date: 2012-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70129326231540 !ruby/object:Gem::Requirement
16
+ requirement: &70356011014000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70129326231540
24
+ version_requirements: *70356011014000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ronn
27
- requirement: &70129326231080 !ruby/object:Gem::Requirement
27
+ requirement: &70356011004720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,18 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70129326231080
35
+ version_requirements: *70356011004720
36
+ - !ruby/object:Gem::Dependency
37
+ name: rake
38
+ requirement: &70356011002740 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70356011002740
36
47
  description: ! ' Removes trailing whitespace from standard input or from named files.
37
48
 
38
49
  '
@@ -44,6 +55,7 @@ extensions: []
44
55
  extra_rdoc_files: []
45
56
  files:
46
57
  - .gitignore
58
+ - .travis.yml
47
59
  - Gemfile
48
60
  - LICENSE
49
61
  - README.md
@@ -83,4 +95,3 @@ specification_version: 3
83
95
  summary: Remove trailing whitespace from files.
84
96
  test_files:
85
97
  - spec/whiteout_spec.rb
86
- has_rdoc: