activerecord-viewmatic 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/viewmatic/schema.rb +7 -2
- data/lib/viewmatic/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a8b0e64e70ee9aaef4568ff7f90ad3c5f8065cf54a997c627c2895a46c617480
|
4
|
+
data.tar.gz: 334f400ce139aff901808f73af01a75d7a61956d6eb4fbf31b36789be2a5e768
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e29ec659eff0cfda58f0797f30b10df8d530965ff8ed36efd4b2109a51cf093e7eff47187d633ee3a4fc8cd6d57f9e0b357ee6c60caab94132e07f0d0e0e08fa
|
7
|
+
data.tar.gz: ae3c3f8a62c06d1a23a71e0ac514ef5b0b88bcc9d08067e4c9a244131e28d7a6dc22e3ea34fab5579cbd3a37fbefc2e066cd4d47e92cf9deb474334229095484
|
data/lib/viewmatic/schema.rb
CHANGED
@@ -8,9 +8,14 @@ module Viewmatic
|
|
8
8
|
attr_reader :paths
|
9
9
|
end
|
10
10
|
|
11
|
+
db_dir = begin
|
12
|
+
ActiveRecord::Tasks::DatabaseTasks.db_dir
|
13
|
+
rescue NameError
|
14
|
+
"./db"
|
15
|
+
end
|
11
16
|
@paths = [
|
12
|
-
File.join(
|
13
|
-
File.join(
|
17
|
+
File.join(db_dir, 'views.rb'),
|
18
|
+
File.join(db_dir, 'views', '*.rb'),
|
14
19
|
]
|
15
20
|
|
16
21
|
#
|
data/lib/viewmatic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-viewmatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Hollinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '4.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '6.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '4.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '6.0'
|
33
33
|
description: Helpers for using live and materialized views in ActiveRecord
|
34
34
|
email: jordan.hollinger@gmail.com
|
35
35
|
executables: []
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
68
|
rubyforge_project:
|
69
|
-
rubygems_version: 2.
|
69
|
+
rubygems_version: 2.7.6.2
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: An easy way to use database views in ActiveRecord
|