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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b1e616f1451a4489e3f08ef01fee4a37d9738e7
4
- data.tar.gz: 3df47fbc61ac078b01d9b67bd7b81fbd1136afcc
3
+ metadata.gz: d7b0e53a35ebfdec3d61dbaa6272b73eaf020981
4
+ data.tar.gz: ba40c6f0e14fd72a2dc1f64fed04d029cf7e4e7f
5
5
  SHA512:
6
- metadata.gz: ed9351062e19b2256e2a3543b711c39bf5695ab8b6a54f787ef2c502eddac0fd8c22951c63a274f4369deb2ea8e6bec3d8cf9cb25e1a48904ab7cc6b467dd558
7
- data.tar.gz: 290071b823f398ead398b9442b498ea857c812caa61541030931a7f50f8e5eb4cd6c0a86caa81f6370d5e577fadeb67dd0c7b65f1b453a295bc8e8a31c4fc89e
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
@@ -1,3 +1,3 @@
1
1
  module NullAndVoid
2
- VERSION = '1.3.2'
2
+ VERSION = '1.4.0'
3
3
  end
data/lib/null_and_void.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'null_and_void/version'
2
2
  require 'null_and_void/null_object'
3
+ require 'null_and_void/persistable'
3
4
  require 'null_and_void/maybe'
4
5
 
5
6
  module NullAndVoid
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.3.2
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-06 00:00:00.000000000 Z
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.5
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: