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 +4 -4
- data/lib/tasks/views.rake +3 -3
- data/lib/tidus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 968964496918f2446aa576f8f065da9978b33563
|
4
|
+
data.tar.gz: 366d101617627af6df4973c16cfde503f8ff7eb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
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.
|
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-
|
11
|
+
date: 2015-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|