tailor 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -3
  3. data/Gemfile.lock +39 -31
  4. data/History.md +220 -207
  5. data/README.md +58 -45
  6. data/features/step_definitions/indentation_steps.rb +1 -1
  7. data/lib/tailor/reporter.rb +19 -7
  8. data/lib/tailor/rulers/spaces_before_lbrace_ruler.rb +0 -1
  9. data/lib/tailor/rulers/spaces_before_rbrace_ruler.rb +0 -1
  10. data/lib/tailor/rulers/spaces_in_empty_braces_ruler.rb +0 -1
  11. data/lib/tailor/version.rb +1 -1
  12. data/spec/functional/conditional_parentheses_spec.rb +1 -1
  13. data/spec/functional/conditional_spacing_spec.rb +1 -1
  14. data/spec/functional/configuration_spec.rb +61 -52
  15. data/spec/functional/horizontal_spacing/braces_spec.rb +134 -134
  16. data/spec/functional/horizontal_spacing/brackets_spec.rb +34 -36
  17. data/spec/functional/horizontal_spacing/comma_spacing_spec.rb +25 -27
  18. data/spec/functional/horizontal_spacing/hard_tabs_spec.rb +42 -42
  19. data/spec/functional/horizontal_spacing/long_lines_spec.rb +15 -17
  20. data/spec/functional/horizontal_spacing/long_methods_spec.rb +4 -4
  21. data/spec/functional/horizontal_spacing/parens_spec.rb +45 -45
  22. data/spec/functional/horizontal_spacing/trailing_whitespace_spec.rb +7 -8
  23. data/spec/functional/horizontal_spacing_spec.rb +10 -11
  24. data/spec/functional/indentation_spacing/argument_alignment_spec.rb +33 -62
  25. data/spec/functional/indentation_spacing/bad_indentation_spec.rb +176 -179
  26. data/spec/functional/indentation_spacing_spec.rb +13 -14
  27. data/spec/functional/naming/camel_case_methods_spec.rb +4 -6
  28. data/spec/functional/naming/screaming_snake_case_classes_spec.rb +28 -31
  29. data/spec/functional/naming_spec.rb +3 -3
  30. data/spec/functional/rake_task_spec.rb +9 -28
  31. data/spec/functional/string_interpolation_spec.rb +1 -1
  32. data/spec/functional/string_quoting_spec.rb +1 -1
  33. data/spec/functional/vertical_spacing/class_length_spec.rb +4 -6
  34. data/spec/functional/vertical_spacing/method_length_spec.rb +15 -17
  35. data/spec/functional/vertical_spacing_spec.rb +3 -3
  36. data/spec/spec_helper.rb +2 -0
  37. data/spec/support/argument_alignment_cases.rb +32 -32
  38. data/spec/support/conditional_parentheses_cases.rb +26 -26
  39. data/spec/support/good_indentation_cases.rb +205 -205
  40. data/spec/support/horizontal_spacing_cases.rb +53 -54
  41. data/spec/support/line_indentation_cases.rb +20 -20
  42. data/spec/support/naming_cases.rb +12 -12
  43. data/spec/support/string_interpolation_cases.rb +17 -17
  44. data/spec/support/string_quoting_cases.rb +12 -12
  45. data/spec/support/vertical_spacing_cases.rb +8 -8
  46. data/spec/unit/tailor/cli/options_spec.rb +20 -14
  47. data/spec/unit/tailor/cli_spec.rb +29 -43
  48. data/spec/unit/tailor/composite_observable_spec.rb +1 -1
  49. data/spec/unit/tailor/configuration/file_set_spec.rb +10 -11
  50. data/spec/unit/tailor/configuration/style_spec.rb +41 -42
  51. data/spec/unit/tailor/configuration_spec.rb +14 -12
  52. data/spec/unit/tailor/formatter_spec.rb +3 -3
  53. data/spec/unit/tailor/formatters/yaml_spec.rb +12 -13
  54. data/spec/unit/tailor/lexed_line_spec.rb +67 -69
  55. data/spec/unit/tailor/lexer/token_spec.rb +7 -7
  56. data/spec/unit/tailor/lexer_spec.rb +24 -24
  57. data/spec/unit/tailor/problem_spec.rb +12 -12
  58. data/spec/unit/tailor/reporter_spec.rb +8 -9
  59. data/spec/unit/tailor/ruler_spec.rb +10 -10
  60. data/spec/unit/tailor/rulers/indentation_spaces_ruler/indentation_manager_spec.rb +90 -86
  61. data/spec/unit/tailor/rulers/indentation_spaces_ruler_spec.rb +13 -13
  62. data/spec/unit/tailor/rulers/spaces_after_comma_ruler_spec.rb +4 -4
  63. data/spec/unit/tailor/rulers/spaces_after_lbrace_ruler_spec.rb +19 -19
  64. data/spec/unit/tailor/rulers/spaces_before_lbrace_ruler_spec.rb +6 -6
  65. data/spec/unit/tailor/rulers/spaces_before_rbrace_ruler_spec.rb +6 -6
  66. data/spec/unit/tailor/rulers_spec.rb +1 -1
  67. data/spec/unit/tailor/version_spec.rb +1 -2
  68. data/spec/unit/tailor_spec.rb +2 -2
  69. data/tailor.gemspec +3 -3
  70. metadata +20 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f1026ecc89830b0c65269c0bd76a2704e5231f6
4
- data.tar.gz: 038711b887bb8afcaa7236f214b502a058de9d6c
3
+ metadata.gz: e81fb978c4eeacf6e9f4938e9d5c0b95098862cf
4
+ data.tar.gz: be4f04c5fc326f90193c618e767fe0bff4b06734
5
5
  SHA512:
6
- metadata.gz: e22f50e1f616b69c4c431de2ba6e50021ee4cb03535744307c843ae24876dcdc1fba00da47660ef512fa13a65efbfa5aa844bc095e23051bda60d934b44bade8
7
- data.tar.gz: b90cea7791ba0ef3415fadb5497fcc5e340e7f0352e81d3de6da22c391d4d02791ff81c4a279656fd147d65465bf8eeec634f13bc4c560128fc9410c06c458c6
6
+ metadata.gz: 4356caae0f10499c05c3ed8c4367d6c37c6919bb217e75bb10b10309392497aef75545adf44605d49f029c2bc48c42f2636d06f649dada3d0f669ed6236a59e6
7
+ data.tar.gz: 03ae7012f1de038da53e67645813cd755d5773590b66012d6337aef3f645d0644cf010ebc34035f170103dbe334b8ea0bdbbd742ead747977d2ad4fda93b5bca
@@ -1,5 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.0
3
+ - ruby-2.0.0
4
+ - ruby-2.1.4
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tailor (1.3.1)
5
- log_switch (>= 0.3.0)
4
+ tailor (1.4.1)
5
+ log_switch (~> 0.3.0)
6
6
  nokogiri (>= 1.6.0)
7
7
  term-ansicolor (>= 1.0.5)
8
8
  text-table (>= 1.2.2)
@@ -10,50 +10,57 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- aruba (0.5.4)
13
+ aruba (0.6.1)
14
14
  childprocess (>= 0.3.6)
15
15
  cucumber (>= 1.1.1)
16
16
  rspec-expectations (>= 2.7.0)
17
17
  builder (3.2.2)
18
- childprocess (0.4.0)
18
+ childprocess (0.5.5)
19
19
  ffi (~> 1.0, >= 1.0.11)
20
- cucumber (1.3.10)
20
+ cucumber (1.3.17)
21
21
  builder (>= 2.1.2)
22
22
  diff-lcs (>= 1.1.3)
23
23
  gherkin (~> 2.12)
24
24
  multi_json (>= 1.7.5, < 2.0)
25
- multi_test (>= 0.0.2)
25
+ multi_test (>= 0.1.1)
26
26
  diff-lcs (1.2.5)
27
- docile (1.1.2)
28
- fakefs (0.5.0)
29
- ffi (1.9.3)
27
+ docile (1.1.5)
28
+ fakefs (0.6.0)
29
+ ffi (1.9.6)
30
30
  gherkin (2.12.2)
31
31
  multi_json (~> 1.3)
32
- log_switch (0.4.0)
33
- mini_portile (0.5.2)
34
- multi_json (1.8.4)
35
- multi_test (0.0.3)
36
- nokogiri (1.6.1)
37
- mini_portile (~> 0.5.0)
38
- rake (10.1.1)
39
- rspec (2.14.1)
40
- rspec-core (~> 2.14.0)
41
- rspec-expectations (~> 2.14.0)
42
- rspec-mocks (~> 2.14.0)
43
- rspec-core (2.14.7)
44
- rspec-expectations (2.14.4)
45
- diff-lcs (>= 1.1.3, < 2.0)
46
- rspec-mocks (2.14.4)
47
- simplecov (0.8.2)
32
+ log_switch (0.3.0)
33
+ mini_portile (0.6.0)
34
+ multi_json (1.10.1)
35
+ multi_test (0.1.1)
36
+ nokogiri (1.6.3.1)
37
+ mini_portile (= 0.6.0)
38
+ rake (10.3.2)
39
+ rspec (3.1.0)
40
+ rspec-core (~> 3.1.0)
41
+ rspec-expectations (~> 3.1.0)
42
+ rspec-mocks (~> 3.1.0)
43
+ rspec-core (3.1.7)
44
+ rspec-support (~> 3.1.0)
45
+ rspec-expectations (3.1.2)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.1.0)
48
+ rspec-its (1.1.0)
49
+ rspec-core (>= 3.0.0)
50
+ rspec-expectations (>= 3.0.0)
51
+ rspec-mocks (3.1.3)
52
+ rspec-support (~> 3.1.0)
53
+ rspec-support (3.1.2)
54
+ simplecov (0.9.1)
48
55
  docile (~> 1.1.0)
49
- multi_json
56
+ multi_json (~> 1.0)
50
57
  simplecov-html (~> 0.8.0)
51
58
  simplecov-html (0.8.0)
52
- term-ansicolor (1.2.2)
53
- tins (~> 0.8)
59
+ term-ansicolor (1.3.0)
60
+ tins (~> 1.0)
54
61
  text-table (1.2.3)
55
- tins (0.13.1)
56
- yard (0.8.7.3)
62
+ tins (1.3.3)
63
+ yard (0.8.7.6)
57
64
 
58
65
  PLATFORMS
59
66
  ruby
@@ -64,7 +71,8 @@ DEPENDENCIES
64
71
  cucumber (>= 1.0.2)
65
72
  fakefs (>= 0.4.2)
66
73
  rake
67
- rspec (>= 2.5.0)
74
+ rspec (~> 3.1)
75
+ rspec-its
68
76
  simplecov (>= 0.4.0)
69
77
  tailor!
70
78
  yard (>= 0.7.0)
data/History.md CHANGED
@@ -1,150 +1,169 @@
1
- ### 1.4.0 2014-01-23
1
+ ### 1.4.1 2014-10-31 ###
2
+
3
+ * Improvements
4
+ * Updated specs to follow RSpec 3 conventions.
5
+ * [gh-156](https://github.com/turboladen/tailor/issues/156)
6
+ Added Code Climate badges to README. Thanks @jhmartin !
7
+ * Bug Fixes
8
+ * [gh-157](https://github.com/turboladen/tailor/issues/157)
9
+ Don't require a formatter if one has already been given.
10
+ Thanks @inferiorhumanorgans !
11
+ * [gh-160](https://github.com/turboladen/tailor/issues/160),
12
+ [gh-161](https://github.com/turboladen/tailor/pull/161)
13
+ Locked down version of log_switch to ~>0.3.0. Thanks
14
+ @tempredirect !
15
+
16
+ ### 1.4.0 2014-01-23 ###
2
17
 
3
18
  * Features
4
19
  * Added Ruby 2.1.0 to the list of tested Rubies.
5
20
  * Overall better indentation checking.
6
21
  * [gh-143](https://github.com/turboladen/tailor/issues/143) and
7
22
  [gh-102](https://github.com/turboladen/tailor/issues/102)
8
- * The indentation ruler can now be told, using the `:line_continuations`
9
- option, that when a statement spans multiple lines, second and
10
- subsequent lines are/are not indented. See [these tests](https://github.com/turboladen/tailor/blob/aca324e449d3814c4473db3c28a7f719c0023750/spec/functional/indentation_spacing/line_continuations_spec.rb)
11
- for more info.
23
+ The indentation ruler can now be told, using the
24
+ `:line_continuations` option, that when a statement spans
25
+ multiple lines, second and subsequent lines are/are not
26
+ indented. See
27
+ [these tests](https://github.com/turboladen/tailor/blob/aca324e449d3814c4473db3c28a7f719c0023750/spec/functional/indentation_spacing/line_continuations_spec.rb)
28
+ for more info.
12
29
  * [gh-144](https://github.com/turboladen/tailor/issues/143) and
13
30
  [gh-94](https://github.com/turboladen/tailor/issues/94)
14
- * Added the `:argument_alignment` option to the indentation ruler,
15
- which tells tailor to expect method declarations and calls that span
16
- multiple lines to have their params be indented to the same spot
17
- as the first param of the first line. See [these tests](https://github.com/acrmp/tailor/blob/f8f3cb3c69bd4704cf8548d2c119a8d196a92043/spec/functional/indentation_spacing/argument_alignment_spec.rb)
18
- for more info.
31
+ Added the `:argument_alignment` option to the indentation
32
+ ruler, which tells tailor to expect method declarations
33
+ and calls that span multiple lines to have their params be
34
+ indented to the same spot as the first param of the first
35
+ line. See [these tests](https://github.com/acrmp/tailor/blob/f8f3cb3c69bd4704cf8548d2c119a8d196a92043/spec/functional/indentation_spacing/argument_alignment_spec.rb)
36
+ for more info.
19
37
  * [gh-148](https://github.com/turboladen/tailor/issues/148)
20
- * Added new ruler: `allow_conditional_parentheses`. This lets you
21
- tell tailor to expect parentheses around statements that conditionals
22
- check. Defaults to true.
38
+ Added new ruler: `allow_conditional_parentheses`. This
39
+ lets you tell tailor to expect parentheses around
40
+ statements that conditionals check. Defaults to true.
23
41
  * [gh-149](https://github.com/turboladen/tailor/issues/149)
24
- * Added new ruler: `allow_unnecessary_interpolation`. This lets you
25
- tell tailor to check for strings that use interpolation, but do it in
26
- a gross way. Defaults to false.
42
+ Added new ruler: `allow_unnecessary_interpolation`. This
43
+ lets you tell tailor to check for strings that use
44
+ interpolation, but do it in a gross way. Defaults to
45
+ false.
27
46
  * [gh-150](https://github.com/turboladen/tailor/issues/150)
28
- * Added new ruler: `allow_unnecessary_double_quotes`. This lets you
29
- tell tailor to check for strings that use double-quotes but aren't
30
- doing interpolation. Defaults to false.
47
+ Added new ruler: `allow_unnecessary_double_quotes`. This
48
+ lets you tell tailor to check for strings that use
49
+ double-quotes but aren't doing interpolation. Defaults to
50
+ false.
31
51
  * Bug fixes
32
52
  * [gh-154](https://github.com/turboladen/tailor/issues/154)
33
- * Fixed indentation when do/end block chained on a {} block. This
34
- change also simplified IndentationManager. Thanks @hollow!
53
+ Fixed indentation when do/end block chained on a {} block.
54
+ This change also simplified IndentationManager. Thanks
55
+ @hollow!
35
56
 
36
-
37
- ### 1.3.1 2013-09-29
57
+ ### 1.3.1 2013-09-29 ###
38
58
 
39
59
  * Bug fixes
40
60
  * [gh-147](https://github.com/turboladen/tailor/issues/147)
41
- * Added license type to the gemspec.
42
-
61
+ Added license type to the gemspec.
43
62
 
44
- ### 1.3.0 2013-09-27
63
+ ### 1.3.0 2013-09-27 ###
45
64
 
46
65
  * Features
47
- * [gh-91](https://github.com/turboladen/tailor/issues/91) (partial fix)
48
- * @acrmp added the spaces_after_conditional ruler, which checks for
49
- conditional keywords that aren't followed with a space.
50
-
66
+ * [gh-91](https://github.com/turboladen/tailor/issues/91)
67
+ (partial fix) @acrmp added the spaces_after_conditional
68
+ ruler, which checks for conditional keywords that aren't
69
+ followed with a space.
51
70
  * Bug fixes
52
71
  * [gh-116](https://github.com/turboladen/tailor/issues/116) and
53
72
  [gh-135](https://github.com/turboladen/tailor/issues/135)
54
- * Recursive file sets now accept style properly. Thanks, @acrmp!
73
+ Recursive file sets now accept style properly. Thanks,
74
+ @acrmp!
55
75
  * [gh-117](https://github.com/turboladen/tailor/issues/117) and
56
76
  [gh-118](https://github.com/turboladen/tailor/issues/118)
57
- * Command line options can now be turned off using `false` and `off`.
58
- Thanks, @acrmp!
59
-
60
-
61
-
62
- ### 1.2.1 2013-03-12
63
-
64
- * [gh-134](https://github.com/turboladen/tailor/issues/134)
65
- * Turned logging off by default when using bin/tailor. This was a
66
- regression introduced in 1.2.0.
67
-
68
-
69
-
70
- ### 1.2.0 2013-03-06
71
-
72
- * [gh-119](https://github.com/turboladen/tailor/issues/119)
73
- * AllowInvalidRubyRuler now uses Gem.ruby to use the ruby that tailor
74
- was run with.
75
-
76
- * [gh-130](https://github.com/turboladen/tailor/issues/130)
77
- * AllowInvalidRubyRuler now handles file names with spaces in them.
78
-
79
- * [gh-131](https://github.com/turboladen/tailor/issues/131)
80
- * Added YAML output formatter. Thanks @leandronsp!
81
-
82
- * [gh-133](https://github.com/turboladen/tailor/issues/133)
83
- * Added support for Ruby 2.0.0-p0. ...which is actually just accounting
84
- for a [fix to Ripper](https://bugs.ruby-lang.org/issues/6211) that
85
- finally got merged in to a Ruby release.
86
-
87
-
88
- ### 1.1.5 2013-01-30
89
-
90
- * [gh-127](https://github.com/turboladen/tailor/issues/127)
91
- * The last fix had SystemExit being displayed to the user at all times
92
- (since it should've been getting rescued from when the program exits).
93
- Properly rescuing this now for Rake tasks, so it now behaves just
94
- like bin/tailor in this respect.
77
+ Command line options can now be turned off using `false`
78
+ and `off`. Thanks, @acrmp!
95
79
 
96
- ### 1.1.4 2013-01-29
80
+ ### 1.2.1 2013-03-12 ###
97
81
 
98
- * [gh-127](https://github.com/turboladen/tailor/issues/127)
99
- * RakeTask now actually does something (works).
82
+ * Improvements
83
+ * [gh-134](https://github.com/turboladen/tailor/issues/134)
84
+ Turned logging off by default when using `bin/tailor`.
85
+ This was a regression introduced in 1.2.0.
100
86
 
101
- * tailor should now abort (and let you know) when it can't find the config
102
- file that you told it to use. Previously, it would just fall back to
103
- default settings.
104
-
105
-
106
- ### 1.1.3 2013-01-28
107
-
108
- * [gh-121](https://github.com/turboladen/tailor/issues/121)
109
- * Camel case methods are now detected properly when used inside of a
110
- class. Thanks @jasonku!
111
-
112
-
113
-
114
- ### 1.1.2 2012-06-01
115
-
116
- * [gh-101](https://github.com/turboladen/tailor/issues/101)
117
- * Tailor now handles code that uses backslashes to break up statements
118
- to multiple lines. Note that this is somewhat of a hack, since Ripper
119
- does not tokenize these backslashes--it actually just treats what we
120
- see as 2 lines of code as a single line of code. In order to preserve
121
- line numbering and indentation tracking, tailor replaces the backslash
122
- with a special comment that it can detect and handle accordingly.
123
- While this isn't ideal, given the current design, it seemed like the
124
- way to deal with this.
125
-
126
- * [gh-103](https://github.com/turboladen/tailor/issues/103)
127
- * Tailor now properly handles string interpolation inside string
128
- interpolation.
87
+ ### 1.2.0 2013-03-06 ###
129
88
 
89
+ * Features
90
+ * [gh-131](https://github.com/turboladen/tailor/issues/131)
91
+ Added YAML output formatter. Thanks @leandronsp!
92
+ * [gh-133](https://github.com/turboladen/tailor/issues/133)
93
+ Added support for Ruby 2.0.0-p0. ...which is actually
94
+ just accounting for a [fix to Ripper](https://bugs.ruby-lang.org/issues/6211)
95
+ that finally got merged in to a Ruby release.
96
+ * Improvements
97
+ * [gh-130](https://github.com/turboladen/tailor/issues/130)
98
+ `AllowInvalidRubyRuler` now handles file names with spaces
99
+ in them.
100
+ * Bug fixes
101
+ * [gh-119](https://github.com/turboladen/tailor/issues/119)
102
+ `AllowInvalidRubyRuler` now uses `Gem.ruby` to use the
103
+ ruby that tailor was run with.
130
104
 
105
+ ### 1.1.5 2013-01-30 ###
131
106
 
132
- ### 1.1.1 2012-05-31
107
+ * Bug fixes
108
+ * [gh-127](https://github.com/turboladen/tailor/issues/127)
109
+ The last fix had `SystemExit` being displayed to the user
110
+ at all times (since it should've been getting rescued from
111
+ when the program exits). Properly rescuing this now for
112
+ Rake tasks, so it now behaves just like `bin/tailor` in
113
+ this respect.
114
+
115
+ ### 1.1.4 2013-01-29 ###
116
+
117
+ * Improvements
118
+ * tailor should now abort (and let you know) when it can't
119
+ find the config file that you told it to use. Previously,
120
+ it would just fall back to default settings.
121
+ * Bug fixes
122
+ * [gh-127](https://github.com/turboladen/tailor/issues/127)
123
+ `RakeTask` now actually does something (works).
133
124
 
134
- * [gh-110](https://github.com/turboladen/tailor/issues/110)
135
- * Tailor now exits with 0 if non-error problems are found.
125
+ ### 1.1.3 2013-01-28 ###
136
126
 
127
+ * Bug fixes
128
+ * [gh-121](https://github.com/turboladen/tailor/issues/121)
129
+ Camel case methods are now detected properly when used
130
+ inside of a class. Thanks @jasonku!
131
+
132
+ ### 1.1.2 2012-06-01 ###
133
+
134
+ * Improvements
135
+ * [gh-101](https://github.com/turboladen/tailor/issues/101)
136
+ Tailor now handles code that uses backslashes to break up
137
+ statements to multiple lines. Note that this is somewhat
138
+ of a hack, since Ripper does not tokenize these
139
+ backslashes--it actually just treats what we see as 2
140
+ lines of code as a single line of code. In order to
141
+ preserve line numbering and indentation tracking, tailor
142
+ replaces the backslash with a special comment that it can
143
+ detect and handle accordingly. While this isn't ideal,
144
+ given the current design, it seemed like the way to deal
145
+ with this.
146
+ * Bug fixes
147
+ * [gh-103](https://github.com/turboladen/tailor/issues/103)
148
+ Tailor now properly handles string interpolation inside
149
+ string interpolation.
137
150
 
151
+ ### 1.1.1 2012-05-31 ###
138
152
 
139
- ### 1.1.0 2012-05-07
153
+ * Bug fixes
154
+ * [gh-110](https://github.com/turboladen/tailor/issues/110)
155
+ Tailor now exits with 0 if non-error problems are found.
140
156
 
141
- * [gh-89](https://github.com/turboladen/tailor/issues/89)
142
- * You can now use {Tailor::RakeTask} to create a Rake task.
157
+ ### 1.1.0 2012-05-07 ###
143
158
 
144
- * [gh-100](https://github.com/turboladen/tailor/issues/100)
145
- * Added {Tailor::Configuration#recursive_file_set}. This lets you do
146
- the following in your config file, which will recursively match all
147
- files in your current path that end with '_spec.rb':
159
+ * Features
160
+ * [gh-89](https://github.com/turboladen/tailor/issues/89)
161
+ You can now use `Tailor::RakeTask` to create a Rake task.
162
+ * [gh-100](https://github.com/turboladen/tailor/issues/100)
163
+ Added `Tailor::Configuration#recursive_file_set`. This
164
+ lets you do the following in your config file, which will
165
+ recursively match all files in your current path that end
166
+ with `_spec.rb`:
148
167
 
149
168
  ```ruby
150
169
  Tailor.config do |config|
@@ -163,131 +182,125 @@
163
182
  end
164
183
  end
165
184
  ```
185
+ * Improvements
186
+ * Configuration files now don't force you to use the
187
+ :default file set. If you don't specify any file sets,
188
+ then the default is used; if you specify file sets, it
189
+ uses what you specify.
190
+ * CLI options now override config file options for all file
191
+ sets (previously, only the :default file set's option
192
+ would get overridden by the CLI option).
193
+ * Bug fixes
194
+ * [gh-107](https://github.com/turboladen/tailor/issues/107)
195
+ Fixed `--no-color` option.
196
+ * [gh-108](https://github.com/turboladen/tailor/issues/108)
197
+ Fixed `--create-config`, which created style level options
198
+ with a missing ':' for the Hash value.
166
199
 
200
+ ### 1.0.1 2012-04-23 ###
167
201
 
168
- * [gh-107](https://github.com/turboladen/tailor/issues/107)
169
- * Fixed --no-color option.
170
-
171
- * [gh-108](https://github.com/turboladen/tailor/issues/108)
172
- * Fixed --create-config, which created style level options with a
173
- missing ':' for the Hash value.
174
-
175
- * Configuration files now don't force you to use the :default file set. If
176
- you don't specify any file sets, then the default is used; if you specify
177
- file sets, it uses what you specify.
178
- * CLI options now override config file options for all file sets
179
- (previously, only the :default file set's option would get overridden by
180
- the CLI option).
181
-
182
-
183
- ### 1.0.1 2012-04-23
184
-
185
- * [gh-104](https://github.com/turboladen/tailor/issues/104):
186
- * Fixed incorrect rendering of config file when using `tailor
187
- --create-config`.
188
-
189
-
190
-
191
- ### 1.0.0 2012-04-17
192
-
193
- * Big update to config file.
194
- * Fix for indentation checking on nested Hashes.
195
- * Fix for overriding default style in config files.
196
- * Fix to exit after --show-config.
197
- * [gh-99](https://github.com/turboladen/tailor/issues/99)
198
- * Now warns by default if `ruby -c [file]` fails.
202
+ * Bug fixes
203
+ * [gh-104](https://github.com/turboladen/tailor/issues/104):
204
+ Fixed incorrect rendering of config file when using
205
+ `tailor --create-config`.
199
206
 
200
- * [gh-93](https://github.com/turboladen/tailor/issues/93)
201
- * 2 'end's on the same line don't cause an indentation error.
207
+ ### 1.0.0 2012-04-17 ###
202
208
 
203
- * [gh-92](https://github.com/turboladen/tailor/issues/92)
204
- * Users can now turn off a ruler...
209
+ * Features
210
+ * Big update to config file.
211
+ * [gh-92](https://github.com/turboladen/tailor/issues/92)
212
+ Users can now turn off a ruler...
205
213
  * CLI: `--my-option off`
206
214
  * Config file: `my_option 1, level: :off`
215
+ * [gh-86](https://github.com/turboladen/tailor/issues/86)
216
+ Indentation checking implemented.
217
+ * Improvements
218
+ * [gh-99](https://github.com/turboladen/tailor/issues/99)
219
+ Now warns by default if `ruby -c [file]` fails.
220
+ * Bug fixes
221
+ * Fix for indentation checking on nested Hashes.
222
+ * Fix for overriding default style in config files.
223
+ * Fix to exit after `--show-config`.
224
+ * [gh-93](https://github.com/turboladen/tailor/issues/93)
225
+ 2 'end's on the same line don't cause an indentation
226
+ error.
227
+ * [gh-68](https://github.com/turboladen/tailor/issues/68)
228
+ Spaces aren't improperly detected after a token when the
229
+ line ends with a backslash.
230
+
231
+ ### 1.0.0.alpha2 2012-04-09 ###
207
232
 
233
+ * Bug fixes
234
+ * Fix for when not using a config file.
208
235
 
209
- * [gh-86](https://github.com/turboladen/tailor/issues/86)
210
- * Indentation checking implemented.
211
-
212
- * [gh-68](https://github.com/turboladen/tailor/issues/68)
213
- * Spaces aren't improperly detected after a token when the line ends
214
- with a backslash.
215
-
216
-
217
-
218
- ### 1.0.0.alpha2 2012-04-09
219
-
220
- * Fix for when not using a config file.
221
-
222
-
223
- ### 1.0.0.alpha 2012-04-09
236
+ ### 1.0.0.alpha 2012-04-09 ###
224
237
 
225
238
  * Complete rewrite.
226
- * New style checks:
227
- * Indentation.
228
- * LOC count in a class.
229
- * LOC count in a method.
230
- * Trailing newlines at EOF.
231
-
232
- * Other new features:
233
- * Configuration file use--both .tailor and ~/.tailorrc--lets you specify
234
- groups of files.
239
+ * Features
240
+ * New style checks:
241
+ * Indentation.
242
+ * LOC count in a class.
243
+ * LOC count in a method.
244
+ * Trailing newlines at EOF.
245
+ * Configuration file use--both .tailor and ~/.tailorrc--lets
246
+ you specify groups of files.
235
247
  * Turn checks off via CLI options.
236
248
 
249
+ ### 0.1.5 2011-09-27 ###
237
250
 
251
+ * Bug fixes
252
+ * Fixed post install message to use heredoc instead of %w
253
+ (<-wth was I thinking?)
238
254
 
239
- ### 0.1.5 2011-09-27
240
-
241
- * Fixed post install message to use heredoc instead of %w (<-wth was I
242
- thinking?)
243
-
244
-
245
- ### 0.1.4 2011-09-27
246
-
247
- * gh-81: Return exit status of 1 if problems were found.
248
- * Fixed Rakefile and .gemspec. [sergio-fry]
249
- * Removed dependency on hoe for gem building.
250
- * Added -v/--version to bin/tailor.
251
- * Fixed documentation indentation.
252
-
253
-
254
- ### 0.1.3 2010-12-14
255
-
256
- * Added check for .erb files.
257
-
258
-
259
- ### 0.1.2 2010-09-01
255
+ ### 0.1.4 2011-09-27 ###
260
256
 
261
- * Added ability to check a single file.
257
+ * Improvements
258
+ * Removed dependency on hoe for gem building.
259
+ * Added -v/--version to `bin/tailor`.
260
+ * Bug fixes
261
+ * gh-81: Return exit status of 1 if problems were found.
262
+ * Fixed Rakefile and .gemspec. [sergio-fry]
263
+ * Fixed documentation indentation.
262
264
 
265
+ ### 0.1.3 2010-12-14 ###
263
266
 
264
- ### 0.1.0 2010-05-21
267
+ * Improvements
268
+ * Added check for .erb files.
265
269
 
266
- * Added checks for spacing around { and }.
267
- * Added check for spacing around ternary ':'.
268
- * Colorized error messages to be red.
269
- * Problem message are now grouped by file line (when multiple problems per
270
- line).
271
- * Temporarily removed reporting of # of trailing whitespaces.
270
+ ### 0.1.2 2010-09-01 ###
272
271
 
272
+ * Improvements
273
+ * Added ability to check a single file.
273
274
 
274
- ### 0.0.3 2010-04-26
275
+ ### 0.1.0 2010-05-21 ###
275
276
 
276
- * Added checks for spacing around commas.
277
- * Added checks for spacing around open/closed parenthesis/brackets.
277
+ * Improvements
278
+ * Added checks for spacing around { and }.
279
+ * Added check for spacing around ternary ':'.
280
+ * Colorized error messages to be red.
281
+ * Problem message are now grouped by file line (when
282
+ multiple problems per line).
283
+ * Temporarily removed reporting of # of trailing
284
+ whitespaces.
278
285
 
286
+ ### 0.0.3 2010-04-26 ###
279
287
 
280
- ### 0.0.2 2010-04-23
288
+ * Improvements
289
+ * Added checks for spacing around commas.
290
+ * Added checks for spacing around open/closed
291
+ parenthesis/brackets.
281
292
 
282
- * Renamed project from ruby_style_checker to Tailor.
283
- * Added check for lines > 80 characters.
293
+ ### 0.0.2 2010-04-23 ###
284
294
 
295
+ * Improvements
296
+ * Renamed project from ruby_style_checker to Tailor.
297
+ * Added check for lines > 80 characters.
285
298
 
286
- ### 0.0.1 2010-04-22
299
+ ### 0.0.1 2010-04-22 ###
287
300
 
288
301
  * Initial release!
289
- * Command-line executable takes a directory and checks all files,
290
- recursively.
302
+ * Command-line executable takes a directory and checks all
303
+ files, recursively.
291
304
  * Checks for:
292
305
  * Indentation
293
306
  * Hard-tabs in indentation