tidus 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c26f8a839787f3c0712f126588641b88aa80afc2
4
- data.tar.gz: dec777a33cc61c0dd8775e5edcfd77fdefb6c4a5
3
+ metadata.gz: 968964496918f2446aa576f8f065da9978b33563
4
+ data.tar.gz: 366d101617627af6df4973c16cfde503f8ff7eb9
5
5
  SHA512:
6
- metadata.gz: 55388c934e09337d12323f931bf225e252eaf0a2cff6b91dd0fed2f801d509620a23663c63923af00e025417df154fb87c876ecfd3c38ab70056645140340c05
7
- data.tar.gz: 5fb5942290b79d528d27b5f3d0839c96cf1ac454d86c2c33bf029bdc604b6d8e284dff6e48293f67f820997684ad14355a1a09cd7a28de387d48244fe78e07de
6
+ metadata.gz: ae1faf5acd0edf34e8011bfef651506f094323451e7e24caee2610cb0129a08fc841cf65523e61930b1921a2f728ccc286e12c8bcf4bc7a16d4c991f0dd66ee9
7
+ data.tar.gz: dba341e8b8cab1cffa27bf7669e01753ebbd3b2052775a233c8aee06e3bff28fd3bbbe50448fc238f3d91c34150feee858c98f026a2a5d2b22fb28f2426794dd
data/lib/tasks/views.rake CHANGED
@@ -2,7 +2,7 @@ namespace :db do
2
2
  desc "Clears all the views which are currently existing"
3
3
  task :clear_views do
4
4
  Rails.application.eager_load! if defined?(Rails)
5
- ActiveRecord::Base.descendants.each do |c|
5
+ ActiveRecord::Base.subclasses.each do |c|
6
6
  next if c.table_name == "schema_migrations"
7
7
  puts "Clearing view '#{c.view_name}' for table '#{c.table_name}'"
8
8
 
@@ -13,7 +13,7 @@ namespace :db do
13
13
  desc "Generates all the views for the models"
14
14
  task :generate_views do
15
15
  Rails.application.eager_load! if defined?(Rails)
16
- ActiveRecord::Base.descendants.each do |c|
16
+ ActiveRecord::Base.subclasses.each do |c|
17
17
  next if c.table_name == "schema_migrations" || c.skip_anonymization?
18
18
 
19
19
  if ActiveRecord::Base.connection.table_exists? c.table_name
@@ -34,4 +34,4 @@ end
34
34
 
35
35
  Rake::Task["db:rollback"].enhance do
36
36
  Rake::Task["db:generate_views"].invoke
37
- end
37
+ end
data/lib/tidus/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tidus
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tidus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schoknecht
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake