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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 777bc0650701d2eb93cc11a22223182c281f1cca
4
- data.tar.gz: ec7b5d312864bad0a7d704d6d299f43528c0c0d9
3
+ metadata.gz: 4f19c86afe6f0332ab96748eb10a2b93b7333ef4
4
+ data.tar.gz: 99d908577413bcb69f976eb9cc1c63d6a21fc58a
5
5
  SHA512:
6
- metadata.gz: 0ed610ac85d55c42ae2b1e41cd7ce887dacbb1785774bad2ce355f7ce1bed80a79de92cfaa3cb34fd00ff1e60f2a5c299624be28411ed62817d382c13d6ed0c9
7
- data.tar.gz: 2adeacea766bb60432eeea04e7c976c06a16eaae039e4005d0f301bae90122dab4d2b3c552cb81ef52aba33cc896e32b0f90b5add1b5b77a1f2fa6ea9548e08f
6
+ metadata.gz: 4bba14355f26d45ce2be560e06be8c05e0d5f4832508b7c98969a6de7bb01316c2725dd7f4eb060ef721fa98d54b373337884a7698c1d7feadc61aa71bfc7faf
7
+ data.tar.gz: e3959f350d3e5676b89071b80832a4d37f1a08fb32761c809ce3c616306a3737b2ab5a989e8df38d55bbbef9e91d617a48ca7696535ab43841218601c292f240
@@ -1,3 +1,3 @@
1
1
  module Spectacles
2
- VERSION = "0.3.0.pre"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -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.pre
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: 1.3.1
125
+ version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
128
  rubygems_version: 2.0.6