findex 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.markdown +2 -4
  2. data/VERSION +1 -1
  3. data/lib/findex/tasks.rb +3 -0
  4. metadata +2 -2
data/README.markdown CHANGED
@@ -18,11 +18,9 @@ You may want to configure it as a gem in environment.rb instead, since you're go
18
18
 
19
19
  rake gems:install
20
20
 
21
- In either case. open your Rails app's Rakefile and add the following line:
21
+ Now add an initializer hook. I typically use RAILS_ROOT/config/initializers/jsroutes.rb:
22
22
 
23
- require 'findex/tasks'
24
-
25
- And it's installed. Bam.
23
+
26
24
 
27
25
  ## Find Missing Indexes ##
28
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
data/lib/findex/tasks.rb CHANGED
@@ -13,6 +13,9 @@ namespace :db do
13
13
  @generate_migration = ENV['migration'] == 'true'
14
14
  @perform_index = ENV['perform'] == 'true'
15
15
  @tables = ENV['tables'] ? ENV['tables'].split(',').map(&:strip) : nil
16
+ Dir[File.join(Rails.root, 'app', 'models', '*.rb')].each do |file|
17
+ load(file)
18
+ end
16
19
  end
17
20
 
18
21
  namespace :indexes do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: findex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flip Sasser
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-12 00:00:00 -05:00
12
+ date: 2010-02-26 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15