flatfoot 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/flatfoot/tasks.rb +30 -0
- data/lib/flatfoot/version.rb +1 -1
- metadata +5 -4
@@ -0,0 +1,30 @@
|
|
1
|
+
namespace :flatfoot do
|
2
|
+
|
3
|
+
desc "report used views"
|
4
|
+
task :used => :environment do
|
5
|
+
if FLATFOOT
|
6
|
+
Flatfoot::Tracker.used_views
|
7
|
+
else
|
8
|
+
puts "please define a constant FLATFOOT with your Flatfoot::Tracker instance"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "report unused views"
|
13
|
+
task :unused => :environment do
|
14
|
+
if FLATFOOT
|
15
|
+
Flatfoot::Tracker.unused_views
|
16
|
+
else
|
17
|
+
puts "please define a constant FLATFOOT with your Flatfoot::Tracker instance"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
desc "reset tracked views"
|
22
|
+
task :reset => :environment do
|
23
|
+
if FLATFOOT
|
24
|
+
Flatfoot::Tracker.reset_recordings
|
25
|
+
else
|
26
|
+
puts "please define a constant FLATFOOT with your Flatfoot::Tracker instance"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
data/lib/flatfoot/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flatfoot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-04-
|
12
|
+
date: 2014-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- Rakefile
|
58
58
|
- flatfoot.gemspec
|
59
59
|
- lib/flatfoot.rb
|
60
|
+
- lib/flatfoot/tasks.rb
|
60
61
|
- lib/flatfoot/version.rb
|
61
62
|
homepage: ''
|
62
63
|
licenses:
|
@@ -73,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
74
|
version: '0'
|
74
75
|
segments:
|
75
76
|
- 0
|
76
|
-
hash: -
|
77
|
+
hash: -1406084762568141735
|
77
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
79
|
none: false
|
79
80
|
requirements:
|
@@ -82,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
83
|
version: '0'
|
83
84
|
segments:
|
84
85
|
- 0
|
85
|
-
hash: -
|
86
|
+
hash: -1406084762568141735
|
86
87
|
requirements: []
|
87
88
|
rubyforge_project:
|
88
89
|
rubygems_version: 1.8.23
|