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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fe90f84304d2f6bb84dd4009eafff2fe74232fee
4
- data.tar.gz: 597a19b10d18b280608aa2b69405ae76b8c3731a
2
+ SHA256:
3
+ metadata.gz: a8b0e64e70ee9aaef4568ff7f90ad3c5f8065cf54a997c627c2895a46c617480
4
+ data.tar.gz: 334f400ce139aff901808f73af01a75d7a61956d6eb4fbf31b36789be2a5e768
5
5
  SHA512:
6
- metadata.gz: 6bef78ade09da10d0189d9c7088c0abff026d4e79d9fc87ce5fee8064bde83007a4426ce8737bb22e2971c4eec9c2406368ee5a60f925377f6cb690996b89dd1
7
- data.tar.gz: f74a08660d77d4b3100a87788c0d680cdf533761418fa98b8c97dc1485852a639fade8f85fe7718f45448cff51da93fa684b81ca69e6c57b400513f670667f8f
6
+ metadata.gz: e29ec659eff0cfda58f0797f30b10df8d530965ff8ed36efd4b2109a51cf093e7eff47187d633ee3a4fc8cd6d57f9e0b357ee6c60caab94132e07f0d0e0e08fa
7
+ data.tar.gz: ae3c3f8a62c06d1a23a71e0ac514ef5b0b88bcc9d08067e4c9a244131e28d7a6dc22e3ea34fab5579cbd3a37fbefc2e066cd4d47e92cf9deb474334229095484
@@ -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(ActiveRecord::Tasks::DatabaseTasks.db_dir, 'views.rb'),
13
- File.join(ActiveRecord::Tasks::DatabaseTasks.db_dir, 'views', '*.rb'),
17
+ File.join(db_dir, 'views.rb'),
18
+ File.join(db_dir, 'views', '*.rb'),
14
19
  ]
15
20
 
16
21
  #
@@ -1,4 +1,4 @@
1
1
  module Viewmatic
2
2
  # Library version
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.3.0'.freeze
4
4
  end
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.2.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: 2017-10-10 00:00:00.000000000 Z
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: '5.2'
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: '5.2'
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.5.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