spectacles 0.3.0.pre → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spectacles/version.rb +1 -1
- data/lib/spectacles/view.rb +9 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f19c86afe6f0332ab96748eb10a2b93b7333ef4
|
4
|
+
data.tar.gz: 99d908577413bcb69f976eb9cc1c63d6a21fc58a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bba14355f26d45ce2be560e06be8c05e0d5f4832508b7c98969a6de7bb01316c2725dd7f4eb060ef721fa98d54b373337884a7698c1d7feadc61aa71bfc7faf
|
7
|
+
data.tar.gz: e3959f350d3e5676b89071b80832a4d37f1a08fb32761c809ce3c616306a3737b2ab5a989e8df38d55bbbef9e91d617a48ca7696535ab43841218601c292f240
|
data/lib/spectacles/version.rb
CHANGED
data/lib/spectacles/view.rb
CHANGED
@@ -2,6 +2,15 @@ module Spectacles
|
|
2
2
|
class View < ActiveRecord::Base
|
3
3
|
self.abstract_class = true
|
4
4
|
|
5
|
+
def self.view_exists?
|
6
|
+
self.connection.view_exists?(self.view_name)
|
7
|
+
end
|
8
|
+
|
9
|
+
class << self
|
10
|
+
alias_method :table_exists?, :view_exists?
|
11
|
+
alias_method :view_name, :table_name
|
12
|
+
end
|
13
|
+
|
5
14
|
def readonly?
|
6
15
|
true
|
7
16
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectacles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.0
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Hutchison, Brandon Dewitt
|
@@ -120,9 +120,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- - '
|
123
|
+
- - '>='
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
125
|
+
version: '0'
|
126
126
|
requirements: []
|
127
127
|
rubyforge_project:
|
128
128
|
rubygems_version: 2.0.6
|