kyanite 0.5.5 → 0.5.6

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.txt CHANGED
@@ -23,7 +23,9 @@ Kyanite is a general toolbox like Facets or ActiveSupport.
23
23
 
24
24
  == License
25
25
  cc-by-sa
26
+
26
27
  Creative Commons Attribution-Share Alike 3.0 Germany
28
+
27
29
  http://creativecommons.org/licenses/by-sa/3.0/de/deed.en
28
30
 
29
31
 
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 | p |
16
+ $hoe = Hoe.spec 'kyanite' do
17
17
 
18
18
  # self.rubyforge_name = 'yourgemx' # if different than 'yourgem'
19
19
 
20
- p.developer('Bjoern Klippstein', 'klippstein@klippstein.com')
21
- p.summary = 'General toolbox like Facets or ActiveSupport.'
22
- p.urls = ['http://kyanite.rubyforge.org']
23
- p.remote_rdoc_dir = '' # Release to root only one project
24
- p.extra_deps = [ ['activesupport', '>= 3.2.8'],
25
- ['facets', '>= 2.9.3'],
26
- ['rubytree', '>= 0.8.3'] ]
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
- # = *Kyanite*
17
- #
18
- # [ | *Kyanite* | Object | Array | Set | Enumerable | Hash | ] | *Kyanite* | TrueClass | FalseClass | NilClass | Div |
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
 
@@ -1,6 +1,9 @@
1
1
  # ruby encoding: utf-8
2
2
  require 'hashery' # old: 'facets/dictionary'
3
- require 'kyanite/enumerable' # is_collection?
3
+ unless defined? ENUMERABLE_REQUIRED
4
+ require 'kyanite/enumerable' # is_collection?
5
+ end
6
+
4
7
 
5
8
 
6
9
 
@@ -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
 
@@ -7,7 +7,7 @@ end
7
7
 
8
8
  require 'kyanite/general/object'
9
9
  require 'kyanite/array/array'
10
- require 'kyanite/dictionary'
10
+ require 'kyanite/dictionary'
11
11
 
12
12
 
13
13
 
@@ -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
@@ -24,7 +24,7 @@ class String
24
24
  # Ruby Cookbook, by Lucas Carlson and Leonard Richardson
25
25
  # Copyright 2006 O'Reilly Media
26
26
 
27
- end # class
27
+ end # class
28
28
 
29
29
 
30
30
  class NilClass
@@ -8,7 +8,7 @@ end
8
8
  require 'kyanite/unit_test'
9
9
  require 'kyanite/array/array'
10
10
  require 'kyanite/numeric/numeric'
11
- require 'kyanite/set'
11
+ require 'kyanite/set'
12
12
 
13
13
 
14
14
  # Tests für Array
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.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: http://kyanite.rubyforge.org
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: General toolbox like Facets or ActiveSupport.
220
+ summary: ''
221
221
  test_files:
222
222
  - test/array/test_array.rb
223
223
  - test/array/test_matrix2.rb