kyanite 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/kyanite.rb +1 -2
- data/lib/kyanite/general/kernel.rb +8 -2
- data/lib/kyanite/string/chars.rb +5 -1
- data/lib/kyanite/string/mgsub.rb +1 -2
- data/lib/kyanite/tree.rb +4 -1
- data/test/_start_all.rb +4 -2
- data/test/array/test_array.rb +7 -1
- data/test/array/test_matrix2.rb +7 -1
- data/test/enumerable/test_enumerable_enumerables.rb +7 -1
- data/test/enumerable/test_enumerable_numerics.rb +7 -1
- data/test/enumerable/test_enumerable_strings.rb +7 -1
- data/test/enumerable/test_structure.rb +7 -1
- data/test/general/test_classutils.rb +7 -1
- data/test/general/test_nil.rb +7 -1
- data/test/general/test_object.rb +6 -1
- data/test/general/test_true_false.rb +7 -1
- data/test/numeric/test_numeric_integer.rb +6 -1
- data/test/string/test_cast.rb +6 -1
- data/test/string/test_chars.rb +6 -1
- data/test/string/test_diff.rb +6 -1
- data/test/string/test_list.rb +5 -1
- data/test/string/test_mgsub.rb +6 -1
- data/test/string/test_nested.rb +6 -1
- data/test/string/test_split.rb +6 -1
- data/test/test_dictionary.rb +6 -2
- data/test/test_hash.rb +7 -3
- data/test/test_optimizer.rb +6 -2
- data/test/test_range.rb +5 -2
- data/test/test_set.rb +5 -2
- data/test/test_tree.rb +8 -4
- metadata +1 -1
data/History.txt
CHANGED
data/lib/kyanite.rb
CHANGED
@@ -22,7 +22,6 @@ end
|
|
22
22
|
# == Features
|
23
23
|
# Kyanite is a general toolbox like Facets or ActiveSupport.
|
24
24
|
# * Transparent nil Handling, see NilClass
|
25
|
-
# * Beautiful Rake, see Div
|
26
25
|
# * Comfortable UnitTests, see Div
|
27
26
|
#
|
28
27
|
#
|
@@ -57,7 +56,7 @@ end
|
|
57
56
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
58
57
|
#
|
59
58
|
module Kyanite
|
60
|
-
VERSION = '0.5.
|
59
|
+
VERSION = '0.5.3'
|
61
60
|
end
|
62
61
|
|
63
62
|
|
@@ -61,8 +61,14 @@ module KKernel
|
|
61
61
|
end
|
62
62
|
|
63
63
|
|
64
|
-
# Vereinfacht die require-Statements in den Tests.
|
65
|
-
#
|
64
|
+
# Vereinfacht die require-Statements in den Tests bei der Entwicklung von Libraries.
|
65
|
+
# Beim lokalen Aufruf eines einzelnen Tests wird die lokale Version der Library verwendet, nicht die installierte gem.
|
66
|
+
# Verwendung:
|
67
|
+
# if $0 == __FILE__
|
68
|
+
# require 'kyanite/smart_load_path'
|
69
|
+
# smart_load_path
|
70
|
+
# end
|
71
|
+
# require 'mygemproject'
|
66
72
|
#
|
67
73
|
def smart_load_path(__file__ = nil)
|
68
74
|
__file__ = caller[0] unless __file__
|
data/lib/kyanite/string/chars.rb
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
-
|
2
|
+
if $0 == __FILE__
|
3
|
+
require File.join(File.dirname(__FILE__), '..', '..', '..', 'smart_load_path.rb' )
|
4
|
+
smart_load_path
|
5
|
+
end
|
6
|
+
|
3
7
|
require 'kyanite/string/chars_const'
|
4
8
|
|
5
9
|
|
data/lib/kyanite/string/mgsub.rb
CHANGED
data/lib/kyanite/tree.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
-
|
2
|
+
if $0 == __FILE__
|
3
|
+
require File.join(File.dirname(__FILE__), '..', '..', '..', 'smart_load_path.rb' )
|
4
|
+
smart_load_path
|
5
|
+
end
|
3
6
|
|
4
7
|
require 'rubytree'
|
5
8
|
require 'kyanite/nil'
|
data/test/_start_all.rb
CHANGED
@@ -4,8 +4,10 @@
|
|
4
4
|
# Führt alle Tests aus
|
5
5
|
#
|
6
6
|
|
7
|
-
|
8
|
-
require File.join(File.dirname(__FILE__), '..', 'smart_load_path.rb' )
|
7
|
+
if $0 == __FILE__
|
8
|
+
require File.join(File.dirname(__FILE__), '..', 'smart_load_path.rb' )
|
9
|
+
smart_load_path
|
10
|
+
end
|
9
11
|
|
10
12
|
|
11
13
|
# Test-Verzeichnis der Applikation
|
data/test/array/test_array.rb
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
2
8
|
require 'kyanite/unit_test'
|
3
9
|
require 'kyanite/array/array'
|
4
10
|
require 'kyanite/numeric/numeric'
|
data/test/array/test_matrix2.rb
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
2
8
|
require 'kyanite/unit_test'
|
3
9
|
require 'kyanite/matrix2'
|
4
10
|
require 'kyanite/general/nil'
|
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
2
8
|
require 'kyanite/unit_test'
|
3
9
|
require 'kyanite/enumerable/enumerable_enumerables'
|
4
10
|
|
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
2
8
|
require 'kyanite/unit_test'
|
3
9
|
require 'kyanite/enumerable/enumerable_numerics'
|
4
10
|
|
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
2
8
|
require 'kyanite/unit_test'
|
3
9
|
require 'kyanite/enumerable/enumerable_strings'
|
4
10
|
|
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
2
8
|
require 'kyanite/unit_test'
|
3
9
|
require 'kyanite/enumerable/structure'
|
4
10
|
require 'kyanite/dictionary'
|
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
2
8
|
require 'kyanite/unit_test'
|
3
9
|
require 'kyanite/general/classutils'
|
4
10
|
|
data/test/general/test_nil.rb
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
2
8
|
require 'kyanite/unit_test'
|
3
9
|
require 'kyanite/general/nil'
|
4
10
|
|
data/test/general/test_object.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
1
7
|
|
2
|
-
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
|
3
8
|
require 'kyanite/unit_test'
|
4
9
|
require 'kyanite/general/object'
|
5
10
|
require 'kyanite/general/true_false'
|
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
2
8
|
require 'kyanite/unit_test'
|
3
9
|
require 'kyanite/general/true_false'
|
4
10
|
require 'kyanite/general/nil'
|
@@ -1,5 +1,10 @@
|
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
1
7
|
|
2
|
-
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
|
3
8
|
require 'kyanite/unit_test'
|
4
9
|
require 'kyanite/numeric'
|
5
10
|
|
data/test/string/test_cast.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
-
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
3
8
|
require 'kyanite/unit_test'
|
4
9
|
require 'kyanite/string/cast'
|
5
10
|
|
data/test/string/test_chars.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
-
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
3
8
|
require 'kyanite/unit_test'
|
4
9
|
require 'kyanite/string/chars'
|
5
10
|
|
data/test/string/test_diff.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
-
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
3
8
|
require 'kyanite/unit_test'
|
4
9
|
require 'kyanite/string/diff'
|
5
10
|
|
data/test/string/test_list.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
2
7
|
|
3
|
-
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
|
4
8
|
require 'kyanite/unit_test'
|
5
9
|
require 'kyanite/dictionary'
|
6
10
|
require 'kyanite/string/list'
|
data/test/string/test_mgsub.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
-
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
3
8
|
require 'kyanite/unit_test'
|
4
9
|
require 'kyanite/string/mgsub'
|
5
10
|
|
data/test/string/test_nested.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
-
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
3
8
|
require 'kyanite/unit_test'
|
4
9
|
require 'kyanite/string/nested'
|
5
10
|
|
data/test/string/test_split.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
-
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
3
8
|
require 'kyanite/unit_test'
|
4
9
|
require 'kyanite/string/split'
|
5
10
|
|
data/test/test_dictionary.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
1
7
|
|
2
|
-
require File.join(File.dirname(__FILE__), '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
|
3
8
|
require 'kyanite/unit_test'
|
4
|
-
|
5
9
|
require 'kyanite/dictionary'
|
6
10
|
|
7
11
|
|
data/test/test_hash.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
1
7
|
|
2
|
-
require
|
3
|
-
require 'kyanite/unit_test'
|
4
|
-
|
8
|
+
require 'kyanite/unit_test'
|
5
9
|
require 'kyanite/hash'
|
6
10
|
|
7
11
|
# Tests for Hash
|
data/test/test_optimizer.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
1
7
|
|
2
|
-
require File.join(File.dirname(__FILE__), '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
|
3
8
|
require 'kyanite/unit_test'
|
4
|
-
|
5
9
|
require 'kyanite/optimizer'
|
6
10
|
|
7
11
|
|
data/test/test_range.rb
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
2
7
|
|
3
|
-
require File.join(File.dirname(__FILE__), '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
|
4
8
|
require 'kyanite/unit_test'
|
5
|
-
|
6
9
|
require 'kyanite/range'
|
7
10
|
|
8
11
|
|
data/test/test_set.rb
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
2
7
|
|
3
|
-
require File.join(File.dirname(__FILE__), '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
|
4
8
|
require 'kyanite/unit_test'
|
5
|
-
|
6
9
|
require 'kyanite/set'
|
7
10
|
|
8
11
|
|
data/test/test_tree.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
# ü
|
3
|
+
if $0 == __FILE__
|
4
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' )
|
5
|
+
smart_load_path
|
6
|
+
end
|
7
|
+
|
8
|
+
require 'kyanite/unit_test'
|
5
9
|
require 'kyanite/tree'
|
6
10
|
require 'kyanite/symbol'
|
7
11
|
|