nilio 0.0.1 → 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.
- data/lib/nilio.rb +3 -0
- data/nilio.gemspec +1 -1
- data/test/nilio_test.rb +1 -1
- metadata +3 -4
data/lib/nilio.rb
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
require 'stringio'
|
2
|
+
require 'singleton'
|
2
3
|
|
3
4
|
# NilIO emulates a null device (like /dev/null).
|
4
5
|
class NilIO < StringIO
|
5
6
|
|
7
|
+
include Singleton
|
8
|
+
|
6
9
|
# Write to the null device. Ignores the
|
7
10
|
# string parameter, just returning its byte length
|
8
11
|
def write(string)
|
data/nilio.gemspec
CHANGED
data/test/nilio_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nilio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-11 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: NilIO emulates a null device
|
15
15
|
email: brown.mhg@gmail.com
|
@@ -45,10 +45,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
45
45
|
version: '0'
|
46
46
|
requirements: []
|
47
47
|
rubyforge_project:
|
48
|
-
rubygems_version: 1.8.
|
48
|
+
rubygems_version: 1.8.24
|
49
49
|
signing_key:
|
50
50
|
specification_version: 3
|
51
51
|
summary: NilIO emulates a null device
|
52
52
|
test_files:
|
53
53
|
- test/nilio_test.rb
|
54
|
-
has_rdoc:
|