nil_object 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d6659e3898b4d73656d8ee4ce40ed812ac11fb55
4
+ data.tar.gz: 1c8824184ea4296760c836702aee0bea3afe871c
5
+ SHA512:
6
+ metadata.gz: 9227bf6c323fcf418c7f33cf6d3f6ccde38d26139ff04e0246b26c96ab799632920a45af430feec14f4cae6fce2d7453b276be933b2870e0a4c5dfa7f9edcb0f
7
+ data.tar.gz: caeb34971089e49be8d161ecfe12b152756c50ccc704d7935c3edabc8f3e5387641e1ede44392ade742247db903a1f133223fd1655c58f2bc303aa8b7c7bd2ea
@@ -15,6 +15,10 @@ class NilObject
15
15
  ""
16
16
  end
17
17
 
18
+ def to_str
19
+ ""
20
+ end
21
+
18
22
  def to_i
19
23
  0
20
24
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "nil_object"
7
- gem.version = "0.0.1"
7
+ gem.version = "0.0.2"
8
8
  gem.authors = ["Mark Kremer"]
9
9
  gem.email = ["mark@without-brains.net"]
10
10
  gem.summary = %q{Simple Null Object implementation}
@@ -47,4 +47,8 @@ class NilObjectTest < MiniTest::Unit::TestCase
47
47
  def test_to_s_returns_empty_string
48
48
  assert_equal "", @nil_object.to_s
49
49
  end
50
+
51
+ def test_to_str_returns_empty_string
52
+ assert_equal "", @nil_object.to_str
53
+ end
50
54
  end
metadata CHANGED
@@ -1,38 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nil_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Mark Kremer
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-10 00:00:00.000000000 Z
11
+ date: 2013-05-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
- requirement: &83762700 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.9.2
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *83762700
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.2
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: minitest
27
- requirement: &83762280 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
33
  version: '4.1'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *83762280
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '4.1'
36
41
  description:
37
42
  email:
38
43
  - mark@without-brains.net
@@ -52,27 +57,26 @@ files:
52
57
  - vagrant-provision
53
58
  homepage: https://github.com/mkremer/nil_object
54
59
  licenses: []
60
+ metadata: {}
55
61
  post_install_message:
56
62
  rdoc_options: []
57
63
  require_paths:
58
64
  - lib
59
65
  required_ruby_version: !ruby/object:Gem::Requirement
60
- none: false
61
66
  requirements:
62
- - - ! '>='
67
+ - - '>='
63
68
  - !ruby/object:Gem::Version
64
69
  version: '0'
65
70
  required_rubygems_version: !ruby/object:Gem::Requirement
66
- none: false
67
71
  requirements:
68
- - - ! '>='
72
+ - - '>='
69
73
  - !ruby/object:Gem::Version
70
74
  version: '0'
71
75
  requirements: []
72
76
  rubyforge_project:
73
- rubygems_version: 1.8.11
77
+ rubygems_version: 2.0.0
74
78
  signing_key:
75
- specification_version: 3
79
+ specification_version: 4
76
80
  summary: Simple Null Object implementation
77
81
  test_files:
78
82
  - test/nil_object_test.rb