flatfoot 0.0.1 → 0.0.2

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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Flatfoot
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-08 00:00:00.000000000 Z
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: -649716077801071903
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: -649716077801071903
86
+ hash: -1406084762568141735
86
87
  requirements: []
87
88
  rubyforge_project:
88
89
  rubygems_version: 1.8.23