nil_object 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/nil_object.gemspec +5 -5
- data/test/nil_object_test.rb +4 -5
- metadata +16 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c7aea78d98a2c88597ec94a4e0c2caa1dd4e2aaee33fbdbc259920a8edec6643
|
4
|
+
data.tar.gz: c534e9b244abc7c1b0827cb0f61924ead81bd52fa99db76aa814f3a00f109cdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8776d2a53fd4f83d5c86a58bc7f4cd913ddf1b7f89bdb9fce42507be4664cfffc936a7bb15b75c3e4eca87f03fe982f0de19dd7c8f9b97b9daf68946d5d8d27b
|
7
|
+
data.tar.gz: 0e43c6c5bad21e38c205298e06e162dc29751104118c993a839bc215e3a46780ae099087902e3392d655ec3dd67f35cbe09a4990204abbf282cfb0811234bf3e
|
data/nil_object.gemspec
CHANGED
@@ -4,9 +4,9 @@ $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.
|
8
|
-
gem.authors = ["Mark
|
9
|
-
gem.email = ["mark@
|
7
|
+
gem.version = "0.0.3"
|
8
|
+
gem.authors = ["Mark Cornelissen"]
|
9
|
+
gem.email = ["mark@5ec.nl"]
|
10
10
|
gem.summary = %q{Simple Null Object implementation}
|
11
11
|
gem.homepage = "https://github.com/mkremer/nil_object"
|
12
12
|
|
@@ -15,6 +15,6 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
16
|
gem.require_paths = ["lib"]
|
17
17
|
|
18
|
-
gem.add_development_dependency "rake", "~> 0
|
19
|
-
gem.add_development_dependency "minitest", "~>
|
18
|
+
gem.add_development_dependency "rake", "~> 13.0"
|
19
|
+
gem.add_development_dependency "minitest", "~> 5.14"
|
20
20
|
end
|
data/test/nil_object_test.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require "nil_object"
|
1
|
+
require 'minitest/autorun'
|
2
|
+
require 'nil_object'
|
4
3
|
|
5
4
|
class NilObjectTest < MiniTest::Unit::TestCase
|
6
5
|
def setup
|
@@ -45,10 +44,10 @@ class NilObjectTest < MiniTest::Unit::TestCase
|
|
45
44
|
end
|
46
45
|
|
47
46
|
def test_to_s_returns_empty_string
|
48
|
-
assert_equal
|
47
|
+
assert_equal '', @nil_object.to_s
|
49
48
|
end
|
50
49
|
|
51
50
|
def test_to_str_returns_empty_string
|
52
|
-
assert_equal
|
51
|
+
assert_equal '', @nil_object.to_str
|
53
52
|
end
|
54
53
|
end
|
metadata
CHANGED
@@ -1,51 +1,51 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nil_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Mark
|
7
|
+
- Mark Cornelissen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
19
|
+
version: '13.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0
|
26
|
+
version: '13.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '5.14'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '5.14'
|
41
41
|
description:
|
42
42
|
email:
|
43
|
-
- mark@
|
43
|
+
- mark@5ec.nl
|
44
44
|
executables: []
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
49
49
|
- Gemfile
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
@@ -64,17 +64,16 @@ require_paths:
|
|
64
64
|
- lib
|
65
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
|
77
|
-
rubygems_version: 2.0.0
|
76
|
+
rubygems_version: 3.0.3
|
78
77
|
signing_key:
|
79
78
|
specification_version: 4
|
80
79
|
summary: Simple Null Object implementation
|