loco 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module Loco
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -2,6 +2,7 @@ namespace :loco do
2
2
  @exclude = [
3
3
  /^db\/schema.rb/,
4
4
  /^db\/backups/,
5
+ /^db\/migrate/,
5
6
  /^vendor/,
6
7
  /^public\/system/,
7
8
  /^public\/images/,
@@ -95,7 +96,7 @@ namespace :loco do
95
96
 
96
97
  total = @stats.size
97
98
  @stats = @stats.sort { |a, b| b.lines <=> a.lines }
98
- @stats = @stats[0..40] if @stats.size > 40
99
+ @stats = @stats[0..50] if @stats.size > 50
99
100
 
100
101
  puts "\n### longest files ###"
101
102
  @stats.each { |s| puts s }
@@ -115,12 +116,18 @@ namespace :loco do
115
116
  desc "show loc for all .haml files"
116
117
  task(:haml) { analyse_loc /.*\.haml$/ }
117
118
 
119
+ desc "show loc for all app/views files"
120
+ task(:views) { analyse_loc /^app\/views\// }
121
+
118
122
  desc "show loc for all app/** files"
119
123
  task(:app) { analyse_loc /^app\// }
120
124
 
121
125
  desc "show loc for all app/models/** files"
122
126
  task(:models) { analyse_loc /^app\/models\// }
123
127
 
128
+ desc "show loc for all db/migrate/** files"
129
+ task(:migrations) { analyse_loc /^db\/migrate\// }
130
+
124
131
  desc "show loc for all spec/** files"
125
132
  task(:spec) { analyse_loc /^spec\// }
126
133
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: