tailor 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/History.txt +4 -0
  2. data/README.rdoc +13 -3
  3. data/Rakefile +1 -7
  4. data/lib/tailor.rb +6 -3
  5. metadata +9 -9
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.1.3 2010-12-14
2
+
3
+ * Added check for .erb files
4
+
1
5
  === 0.1.2 2010-09-01
2
6
 
3
7
  * Added ability to check a single file
data/README.rdoc CHANGED
@@ -10,7 +10,9 @@ here http://wiki.github.com/turboladen/tailor.
10
10
 
11
11
  == FEATURES/PROBLEMS:
12
12
 
13
- * Recursively checks for bad style in Ruby files in a directory
13
+ * Checks for bad style in Ruby files
14
+ * Recursively in a directory, or...
15
+ * A given file
14
16
  * Checks for:
15
17
  * Indentation
16
18
  * Hard-tabs in indentation
@@ -30,7 +32,15 @@ here http://wiki.github.com/turboladen/tailor.
30
32
 
31
33
  == SYNOPSIS:
32
34
 
33
- FIX (code sample of usage)
35
+ Run tailor like:
36
+
37
+ $ tailor path/to/check/
38
+ ...or...
39
+ $ tail file_to_check.rb
40
+
41
+ There are a number of false-positives and false-negatives in detection of the
42
+ above rules, so please don't expect perfection in this detection. :) I'm
43
+ working on solving this.
34
44
 
35
45
  == REQUIREMENTS:
36
46
 
@@ -38,7 +48,7 @@ here http://wiki.github.com/turboladen/tailor.
38
48
 
39
49
  == INSTALL:
40
50
 
41
- * (sudo) gem install tailor
51
+ $ (sudo) gem install tailor
42
52
 
43
53
  == LICENSE:
44
54
 
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'hoe'
4
4
  require 'fileutils'
5
5
  require './lib/tailor'
6
6
 
7
- # Load nsm5200 rakefile extensions
7
+ # Load rakefile extensions
8
8
  Dir["#{File.dirname(__FILE__)}/lib/tasks/*.rake"].each { |ext| load ext }
9
9
 
10
10
  Hoe.plugin :newgem
@@ -78,10 +78,4 @@ end
78
78
 
79
79
  # Now define the tasks
80
80
  require 'newgem/tasks'
81
- Dir['tasks/**/*.rake'].each { |t| load t }
82
-
83
- # TODO - want other tests/tasks run by default? Add them to the list
84
- # remove_task :default
85
- # task :default => [:spec, :features]
86
-
87
81
 
data/lib/tailor.rb CHANGED
@@ -8,7 +8,7 @@ require 'tailor/file_line'
8
8
  require 'tailor/spacing'
9
9
 
10
10
  module Tailor
11
- VERSION = '0.1.2'
11
+ VERSION = '0.1.3'
12
12
 
13
13
  # These operators should always have 1 space around them
14
14
  OPERATORS = {
@@ -70,7 +70,7 @@ module Tailor
70
70
  end
71
71
 
72
72
  # Gets a list of .rb files in the project. This gets each file's absolute
73
- # path in order to alleviate any possible confusion.
73
+ # path in order to alleviate any possible confusion.
74
74
  #
75
75
  # @param [String] base_dir Directory to start recursing from to look for .rb
76
76
  # files
@@ -84,6 +84,9 @@ module Tailor
84
84
  ruby_files_in_project = Dir.glob(File.join('*', '**', '*.rb'))
85
85
  Dir.glob(File.join('*.rb')).each { |file| ruby_files_in_project << file }
86
86
 
87
+ # Get the .erb files
88
+ Dir.glob(File.join('*.erb')).each { |file| ruby_files_in_project << file }
89
+
87
90
  # Expand paths to all files in the list
88
91
  list_with_absolute_paths = Array.new
89
92
  ruby_files_in_project.each do |file|
@@ -251,4 +254,4 @@ end
251
254
  end
252
255
  end
253
256
  end
254
- end
257
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steve Loveless
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-01 00:00:00 -07:00
18
+ date: 2010-12-14 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -118,12 +118,12 @@ dependencies:
118
118
  requirements:
119
119
  - - ">="
120
120
  - !ruby/object:Gem::Version
121
- hash: 21
121
+ hash: 47
122
122
  segments:
123
123
  - 2
124
- - 6
125
- - 1
126
- version: 2.6.1
124
+ - 8
125
+ - 0
126
+ version: 2.8.0
127
127
  type: :development
128
128
  version_requirements: *id007
129
129
  description: |+
@@ -244,7 +244,7 @@ rdoc_options:
244
244
  - - Manifest.txt
245
245
  - History.txt
246
246
  - --title
247
- - tailor Documentation (0.1.2)
247
+ - tailor Documentation (0.1.3)
248
248
  - --markup
249
249
  - :rdoc
250
250
  require_paths: