null_and_void 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'singleton'
|
2
2
|
require 'null_and_void/stubbable'
|
3
3
|
require 'null_and_void/convertible'
|
4
|
-
require 'null_and_void/
|
4
|
+
require 'null_and_void/introspectable'
|
5
5
|
|
6
6
|
module NullAndVoid
|
7
7
|
module Nullified
|
@@ -10,6 +10,7 @@ module NullAndVoid
|
|
10
10
|
base.send(:include, Stubbable)
|
11
11
|
base.send(:include, Convertible)
|
12
12
|
base.send(:include, Falsifiable)
|
13
|
+
base.send(:include, Introspectable)
|
13
14
|
end
|
14
15
|
end
|
15
16
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'rspectacular'
|
2
|
+
require 'null_and_void/introspectable'
|
3
|
+
|
4
|
+
class MyNullOjbect
|
5
|
+
include NullAndVoid::Introspectable
|
6
|
+
end
|
7
|
+
|
8
|
+
describe NullAndVoid::Introspectable do
|
9
|
+
let(:null_object) { MyNullOjbect.new }
|
10
|
+
|
11
|
+
it 'knows it is a null object' do
|
12
|
+
null_object.should be_null_object
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -68,6 +68,7 @@ extra_rdoc_files:
|
|
68
68
|
files:
|
69
69
|
- lib/null_and_void/convertible.rb
|
70
70
|
- lib/null_and_void/falsifiable.rb
|
71
|
+
- lib/null_and_void/introspectable.rb
|
71
72
|
- lib/null_and_void/maybe.rb
|
72
73
|
- lib/null_and_void/model_support.rb
|
73
74
|
- lib/null_and_void/null_object.rb
|
@@ -79,6 +80,7 @@ files:
|
|
79
80
|
- README.md
|
80
81
|
- spec/convertible_spec.rb
|
81
82
|
- spec/falsifiable_spec.rb
|
83
|
+
- spec/introspectable_spec.rb
|
82
84
|
- spec/maybe_spec.rb
|
83
85
|
- spec/model_support_spec.rb
|
84
86
|
- spec/null_and_void_spec.rb
|
@@ -113,6 +115,7 @@ summary: Easy Null Objects
|
|
113
115
|
test_files:
|
114
116
|
- spec/convertible_spec.rb
|
115
117
|
- spec/falsifiable_spec.rb
|
118
|
+
- spec/introspectable_spec.rb
|
116
119
|
- spec/maybe_spec.rb
|
117
120
|
- spec/model_support_spec.rb
|
118
121
|
- spec/null_and_void_spec.rb
|