kyanite 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -12,7 +12,7 @@ Welcome to Kyanite. It's a general toolbox like Facets or ActiveSupport.
12
12
  [{Set}] General tools. New class {OrderedSet} as alternative to {SortedSet}.
13
13
  [{Hash} {Dictionary} {Tree::TreeNode Tree}] General tools.
14
14
  [{Optimizer}] Find objects with min or max score.
15
- [{Undoable}] Save and restore objects.
15
+ [{Undoable}] Save and restore objects. Great for try-and-error-algorithms.
16
16
  [{Object} {CallerUtils}] Repeats a block until the time is up. Silence Ruby warnings. Deep copy. Examine the call stack.
17
17
 
18
18
 
data/lib/kyanite.rb CHANGED
@@ -140,6 +140,7 @@
140
140
 
141
141
  # @!macro [new] undoable
142
142
  # === Undoable Module
143
+ # Save and restore objects. Great for try-and-error-algorithms.
143
144
  # [Kyanite definitions] {Undoable}
144
145
  # [Kyanite tests and examples]
145
146
  # [Usage] +require 'kyanite/general/undoable'+
@@ -1,8 +1,9 @@
1
1
  # ruby encoding: utf-8
2
-
2
+ # ü
3
3
  if $0 == __FILE__
4
4
  require 'drumherum'
5
5
  smart_init
6
+ require 'perception'
6
7
  end
7
8
 
8
9
  require 'kyanite/numeric/integer'
@@ -25,6 +25,16 @@ class Symbol
25
25
  (self.to_s + other.to_s).to_sym
26
26
  end
27
27
 
28
+ # like String method with same name
29
+ # @return [Array]
30
+ def *(n)
31
+ result = []
32
+ n.times do
33
+ result << self
34
+ end # do
35
+ return result
36
+ end #def
37
+
28
38
  # like String method with same name
29
39
  # @return [Boolean]
30
40
  # def <=>(other)
data/version.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Kyanite
4
4
 
5
- VERSION = '0.7.2'
5
+ VERSION = '0.7.3'
6
6
 
7
7
  end
8
8
 
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.7.2
4
+ version: 0.7.3
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-11-02 00:00:00.000000000 Z
12
+ date: 2012-11-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: drumherum