kyanite 0.7.2 → 0.7.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.
- data/README.rdoc +1 -1
- data/lib/kyanite.rb +1 -0
- data/lib/kyanite/string/cast.rb +2 -1
- data/lib/kyanite/symbol.rb +10 -0
- data/version.rb +1 -1
- metadata +2 -2
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
data/lib/kyanite/string/cast.rb
CHANGED
data/lib/kyanite/symbol.rb
CHANGED
@@ -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
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.
|
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-
|
12
|
+
date: 2012-11-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: drumherum
|