null_and_void 1.3.2 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/null_and_void/persistable.rb +35 -0
- data/lib/null_and_void/version.rb +1 -1
- data/lib/null_and_void.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7b0e53a35ebfdec3d61dbaa6272b73eaf020981
|
4
|
+
data.tar.gz: ba40c6f0e14fd72a2dc1f64fed04d029cf7e4e7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f05ee8dd22d383b907024e8e42908e9d448e3b5302955d2eafe06a3cd2a3495f562f9109df509103121724b23bfff698aa03785dd356d8ed8bb00efd59c2745c
|
7
|
+
data.tar.gz: 960498bab22807ef02e64dbd2e42d49eff57326181069938ad56614393d858789def64e82f301bfd09d87624d8baa5b74b7dcba3104cc4549f2fb35f560ddc0f
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module NullAndVoid
|
2
|
+
module Persistable
|
3
|
+
def readonly?
|
4
|
+
true
|
5
|
+
end
|
6
|
+
|
7
|
+
def persisted?
|
8
|
+
false
|
9
|
+
end
|
10
|
+
|
11
|
+
def new_record?
|
12
|
+
true
|
13
|
+
end
|
14
|
+
|
15
|
+
def destroyed?
|
16
|
+
true
|
17
|
+
end
|
18
|
+
|
19
|
+
def all
|
20
|
+
[]
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_key
|
24
|
+
[]
|
25
|
+
end
|
26
|
+
|
27
|
+
def to_param
|
28
|
+
''
|
29
|
+
end
|
30
|
+
|
31
|
+
def valid?
|
32
|
+
true
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/null_and_void.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: null_and_void
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfelchner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/null_and_void/model_support.rb
|
57
57
|
- lib/null_and_void/null_object.rb
|
58
58
|
- lib/null_and_void/nullified.rb
|
59
|
+
- lib/null_and_void/persistable.rb
|
59
60
|
- lib/null_and_void/stubbable.rb
|
60
61
|
- lib/null_and_void/version.rb
|
61
62
|
- spec/convertible_spec.rb
|
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
87
|
version: '0'
|
87
88
|
requirements: []
|
88
89
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.4.
|
90
|
+
rubygems_version: 2.4.6
|
90
91
|
signing_key:
|
91
92
|
specification_version: 4
|
92
93
|
summary: Easy Null Objects
|
@@ -100,4 +101,3 @@ test_files:
|
|
100
101
|
- spec/null_object_spec.rb
|
101
102
|
- spec/nullified_spec.rb
|
102
103
|
- spec/stubbable_spec.rb
|
103
|
-
has_rdoc:
|