transparent_nil 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +7 -0
- data/{History.txt → History.rdoc} +2 -0
- data/{License.txt → License.rdoc} +0 -0
- data/Manifest.txt +4 -3
- data/{README.txt → README.rdoc} +0 -1
- data/Rakefile.rb +3 -34
- data/lib/transparent_nil/nil.rb +17 -13
- data/test/_start_all.rb +0 -1
- data/test/test_nil.rb +0 -1
- data/version.rb +1 -5
- metadata +10 -9
data/.yardopts
ADDED
File without changes
|
data/Manifest.txt
CHANGED
data/{README.txt → README.rdoc}
RENAMED
data/Rakefile.rb
CHANGED
@@ -3,14 +3,15 @@
|
|
3
3
|
require 'drumherum'
|
4
4
|
smart_init
|
5
5
|
require 'version'
|
6
|
-
require '
|
6
|
+
require 'yard'
|
7
7
|
require 'drumherum/rake'
|
8
|
-
|
8
|
+
YARD::Rake::YardocTask.new
|
9
9
|
Drumherum.github_username = 'bklippstein'
|
10
10
|
require 'transparent_nil'
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
+
|
14
15
|
# ----------------------------------------------------------------------------------------------
|
15
16
|
# Hoe
|
16
17
|
#
|
@@ -34,38 +35,6 @@ end
|
|
34
35
|
# pp $hoe
|
35
36
|
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
# ----------------------------------------------------------------------------------------------
|
41
|
-
# Documentation
|
42
|
-
#
|
43
|
-
# http://rubeh.tumblr.com/post/27622544/rake-rdoctask-with-all-of-the-options-stubbed-out
|
44
|
-
# http://www.java2s.com/Code/Ruby/Language-Basics/RDocoptionsareusedlikethisrdocoptionsnames.htm
|
45
|
-
#
|
46
|
-
|
47
|
-
remove_task 'docs'
|
48
|
-
|
49
|
-
desc "generate RDoc documentation"
|
50
|
-
Rake::RDocTask.new(:docs) do |rd|
|
51
|
-
|
52
|
-
rd.title = "#{Drumherum.project_class.to_s} #{Drumherum.project_version}"
|
53
|
-
|
54
|
-
rd.rdoc_dir = 'doc'
|
55
|
-
rd.rdoc_files.include('lib/**/*.rb')
|
56
|
-
# rd.rdoc_files.include('test/**/test_*.rb')
|
57
|
-
rd.rdoc_files.include('README.txt', 'License.txt', 'History.txt' )
|
58
|
-
|
59
|
-
rd.options += [
|
60
|
-
'--tab-width', '4',
|
61
|
-
'--main', 'README.txt',
|
62
|
-
'--show-hash', # A name of the form #name in a comment is a possible hyperlink to an instance method name. When displayed, the # is removed unless this option is specified.
|
63
|
-
'--line-numbers',
|
64
|
-
'--all',
|
65
|
-
'--charset=utf8'
|
66
|
-
]
|
67
|
-
|
68
|
-
end
|
69
38
|
|
70
39
|
|
71
40
|
# ----------------------------------------------------------------------------------------------
|
data/lib/transparent_nil/nil.rb
CHANGED
@@ -4,31 +4,35 @@
|
|
4
4
|
|
5
5
|
module TransparentNil
|
6
6
|
|
7
|
-
#
|
7
|
+
# @group Return something
|
8
|
+
|
9
|
+
# @return [Array] one element Array
|
8
10
|
def <<(element); [element]; end
|
9
11
|
|
10
|
-
#
|
12
|
+
# @return [true]
|
11
13
|
def empty?; true; end
|
14
|
+
|
15
|
+
# @return [false]
|
16
|
+
def =~(other); false; end
|
17
|
+
|
18
|
+
# @return [false]
|
19
|
+
# redundante Definition!
|
20
|
+
def include?(*a); false; end
|
12
21
|
|
13
|
-
#
|
22
|
+
# @return [0]
|
14
23
|
def length; 0; end
|
15
24
|
|
16
|
-
#
|
25
|
+
# @return [0]
|
17
26
|
def size; 0; end
|
18
27
|
|
19
|
-
#
|
28
|
+
# @return [0]
|
20
29
|
def count(*a); 0; end
|
21
30
|
|
22
|
-
#
|
31
|
+
# @return [Array] empty Array
|
23
32
|
def split(*a); []; end
|
24
33
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
# Rückgabe: false
|
29
|
-
# redundante Definition!
|
30
|
-
def include?(*a); false; end
|
31
|
-
|
34
|
+
|
35
|
+
# @group Return nil
|
32
36
|
|
33
37
|
def -(other); nil; end
|
34
38
|
def +(other); nil; end
|
data/test/_start_all.rb
CHANGED
data/test/test_nil.rb
CHANGED
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transparent_nil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
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-10-
|
12
|
+
date: 2012-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
@@ -65,18 +65,19 @@ email:
|
|
65
65
|
executables: []
|
66
66
|
extensions: []
|
67
67
|
extra_rdoc_files:
|
68
|
-
- History.
|
69
|
-
- License.
|
68
|
+
- History.rdoc
|
69
|
+
- License.rdoc
|
70
70
|
- Manifest.txt
|
71
|
-
- README.
|
71
|
+
- README.rdoc
|
72
72
|
files:
|
73
|
+
- .yardopts
|
73
74
|
- console.rb
|
74
|
-
- History.
|
75
|
+
- History.rdoc
|
75
76
|
- init.rb
|
76
|
-
- License.
|
77
|
+
- License.rdoc
|
77
78
|
- Manifest.txt
|
78
79
|
- Rakefile.rb
|
79
|
-
- README.
|
80
|
+
- README.rdoc
|
80
81
|
- version.rb
|
81
82
|
- lib/transparent_nil.rb
|
82
83
|
- lib/transparent_nil/nil.rb
|
@@ -88,7 +89,7 @@ licenses: []
|
|
88
89
|
post_install_message:
|
89
90
|
rdoc_options:
|
90
91
|
- --main
|
91
|
-
- README.
|
92
|
+
- README.rdoc
|
92
93
|
require_paths:
|
93
94
|
- lib
|
94
95
|
required_ruby_version: !ruby/object:Gem::Requirement
|