spectacles 0.5.0 → 0.5.1
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
- data/specs/support/view_examples.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: 2e52e394df12083b7bf0f9c1a11d7bd0c289cf31
|
4
|
+
data.tar.gz: f9e492ffaf04763f7b0426a5f02e4bb3a411f3af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 639f04580f920782af8dea089d4e2d174c23283c3c808813e0ed0950b1b86ac28483c398e22f07dd1030ac5b0342d4de13502fd0258d8bbd02df94ee0cd149e2
|
7
|
+
data.tar.gz: 54591a3d0620f44d364adcac8d21eac4075ba0382e9780acbaa5db30e2f4e5499b9673fa11420ddb4ff457951119883c071ff075d27e1358db7a4a59a55858b9
|
data/lib/spectacles/version.rb
CHANGED
data/lib/spectacles/view.rb
CHANGED
@@ -2,6 +2,11 @@ module Spectacles
|
|
2
2
|
class View < ActiveRecord::Base
|
3
3
|
self.abstract_class = true
|
4
4
|
|
5
|
+
def self.new(*)
|
6
|
+
warn "DEPRECATION WARNING: #{self} is an abstract class and should not be instantiated. In v1.0, calling `#{self}.new` will raise a NotImplementedError."
|
7
|
+
super # raise NotImplementedError, "#{self} is an abstract class and can not be instantiated."
|
8
|
+
end
|
9
|
+
|
5
10
|
def self.view_exists?
|
6
11
|
self.connection.view_exists?(self.view_name)
|
7
12
|
end
|
@@ -18,6 +23,10 @@ module Spectacles
|
|
18
23
|
comparison_object.attributes == attributes
|
19
24
|
end
|
20
25
|
|
26
|
+
def persisted?
|
27
|
+
false
|
28
|
+
end
|
29
|
+
|
21
30
|
def readonly?
|
22
31
|
true
|
23
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectacles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Hutchison, Brandon Dewitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|