kyanite 0.5.2 → 0.5.3

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.
@@ -1,3 +1,7 @@
1
+
2
+ == 0.5.3 2012-10-09
3
+ * fixed bug in smart_load_path
4
+
1
5
  == 0.5.2 2012-10-09
2
6
  * fixed small bug in reduce94
3
7
  * mgsub added
@@ -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.2'
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
- # Wird in allen Kyanite-Tests angewendet, Verwendung siehe dort.
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__
@@ -1,5 +1,9 @@
1
1
  # ruby encoding: utf-8
2
- require File.join(File.dirname(__FILE__), '..', '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
 
@@ -1,7 +1,6 @@
1
1
  # ruby encoding: utf-8
2
2
  # ü
3
- require File.join(File.dirname(__FILE__), '..', '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
4
- require 'kyanite/string/mgsub'
3
+
5
4
 
6
5
 
7
6
  class String
@@ -1,5 +1,8 @@
1
1
  # ruby encoding: utf-8
2
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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'
@@ -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' ); smart_load_path if $0 == __FILE__
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
@@ -1,4 +1,10 @@
1
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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'
@@ -1,4 +1,10 @@
1
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
 
@@ -1,4 +1,10 @@
1
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
 
@@ -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
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
 
@@ -1,5 +1,10 @@
1
1
  # ruby encoding: utf-8
2
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
 
@@ -1,5 +1,10 @@
1
1
  # ruby encoding: utf-8
2
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
 
@@ -1,5 +1,10 @@
1
1
  # ruby encoding: utf-8
2
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
 
@@ -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'
@@ -1,5 +1,10 @@
1
1
  # ruby encoding: utf-8
2
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
 
@@ -1,5 +1,10 @@
1
1
  # ruby encoding: utf-8
2
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
 
@@ -1,5 +1,10 @@
1
1
  # ruby encoding: utf-8
2
- require File.join(File.dirname(__FILE__), '..', '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
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
 
@@ -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
 
@@ -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
- require 'kyanite/unit_test'
4
-
8
+ require 'kyanite/unit_test'
5
9
  require 'kyanite/hash'
6
10
 
7
11
  # Tests for Hash
@@ -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
 
@@ -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
 
@@ -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
 
@@ -1,7 +1,11 @@
1
-
2
- require File.join(File.dirname(__FILE__), '..', 'smart_load_path.rb' ); smart_load_path if $0 == __FILE__
3
- require 'kyanite/unit_test' if $0 == __FILE__
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kyanite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: