nillify 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7d24f2676e8064b57bfa02bdeca6ec6ec9127e40
4
+ data.tar.gz: a34089fad537915133058e9e6531e6137810a064
5
+ SHA512:
6
+ metadata.gz: 48288ff747eb6a535ad72d0366d5e3159646a60e00660d1bdaf7f25737cfa6cb7d1f2be18dfd7f4bad5eba7b0e2106aec2d1dafaf3599696d4d1575488cc1a65
7
+ data.tar.gz: 5611bad6125dc403a400a8d8dbf059a60d3ffba66ad7fd79765ae750e908c6ce126711c2b796bb35759618995a424faec57ae7878401e8528ec307cffb08baaf
Binary file
@@ -0,0 +1,3 @@
1
+ o�r��2��c=*�}`�o5r V`vR�(���#�#l��G����c%Ϋu|��s�(O���?f�QN�4�T3pl��q�B� :̭
2
+ 5���W�:�kq�� E�`#(�>2tzA%<L�ѫ��ʠ�3���@���Z~h�k���`�B���9�+a��H��� �[� �C����}�|W����
3
+ Ԑ�49��_����0�N�WƿfGG
@@ -0,0 +1,5 @@
1
+ class Object
2
+ def to_nil
3
+ return nil
4
+ end
5
+ end
@@ -0,0 +1,17 @@
1
+ require 'test/unit'
2
+ require 'to_nil'
3
+
4
+ class ToNilTest < Test::Unit::TestCase
5
+
6
+ def test_string
7
+ assert("string".to_nil == nil)
8
+ end
9
+
10
+ def test_number
11
+ assert(1.to_nil == nil)
12
+ end
13
+
14
+ def test_nil
15
+ assert(nil.to_nil == nil)
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nillify
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Grant Olson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDdDCCAlygAwIB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ygMZX3bYeYB6vvdorgKBs3
29
+ mZhAlt3IH4WTlQQCj+/Vy1d827PI0wTAvhKqXVqgZfEsW2xhErG77e75ocgxJRIi
30
+ Nvoxism/mFjBkrIjr+FRLITQQwU1CSdjYxGw+9ttNaem1EE+kwjHtMB9dnsPQO8j
31
+ uMqFTMBXuBhezXvh6rae8cKo9o4F8zLz
32
+ -----END CERTIFICATE-----
33
+ date: 2013-03-19 00:00:00.000000000 Z
34
+ dependencies: []
35
+ description: Adds .to_nil methods to Object. We have to_s and to_i, why not to_nil?
36
+ email: kgo@grant-olson.net
37
+ executables: []
38
+ extensions: []
39
+ extra_rdoc_files: []
40
+ files:
41
+ - lib/to_nil.rb
42
+ - test/test_to_nil.rb
43
+ homepage: http://github.com/grant-olson/nillify
44
+ licenses: []
45
+ metadata: {}
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.0.3
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: we have to_s and to_i, why not to_nil?
66
+ test_files:
67
+ - test/test_to_nil.rb
Binary file