null_and_void 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -96,7 +96,7 @@ null_object.to_a # => []
96
96
  null_object.to_ary # => []
97
97
  null_object.to_hash # => {}
98
98
  null_object.to_html # => ''
99
- null_object.to_json # => ''
99
+ null_object.to_json # => 'null'
100
100
  null_object.to_xml # => ''
101
101
  null_object.to_model # => User.new
102
102
  null_object.to_s # => ''
@@ -31,7 +31,7 @@ module NullAndVoid
31
31
  end
32
32
 
33
33
  def to_json
34
- ''
34
+ 'null'
35
35
  end
36
36
 
37
37
  def to_xml
@@ -1,3 +1,3 @@
1
1
  module NullAndVoid
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  end
@@ -49,7 +49,7 @@ describe NullAndVoid::Convertible do
49
49
  end
50
50
 
51
51
  it 'is an empty String when the attempt is made to convert it to JSON' do
52
- null_object.to_json.should eql ''
52
+ null_object.to_json.should eql 'null'
53
53
  end
54
54
 
55
55
  it 'is an empty String when the attempt is made to convert it to XML' do
metadata CHANGED
@@ -1,64 +1,64 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: null_and_void
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
5
4
  prerelease:
5
+ version: 1.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - jfelchner
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-07 00:00:00.000000000 Z
12
+ date: 2013-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ prerelease: false
16
+ type: :runtime
15
17
  name: activesupport
16
18
  requirement: !ruby/object:Gem::Requirement
19
+ none: false
17
20
  requirements:
18
21
  - - ~>
19
22
  - !ruby/object:Gem::Version
20
23
  version: '3.1'
21
- none: false
22
- prerelease: false
23
- type: :runtime
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
25
26
  requirements:
26
27
  - - ~>
27
28
  - !ruby/object:Gem::Version
28
29
  version: '3.1'
29
- none: false
30
30
  - !ruby/object:Gem::Dependency
31
+ prerelease: false
32
+ type: :development
31
33
  name: rspec
32
34
  requirement: !ruby/object:Gem::Requirement
35
+ none: false
33
36
  requirements:
34
37
  - - ~>
35
38
  - !ruby/object:Gem::Version
36
39
  version: '2.12'
37
- none: false
38
- prerelease: false
39
- type: :development
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
41
42
  requirements:
42
43
  - - ~>
43
44
  - !ruby/object:Gem::Version
44
45
  version: '2.12'
45
- none: false
46
46
  - !ruby/object:Gem::Dependency
47
+ prerelease: false
48
+ type: :development
47
49
  name: rspectacular
48
50
  requirement: !ruby/object:Gem::Requirement
51
+ none: false
49
52
  requirements:
50
53
  - - ~>
51
54
  - !ruby/object:Gem::Version
52
55
  version: '0.7'
53
- none: false
54
- prerelease: false
55
- type: :development
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
57
58
  requirements:
58
59
  - - ~>
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0.7'
61
- none: false
62
62
  description: Makes generating Null Objects easy.
63
63
  email: accounts+git@thekompanee.com
64
64
  executables: []
@@ -95,17 +95,17 @@ rdoc_options:
95
95
  require_paths:
96
96
  - lib
97
97
  required_ruby_version: !ruby/object:Gem::Requirement
98
+ none: false
98
99
  requirements:
99
100
  - - ! '>='
100
101
  - !ruby/object:Gem::Version
101
102
  version: '0'
102
- none: false
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
+ none: false
104
105
  requirements:
105
106
  - - ! '>='
106
107
  - !ruby/object:Gem::Version
107
108
  version: '0'
108
- none: false
109
109
  requirements: []
110
110
  rubyforge_project: null_and_void
111
111
  rubygems_version: 1.8.25