activerecord-lazy-attributes 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/activerecord-lazy-attributes.gemspec +2 -2
- data/lib/lazy_attributes.rb +1 -0
- data/spec/lazy_attributes_spec.rb +8 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{activerecord-lazy-attributes}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Moritz Heidkamp"]
|
12
|
-
s.date = %q{2010-10-
|
12
|
+
s.date = %q{2010-10-15}
|
13
13
|
s.description = %q{A useful ActiveRecord extension to handle columns containing large amounts of data}
|
14
14
|
s.email = %q{moritz@twoticketsplease.de}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/lazy_attributes.rb
CHANGED
@@ -28,5 +28,13 @@ describe DerGuteMoritz::ActiveRecord::LazyAttributes do
|
|
28
28
|
i.data?.should be_true
|
29
29
|
i.should_not have_attribute('data')
|
30
30
|
end
|
31
|
+
|
32
|
+
it 'should not fail for non-existing tables' do
|
33
|
+
lambda do
|
34
|
+
class Foo < ActiveRecord::Base
|
35
|
+
attr_lazy :bar
|
36
|
+
end
|
37
|
+
end.should_not raise_error
|
38
|
+
end
|
31
39
|
|
32
40
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-lazy-attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Moritz Heidkamp
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-15 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|