active_record_doctor 1.4.1 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,13 @@
1
1
  class SpyPrinter
2
2
  attr_reader :unindexed_foreign_keys, :extraneous_indexes,
3
- :missing_foreign_keys, :undefined_table_references
3
+ :missing_foreign_keys, :undefined_table_references, :unindexed_deleted_at
4
4
 
5
5
  def initialize
6
6
  @unindexed_foreign_keys = nil
7
7
  @extraneous_indexes = nil
8
8
  @missing_foreign_keys = nil
9
9
  @undefined_table_references = nil
10
+ @unindexed_deleted_at = nil
10
11
  end
11
12
 
12
13
  def print_unindexed_foreign_keys(argument)
@@ -40,4 +41,12 @@ class SpyPrinter
40
41
  @undefined_table_references = argument
41
42
  end
42
43
  end
44
+
45
+ def print_unindexed_deleted_at(argument)
46
+ if @unindexed_deleted_at
47
+ fail("print_unindexed_deleted_at cannot be called twice")
48
+ else
49
+ @unindexed_deleted_at = argument
50
+ end
51
+ end
43
52
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_doctor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Navis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-08 00:00:00.000000000 Z
11
+ date: 2017-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -85,6 +85,7 @@ files:
85
85
  - lib/active_record_doctor/tasks/extraneous_indexes.rb
86
86
  - lib/active_record_doctor/tasks/missing_foreign_keys.rb
87
87
  - lib/active_record_doctor/tasks/undefined_table_references.rb
88
+ - lib/active_record_doctor/tasks/unindexed_deleted_at.rb
88
89
  - lib/active_record_doctor/tasks/unindexed_foreign_keys.rb
89
90
  - lib/active_record_doctor/version.rb
90
91
  - lib/generators/active_record_doctor/add_indexes/USAGE
@@ -94,6 +95,7 @@ files:
94
95
  - test/active_record_doctor/tasks/extraneous_indexes_test.rb
95
96
  - test/active_record_doctor/tasks/missing_foreign_keys_test.rb
96
97
  - test/active_record_doctor/tasks/undefined_table_references_test.rb
98
+ - test/active_record_doctor/tasks/unindexed_deleted_at_test.rb
97
99
  - test/active_record_doctor/tasks/unindexed_foreign_keys_test.rb
98
100
  - test/dummy/README.rdoc
99
101
  - test/dummy/Rakefile
@@ -173,6 +175,7 @@ summary: A cure for your Active Record ailments.
173
175
  test_files:
174
176
  - test/test_helper.rb
175
177
  - test/active_record_doctor/printers/io_printer_test.rb
178
+ - test/active_record_doctor/tasks/unindexed_deleted_at_test.rb
176
179
  - test/active_record_doctor/tasks/missing_foreign_keys_test.rb
177
180
  - test/active_record_doctor/tasks/extraneous_indexes_test.rb
178
181
  - test/active_record_doctor/tasks/undefined_table_references_test.rb