transparent_nil 0.1.5 → 0.1.7
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/History.txt +3 -0
- data/Manifest.txt +1 -0
- data/Rakefile.rb +3 -5
- data/console.rb +2 -4
- data/lib/transparent_nil.rb +0 -12
- data/test/_start_all.rb +8 -8
- data/test/test_nil.rb +2 -2
- data/version.rb +11 -0
- metadata +2 -1
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/Rakefile.rb
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
2
|
|
3
|
-
require 'kyanite/smart_load_path'
|
4
|
-
smart_load_path
|
5
|
-
|
6
3
|
require 'drumherum'
|
7
|
-
|
8
|
-
|
4
|
+
smart_init
|
5
|
+
require 'version'
|
9
6
|
require 'rdoc/task'
|
10
7
|
require 'drumherum/rake'
|
11
8
|
|
9
|
+
Drumherum.github_username = 'bklippstein'
|
12
10
|
require 'transparent_nil'
|
13
11
|
|
14
12
|
|
data/console.rb
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
# File: script/console
|
3
3
|
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
4
|
libs = " -r irb/completion"
|
5
|
-
|
6
|
-
|
7
|
-
puts "Welcome to Transparent Nil gem"
|
8
|
-
|
5
|
+
initfile = File.join(File.dirname(__FILE__), 'init.rb' )
|
6
|
+
libs << " -r #{initfile}"
|
9
7
|
exec "#{irb} #{libs} --simple-prompt --noreadline"
|
data/lib/transparent_nil.rb
CHANGED
@@ -1,19 +1,7 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
2
|
# ü
|
3
|
-
if $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
4
|
-
#puts 'Path schon aktuell'
|
5
|
-
else
|
6
|
-
$:.unshift(File.dirname(__FILE__))
|
7
|
-
end
|
8
3
|
|
9
4
|
puts 'Using TransparentNil'
|
10
|
-
|
11
|
-
module TransparentNil #:nodoc
|
12
|
-
|
13
|
-
VERSION = '0.1.5'
|
14
|
-
|
15
|
-
end
|
16
|
-
|
17
5
|
require 'transparent_nil/nil'
|
18
6
|
|
19
7
|
|
data/test/_start_all.rb
CHANGED
@@ -4,16 +4,16 @@
|
|
4
4
|
# Führt alle Tests aus
|
5
5
|
#
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
if $0 == __FILE__
|
8
|
+
require 'drumherum'
|
9
|
+
smart_init
|
10
|
+
end
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
# Test-Verzeichnis der Applikation
|
14
|
+
test_verzeichnis = File.join(Drumherum::directory_main, 'test')
|
15
|
+
|
16
|
+
Dir["#{test_verzeichnis}/test_*.rb"].sort.each { |t| require t }
|
17
17
|
|
18
18
|
|
19
19
|
|
data/test/test_nil.rb
CHANGED
data/version.rb
ADDED
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.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- Manifest.txt
|
78
78
|
- Rakefile.rb
|
79
79
|
- README.txt
|
80
|
+
- version.rb
|
80
81
|
- lib/transparent_nil.rb
|
81
82
|
- lib/transparent_nil/nil.rb
|
82
83
|
- test/_start_all.rb
|