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 ADDED
@@ -0,0 +1,7 @@
1
+ --charset utf-8
2
+ --readme README.rdoc
3
+ --embed-mixins
4
+ -
5
+ README.rdoc
6
+ History.rdoc
7
+ version.rb
@@ -1,3 +1,5 @@
1
+ == 0.1.8 2012-10-16
2
+ * yard documentation
1
3
 
2
4
  == 0.1.7 2012-10-15
3
5
  * smart_init integrated
File without changes
data/Manifest.txt CHANGED
@@ -1,10 +1,11 @@
1
+ .yardopts
1
2
  console.rb
2
- History.txt
3
+ History.rdoc
3
4
  init.rb
4
- License.txt
5
+ License.rdoc
5
6
  Manifest.txt
6
7
  Rakefile.rb
7
- README.txt
8
+ README.rdoc
8
9
  version.rb
9
10
  lib/transparent_nil.rb
10
11
  lib/transparent_nil/nil.rb
@@ -1,4 +1,3 @@
1
-
2
1
  = Transparent Nil
3
2
 
4
3
  http://bklippstein.github.com/transparent_nil/
data/Rakefile.rb CHANGED
@@ -3,14 +3,15 @@
3
3
  require 'drumherum'
4
4
  smart_init
5
5
  require 'version'
6
- require 'rdoc/task'
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
  # ----------------------------------------------------------------------------------------------
@@ -4,31 +4,35 @@
4
4
 
5
5
  module TransparentNil
6
6
 
7
- # Rückgabe: Array mit dem einen Element
7
+ # @group Return something
8
+
9
+ # @return [Array] one element Array
8
10
  def <<(element); [element]; end
9
11
 
10
- # Rückgabe: true
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
- # Rückgabe: 0
22
+ # @return [0]
14
23
  def length; 0; end
15
24
 
16
- # Rückgabe: 0
25
+ # @return [0]
17
26
  def size; 0; end
18
27
 
19
- # Rückgabe: 0
28
+ # @return [0]
20
29
  def count(*a); 0; end
21
30
 
22
- # Rückgabe: leeres Array
31
+ # @return [Array] empty Array
23
32
  def split(*a); []; end
24
33
 
25
- # Rückgabe: false
26
- def =~(other); false; end
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
@@ -1,5 +1,4 @@
1
1
  # ruby encoding: utf-8
2
- #!/usr/bin/env ruby
3
2
  #
4
3
  # Führt alle Tests aus
5
4
  #
data/test/test_nil.rb CHANGED
@@ -4,7 +4,6 @@ if $0 == __FILE__
4
4
  require 'drumherum'
5
5
  smart_init
6
6
  end
7
-
8
7
  require 'drumherum/unit_test'
9
8
  require 'transparent_nil'
10
9
 
data/version.rb CHANGED
@@ -1,11 +1,7 @@
1
1
 
2
2
  module TransparentNil
3
3
 
4
- VERSION = '0.1.7' # TransparentNil-Version
4
+ VERSION = '0.1.8'
5
5
 
6
-
7
- # puts "VERSION=#{VERSION}"
8
-
9
-
10
6
  end
11
7
 
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.7
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-15 00:00:00.000000000 Z
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.txt
69
- - License.txt
68
+ - History.rdoc
69
+ - License.rdoc
70
70
  - Manifest.txt
71
- - README.txt
71
+ - README.rdoc
72
72
  files:
73
+ - .yardopts
73
74
  - console.rb
74
- - History.txt
75
+ - History.rdoc
75
76
  - init.rb
76
- - License.txt
77
+ - License.rdoc
77
78
  - Manifest.txt
78
79
  - Rakefile.rb
79
- - README.txt
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.txt
92
+ - README.rdoc
92
93
  require_paths:
93
94
  - lib
94
95
  required_ruby_version: !ruby/object:Gem::Requirement