ruby-nuggets 0.1.9.237 → 0.2.0.238

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/HEADER ADDED
@@ -0,0 +1,27 @@
1
+ #--
2
+ ###############################################################################
3
+ # #
4
+ # A component of ruby-nuggets, some extensions to the Ruby programming #
5
+ # language. #
6
+ # #
7
+ # Copyright (C) 2007-2008 Jens Wille #
8
+ # #
9
+ # Authors: #
10
+ # Jens Wille <jens.wille@uni-koeln.de> #
11
+ # #
12
+ # ruby-nuggets is free software; you can redistribute it and/or modify it #
13
+ # under the terms of the GNU General Public License as published by the Free #
14
+ # Software Foundation; either version 3 of the License, or (at your option) #
15
+ # any later version. #
16
+ # #
17
+ # ruby-nuggets is distributed in the hope that it will be useful, but WITHOUT #
18
+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or #
19
+ # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for #
20
+ # more details. #
21
+ # #
22
+ # You should have received a copy of the GNU General Public License along #
23
+ # with ruby-nuggets. If not, see <http://www.gnu.org/licenses/>. #
24
+ # #
25
+ ###############################################################################
26
+ #++
27
+
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to ruby-nuggets version 0.1.9
5
+ This documentation refers to ruby-nuggets version 0.2.0
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -32,7 +32,7 @@ class Numeric
32
32
  #
33
33
  # Returns the nearest multiple of +target+ according to +what+.
34
34
  def to_multiple_of(target, what = :round)
35
- (to_f / target).send(what) * target
35
+ target.zero? ? self : (to_f / target).send(what) * target
36
36
  end
37
37
 
38
38
  # call-seq:
@@ -3,8 +3,8 @@ module Nuggets
3
3
  module Version
4
4
 
5
5
  MAJOR = 0
6
- MINOR = 1
7
- TINY = 9
6
+ MINOR = 2
7
+ TINY = 0
8
8
 
9
9
  class << self
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-nuggets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9.237
4
+ version: 0.2.0.238
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-26 00:00:00 +02:00
12
+ date: 2008-05-05 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -24,60 +24,61 @@ extra_rdoc_files:
24
24
  - ChangeLog
25
25
  - README
26
26
  files:
27
- - lib/nuggets/all.rb
28
- - lib/nuggets/version.rb
29
- - lib/nuggets/io/agrep.rb
30
- - lib/nuggets/file/which.rb
31
- - lib/nuggets/integer/factorial.rb
32
27
  - lib/nuggets/integer/to_binary_s.rb
33
- - lib/nuggets/array/to_hash.rb
34
- - lib/nuggets/array/shuffle.rb
35
- - lib/nuggets/array/format.rb
36
- - lib/nuggets/array/in_order.rb
37
- - lib/nuggets/array/combination.rb
38
- - lib/nuggets/array/flatten_once.rb
39
- - lib/nuggets/array/rand.rb
40
- - lib/nuggets/array/monotone.rb
41
- - lib/nuggets/uri/exist.rb
42
- - lib/nuggets/uri/content_type.rb
43
- - lib/nuggets/proc/bind.rb
44
- - lib/nuggets/string/word_wrap.rb
28
+ - lib/nuggets/integer/factorial.rb
29
+ - lib/nuggets/version.rb
30
+ - lib/nuggets/object/singleton_class.rb
31
+ - lib/nuggets/object/blank.rb
32
+ - lib/nuggets/enumerable/agrep.rb
33
+ - lib/nuggets/enumerable/minmax.rb
34
+ - lib/nuggets/all.rb
35
+ - lib/nuggets/string/sub_with_md.rb
45
36
  - lib/nuggets/string/msub.rb
46
37
  - lib/nuggets/string/case.rb
47
- - lib/nuggets/string/sub_with_md.rb
48
38
  - lib/nuggets/string/evaluate.rb
39
+ - lib/nuggets/string/word_wrap.rb
49
40
  - lib/nuggets/string/nsub.rb
50
41
  - lib/nuggets/string/capitalize_first.rb
51
- - lib/nuggets/object/blank.rb
52
- - lib/nuggets/object/singleton_class.rb
42
+ - lib/nuggets/hash/in_order.rb
43
+ - lib/nuggets/hash/insert.rb
44
+ - lib/nuggets/proc/bind.rb
45
+ - lib/nuggets/array/rand.rb
46
+ - lib/nuggets/array/to_hash.rb
47
+ - lib/nuggets/array/flatten_once.rb
48
+ - lib/nuggets/array/in_order.rb
49
+ - lib/nuggets/array/shuffle.rb
50
+ - lib/nuggets/array/monotone.rb
51
+ - lib/nuggets/array/format.rb
52
+ - lib/nuggets/array/combination.rb
53
53
  - lib/nuggets/numeric/between.rb
54
54
  - lib/nuggets/numeric/signum.rb
55
55
  - lib/nuggets/numeric/to_multiple.rb
56
- - lib/nuggets/util/dotted_decimal.rb
57
- - lib/nuggets/util/i18n.rb
58
56
  - lib/nuggets/util/ansicolor2css.rb
59
57
  - lib/nuggets/util/content_type.rb
60
- - lib/nuggets/enumerable/minmax.rb
61
- - lib/nuggets/enumerable/agrep.rb
62
- - lib/nuggets/hash/in_order.rb
63
- - lib/nuggets/hash/insert.rb
58
+ - lib/nuggets/util/dotted_decimal.rb
59
+ - lib/nuggets/util/i18n.rb
60
+ - lib/nuggets/file/which.rb
61
+ - lib/nuggets/uri/content_type.rb
62
+ - lib/nuggets/uri/exist.rb
63
+ - lib/nuggets/io/agrep.rb
64
64
  - COPYING
65
- - Rakefile
65
+ - HEADER
66
66
  - README
67
67
  - ChangeLog
68
+ - Rakefile
68
69
  has_rdoc: true
69
70
  homepage: http://prometheus.rubyforge.org/ruby-nuggets
70
71
  post_install_message:
71
72
  rdoc_options:
72
73
  - --line-numbers
73
- - --main
74
- - README
74
+ - --all
75
75
  - --inline-source
76
76
  - --title
77
77
  - ruby-nuggets Application documentation
78
+ - --main
79
+ - README
78
80
  - --charset
79
81
  - UTF-8
80
- - --all
81
82
  require_paths:
82
83
  - lib
83
84
  required_ruby_version: !ruby/object:Gem::Requirement