kyanite 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +2 -0
- data/Rakefile.rb +14 -11
- data/lib/kyanite.rb +3 -44
- data/lib/kyanite/dictionary.rb +4 -1
- data/lib/kyanite/enumerable.rb +11 -1
- data/lib/kyanite/enumerable/structure.rb +1 -1
- data/lib/kyanite/operation/rake.rb +16 -0
- data/lib/kyanite/set.rb +1 -1
- data/lib/kyanite/string/mgsub.rb +1 -1
- data/test/array/test_array.rb +1 -1
- metadata +3 -3
data/README.txt
CHANGED
data/Rakefile.rb
CHANGED
@@ -13,17 +13,22 @@ require 'kyanite/rake'
|
|
13
13
|
#
|
14
14
|
# http://nubyonrails.com/articles/tutorial-publishing-rubygems-with-hoe
|
15
15
|
#
|
16
|
-
$hoe = Hoe.spec 'kyanite' do
|
16
|
+
$hoe = Hoe.spec 'kyanite' do
|
17
17
|
|
18
18
|
# self.rubyforge_name = 'yourgemx' # if different than 'yourgem'
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
developer('Bjoern Klippstein', 'klippstein@klippstein.com')
|
21
|
+
summary = 'General toolbox like Facets or ActiveSupport.'
|
22
|
+
urls << ['http://kyanite.rubyforge.org']
|
23
|
+
remote_rdoc_dir = '' # Release to root only one project
|
24
|
+
extra_deps << ['activesupport', '>= 3.2.8']
|
25
|
+
extra_deps << ['facets', '>= 2.9.3']
|
26
|
+
extra_deps << ['rubytree', '>= 0.8.3']
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
27
32
|
|
28
33
|
end
|
29
34
|
|
@@ -35,18 +40,16 @@ end
|
|
35
40
|
#
|
36
41
|
|
37
42
|
remove_task 'ridocs'
|
38
|
-
Dir['tasks/**/*.rake'].each { |t| load t }
|
39
43
|
remove_task 'rdoc'
|
40
44
|
remove_task 'docs'
|
41
45
|
remove_task 'audit'
|
42
46
|
remove_task 'dcov'
|
43
47
|
remove_task 'debug_email'
|
44
48
|
remove_task 'debug_gem'
|
45
|
-
remove_task 'default'
|
46
49
|
remove_task 'deps:email'
|
47
50
|
remove_task 'multi'
|
48
51
|
remove_task 'newb'
|
49
|
-
|
52
|
+
Dir['tasks/**/*.rake'].each { |t| load t }
|
50
53
|
|
51
54
|
|
52
55
|
|
data/lib/kyanite.rb
CHANGED
@@ -13,50 +13,9 @@ end
|
|
13
13
|
|
14
14
|
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
# ---
|
20
|
-
#
|
21
|
-
#
|
22
|
-
# == Features
|
23
|
-
# Kyanite is a general toolbox like Facets or ActiveSupport.
|
24
|
-
# * Transparent nil Handling, see NilClass
|
25
|
-
# * Comfortable UnitTests, see Div
|
26
|
-
#
|
27
|
-
#
|
28
|
-
# == Usage
|
29
|
-
# require 'kyanite' # require all
|
30
|
-
# require 'kyanite/basics' # require basic Kyanite behavior and features
|
31
|
-
# require 'kyanite/string' # require all String related stuff
|
32
|
-
# require 'kyanite/string/diff' # require all String#diff related stuff
|
33
|
-
#
|
34
|
-
#
|
35
|
-
# == License
|
36
|
-
# cc-by-sa
|
37
|
-
# Creative Commons Attribution-Share Alike 3.0 Germany
|
38
|
-
# http://creativecommons.org/licenses/by-sa/3.0/de/deed.en
|
39
|
-
#
|
40
|
-
#
|
41
|
-
# == Homepage
|
42
|
-
# http://kyanite.rubyforge.org
|
43
|
-
#
|
44
|
-
#
|
45
|
-
# == Author
|
46
|
-
# Björn Klippstein
|
47
|
-
#
|
48
|
-
#
|
49
|
-
# == Disclaimer
|
50
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
51
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
52
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
53
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
54
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
55
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
56
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
57
|
-
#
|
58
|
-
module Kyanite
|
59
|
-
VERSION = '0.5.5'
|
16
|
+
|
17
|
+
module Kyanite #:nodoc
|
18
|
+
VERSION = '0.5.6'
|
60
19
|
end
|
61
20
|
|
62
21
|
|
data/lib/kyanite/dictionary.rb
CHANGED
data/lib/kyanite/enumerable.rb
CHANGED
@@ -1,7 +1,17 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
+
unless defined? ENUMERABLE_REQUIRED
|
3
|
+
ENUMERABLE_REQUIRED=true
|
4
|
+
end
|
5
|
+
|
2
6
|
require 'kyanite/enumerable/enumerable_enumerables'
|
3
7
|
require 'kyanite/enumerable/enumerable_numerics'
|
4
8
|
require 'kyanite/enumerable/enumerable_strings'
|
5
|
-
require 'kyanite/enumerable/structure'
|
9
|
+
require 'kyanite/enumerable/structure'
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
if $0 == __FILE__
|
14
|
+
puts ENUMERABLE_REQUIRED
|
15
|
+
end
|
6
16
|
|
7
17
|
|
@@ -35,6 +35,22 @@ end
|
|
35
35
|
|
36
36
|
|
37
37
|
|
38
|
+
# Task :sleep_5
|
39
|
+
#
|
40
|
+
desc 'Sleep 5 seconds'
|
41
|
+
task :sleep_5 do
|
42
|
+
puts
|
43
|
+
puts
|
44
|
+
puts
|
45
|
+
if Hoe::WINDOZE
|
46
|
+
sh "wait 5"
|
47
|
+
else
|
48
|
+
sh "sleep 5"
|
49
|
+
end
|
50
|
+
puts '---------------------------------------------------'
|
51
|
+
end
|
52
|
+
|
53
|
+
|
38
54
|
|
39
55
|
|
40
56
|
|
data/lib/kyanite/set.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
2
|
require 'set'
|
3
|
-
require 'kyanite/enumerable' # is_collection?
|
3
|
+
require 'kyanite/enumerable' # is_collection?
|
4
4
|
require 'kyanite/general/kernel' # silence_warnings
|
5
5
|
require 'kyanite/dictionary' # Geordneter Hash
|
6
6
|
require 'kyanite/symbol' # damit man auch Symbols aufnehmen kann
|
data/lib/kyanite/string/mgsub.rb
CHANGED
data/test/array/test_array.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.5.
|
4
|
+
version: 0.5.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -192,7 +192,7 @@ files:
|
|
192
192
|
- test/test_tree.rb
|
193
193
|
- test/string/test_mgsub.rb
|
194
194
|
- .gemtest
|
195
|
-
homepage:
|
195
|
+
homepage:
|
196
196
|
licenses: []
|
197
197
|
post_install_message:
|
198
198
|
rdoc_options:
|
@@ -217,7 +217,7 @@ rubyforge_project: kyanite
|
|
217
217
|
rubygems_version: 1.8.24
|
218
218
|
signing_key:
|
219
219
|
specification_version: 3
|
220
|
-
summary:
|
220
|
+
summary: ''
|
221
221
|
test_files:
|
222
222
|
- test/array/test_array.rb
|
223
223
|
- test/array/test_matrix2.rb
|