code-cleaner 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +9 -0
- data/code-cleaner.gemspec +7 -4
- data/tasks.rb +9 -0
- data/tasks/code-cleaner.rake +2 -1
- metadata +8 -8
- data/code-cleaner-0.8.gem +0 -0
data/.gitignore
ADDED
data/code-cleaner.gemspec
CHANGED
@@ -1,23 +1,26 @@
|
|
1
1
|
#!/usr/bin/env gem build
|
2
2
|
# encoding: utf-8
|
3
3
|
|
4
|
+
require "base64"
|
5
|
+
|
4
6
|
Gem::Specification.new do |s|
|
5
7
|
s.name = "code-cleaner"
|
6
|
-
s.version = "0.8.
|
8
|
+
s.version = "0.8.2"
|
7
9
|
s.authors = ["Jakub Šťastný aka Botanicus"]
|
8
10
|
s.homepage = "http://github.com/botanicus/code-cleaner"
|
9
11
|
s.summary = "Remove trailing whitespace, append missing \\n and replace tabs by two spaces"
|
10
12
|
s.description = "" # TODO: long description
|
11
13
|
s.cert_chain = nil
|
12
|
-
s.email =
|
14
|
+
s.email = Base64.decode64("c3Rhc3RueUAxMDFpZGVhcy5jeg==\n")
|
13
15
|
s.has_rdoc = false
|
14
16
|
|
15
17
|
# so you can use load "code-cleaner.rake" in you Rakefile
|
16
18
|
s.require_paths = ["tasks"]
|
17
19
|
|
18
20
|
# files
|
19
|
-
s.files =
|
20
|
-
|
21
|
+
s.files = `git ls-files`.split("\n")
|
22
|
+
|
23
|
+
s.executables = Dir["bin/*"].map(&File.method(:basename))
|
21
24
|
s.default_executable = "code-cleaner"
|
22
25
|
|
23
26
|
# RubyForge
|
data/tasks.rb
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
#!/usr/bin/env nake
|
2
2
|
|
3
|
+
begin
|
4
|
+
require File.expand_path("../.bundle/environment", __FILE__)
|
5
|
+
rescue LoadError
|
6
|
+
require "bundler"
|
7
|
+
Bundler.setup
|
8
|
+
end
|
9
|
+
|
10
|
+
$LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
|
11
|
+
|
3
12
|
begin
|
4
13
|
load "./tasks/code-cleaner.nake"
|
5
14
|
rescue LoadError
|
data/tasks/code-cleaner.rake
CHANGED
@@ -10,7 +10,8 @@ task "hooks:whitespace:install" do
|
|
10
10
|
else
|
11
11
|
begin
|
12
12
|
puts "Installing .git/hooks/pre-commit ..."
|
13
|
-
source
|
13
|
+
source = File.join(File.dirname(__FILE__), "..", "support", "pre-commit.erb")
|
14
|
+
options = Hash.new
|
14
15
|
File.open(".git/hooks/pre-commit", "w") do |file|
|
15
16
|
file.puts(ERB.new(File.read(source)).result)
|
16
17
|
end
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code-cleaner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Jakub \xC5\xA0\xC5\xA5astn\xC3\xBD aka Botanicus"
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
|
-
date: 2010-
|
11
|
+
date: 2010-03-05 00:00:00 +00:00
|
12
12
|
default_executable: code-cleaner
|
13
13
|
dependencies: []
|
14
14
|
|
15
15
|
description: ""
|
16
|
-
email:
|
16
|
+
email: stastny@101ideas.cz
|
17
17
|
executables:
|
18
18
|
- code-cleaner
|
19
19
|
extensions: []
|
@@ -21,17 +21,17 @@ extensions: []
|
|
21
21
|
extra_rdoc_files: []
|
22
22
|
|
23
23
|
files:
|
24
|
-
-
|
25
|
-
- code-cleaner-0.8.gem
|
26
|
-
- code-cleaner.gemspec
|
24
|
+
- .gitignore
|
27
25
|
- LICENSE
|
28
26
|
- README.textile
|
27
|
+
- TODO.txt
|
28
|
+
- bin/code-cleaner
|
29
|
+
- code-cleaner.gemspec
|
29
30
|
- support/pre-commit.erb
|
31
|
+
- tasks.rb
|
30
32
|
- tasks/code-cleaner.nake
|
31
33
|
- tasks/code-cleaner.rake
|
32
34
|
- tasks/code-cleaner.thor
|
33
|
-
- tasks.rb
|
34
|
-
- TODO.txt
|
35
35
|
has_rdoc: true
|
36
36
|
homepage: http://github.com/botanicus/code-cleaner
|
37
37
|
licenses: []
|
data/code-cleaner-0.8.gem
DELETED
Binary file
|