ruby-nuggets 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -2
- data/lib/nuggets/file/ext.rb +5 -0
- data/lib/nuggets/file/ext_mixin.rb +88 -0
- data/lib/nuggets/version.rb +1 -1
- data/spec/nuggets/file/ext_spec.rb +40 -0
- metadata +159 -174
data/README
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
== VERSION
|
4
4
|
|
5
|
-
This documentation refers to ruby-nuggets version 0.8.
|
5
|
+
This documentation refers to ruby-nuggets version 0.8.3
|
6
6
|
|
7
7
|
|
8
8
|
== DESCRIPTION
|
@@ -47,7 +47,7 @@ RubyGem:: http://rubygems.org/gems/ruby-nuggets
|
|
47
47
|
|
48
48
|
== LICENSE AND COPYRIGHT
|
49
49
|
|
50
|
-
Copyright (C) 2007-
|
50
|
+
Copyright (C) 2007-2012 Jens Wille
|
51
51
|
|
52
52
|
ruby-nuggets is free software: you can redistribute it and/or modify it under
|
53
53
|
the terms of the GNU Affero General Public License as published by the Free
|
@@ -0,0 +1,88 @@
|
|
1
|
+
#--
|
2
|
+
###############################################################################
|
3
|
+
# #
|
4
|
+
# A component of ruby-nuggets, some extensions to the Ruby programming #
|
5
|
+
# language. #
|
6
|
+
# #
|
7
|
+
# Copyright (C) 2007-2012 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 Affero General Public License as published by #
|
14
|
+
# the Free Software Foundation; either version 3 of the License, or (at your #
|
15
|
+
# option) 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 Affero General Public License #
|
20
|
+
# for more details. #
|
21
|
+
# #
|
22
|
+
# You should have received a copy of the GNU Affero General Public License #
|
23
|
+
# along with ruby-nuggets. If not, see <http://www.gnu.org/licenses/>. #
|
24
|
+
# #
|
25
|
+
###############################################################################
|
26
|
+
#++
|
27
|
+
|
28
|
+
module Nuggets
|
29
|
+
class File
|
30
|
+
module ExtMixin
|
31
|
+
|
32
|
+
# call-seq:
|
33
|
+
# File.chomp_ext(path) -> aString
|
34
|
+
#
|
35
|
+
# Returns a copy of +path+ with its file extension removed.
|
36
|
+
def chomp_ext(path, ext = extname(path))
|
37
|
+
path.chomp(ext)
|
38
|
+
end
|
39
|
+
|
40
|
+
# call-seq:
|
41
|
+
# File.chomp_ext!(path) -> aString | nil
|
42
|
+
#
|
43
|
+
# Modifies +path+ in place as described for #chomp_ext, returning
|
44
|
+
# +path+, or +nil+ if no modifications were made.
|
45
|
+
def chomp_ext!(path, ext = extname(path))
|
46
|
+
path.chomp!(ext)
|
47
|
+
end
|
48
|
+
|
49
|
+
# call-seq:
|
50
|
+
# File.sub_ext(path, new_ext) -> aString
|
51
|
+
#
|
52
|
+
# Returns a copy of +path+ with its file extension replaced
|
53
|
+
# with +new_ext+ (if present; see also #set_ext).
|
54
|
+
def sub_ext(path, new_ext, ext = extname(path))
|
55
|
+
sub_ext!(_path = path.dup, new_ext, ext); _path
|
56
|
+
end
|
57
|
+
|
58
|
+
# call-seq:
|
59
|
+
# File.sub_ext!(path, new_ext) -> aString | nil
|
60
|
+
#
|
61
|
+
# Modifies +path+ in place as described for #sub_ext, returning
|
62
|
+
# +path+, or +nil+ if no modifications were made.
|
63
|
+
def sub_ext!(path, new_ext, ext = extname(path))
|
64
|
+
path << new_ext if chomp_ext!(path, ext)
|
65
|
+
end
|
66
|
+
|
67
|
+
# call-seq:
|
68
|
+
# File.set_ext(path, new_ext) -> aString
|
69
|
+
#
|
70
|
+
# Returns a copy of +path+ with its file extension removed
|
71
|
+
# and +new_ext+ appended. Like #sub_ext, but also applies
|
72
|
+
# when file extension is not present.
|
73
|
+
def set_ext(path, new_ext, ext = extname(path))
|
74
|
+
chomp_ext(path, ext) << new_ext
|
75
|
+
end
|
76
|
+
|
77
|
+
# call-seq:
|
78
|
+
# File.set_ext!(path, new_ext) -> aString
|
79
|
+
#
|
80
|
+
# Modifies +path+ in place as described for #set_ext, returning
|
81
|
+
# +path+.
|
82
|
+
def set_ext!(path, new_ext, ext = extname(path))
|
83
|
+
chomp_ext!(path, ext); path << new_ext
|
84
|
+
end
|
85
|
+
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
data/lib/nuggets/version.rb
CHANGED
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'nuggets/file/ext'
|
2
|
+
|
3
|
+
describe File, 'when extended by', Nuggets::File::ExtMixin do
|
4
|
+
|
5
|
+
it { (class << File; ancestors; end).should include(Nuggets::File::ExtMixin) }
|
6
|
+
|
7
|
+
[
|
8
|
+
['foo', nil, '.baz'],
|
9
|
+
%w[foo.bar foo .baz],
|
10
|
+
%w[foo.bar.baz foo.bar .baz]
|
11
|
+
].each { |path, new_path, new_ext|
|
12
|
+
example {
|
13
|
+
File.chomp_ext(path).should == (new_path || path)
|
14
|
+
}
|
15
|
+
|
16
|
+
example {
|
17
|
+
File.chomp_ext!(_path = path.dup).should == new_path
|
18
|
+
_path.should == (new_path || path)
|
19
|
+
}
|
20
|
+
|
21
|
+
example {
|
22
|
+
File.sub_ext(path, new_ext).should == (new_path ? "#{new_path}#{new_ext}" : path)
|
23
|
+
}
|
24
|
+
|
25
|
+
example {
|
26
|
+
File.sub_ext!(_path = path.dup, new_ext).should == (new_path && "#{new_path}#{new_ext}")
|
27
|
+
_path.should == (new_path ? "#{new_path}#{new_ext}" : path)
|
28
|
+
}
|
29
|
+
|
30
|
+
example {
|
31
|
+
File.set_ext(path, new_ext).should == "#{new_path || path}#{new_ext}"
|
32
|
+
}
|
33
|
+
|
34
|
+
example {
|
35
|
+
File.set_ext!(_path = path.dup, new_ext).should == "#{new_path || path}#{new_ext}"
|
36
|
+
_path.should == "#{new_path || path}#{new_ext}"
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
end
|
metadata
CHANGED
@@ -1,237 +1,222 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-nuggets
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.3
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 8
|
9
|
-
- 2
|
10
|
-
version: 0.8.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jens Wille
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2011-12-30 00:00:00 Z
|
12
|
+
date: 2012-01-07 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
14
|
description: Some extensions to the Ruby programming language.
|
22
15
|
email: jens.wille@uni-koeln.de
|
23
16
|
executables: []
|
24
|
-
|
25
17
|
extensions: []
|
26
|
-
|
27
|
-
extra_rdoc_files:
|
18
|
+
extra_rdoc_files:
|
28
19
|
- README
|
29
20
|
- COPYING
|
30
21
|
- ChangeLog
|
31
|
-
files:
|
32
|
-
- lib/nuggets.rb
|
33
|
-
- lib/nuggets/
|
34
|
-
- lib/nuggets/
|
35
|
-
- lib/nuggets/
|
36
|
-
- lib/nuggets/
|
37
|
-
- lib/nuggets/
|
38
|
-
- lib/nuggets/
|
39
|
-
- lib/nuggets/
|
40
|
-
- lib/nuggets/
|
41
|
-
- lib/nuggets/
|
42
|
-
- lib/nuggets/
|
43
|
-
- lib/nuggets/
|
44
|
-
- lib/nuggets/
|
22
|
+
files:
|
23
|
+
- lib/nuggets/file/replace.rb
|
24
|
+
- lib/nuggets/file/which_mixin.rb
|
25
|
+
- lib/nuggets/file/sub.rb
|
26
|
+
- lib/nuggets/file/ext.rb
|
27
|
+
- lib/nuggets/file/replace_mixin.rb
|
28
|
+
- lib/nuggets/file/which.rb
|
29
|
+
- lib/nuggets/file/sub_mixin.rb
|
30
|
+
- lib/nuggets/file/ext_mixin.rb
|
31
|
+
- lib/nuggets/version.rb
|
32
|
+
- lib/nuggets/statistics_mixins.rb
|
33
|
+
- lib/nuggets/statistics.rb
|
34
|
+
- lib/nuggets/env/user_encoding_mixin.rb
|
35
|
+
- lib/nuggets/env/set_mixin.rb
|
36
|
+
- lib/nuggets/env/user_home_mixin.rb
|
45
37
|
- lib/nuggets/env/user_home.rb
|
46
38
|
- lib/nuggets/env/user_encoding.rb
|
47
39
|
- lib/nuggets/env/set.rb
|
48
|
-
- lib/nuggets/env/user_home_mixin.rb
|
49
|
-
- lib/nuggets/env/set_mixin.rb
|
50
|
-
- lib/nuggets/env/user_encoding_mixin.rb
|
51
|
-
- lib/nuggets/net/success.rb
|
52
40
|
- lib/nuggets/object/silence_mixin.rb
|
53
|
-
- lib/nuggets/object/uniclass.rb
|
54
|
-
- lib/nuggets/object/singleton_class.rb
|
55
|
-
- lib/nuggets/object/msend.rb
|
56
|
-
- lib/nuggets/object/virtual_class.rb
|
57
|
-
- lib/nuggets/object/ghost_class.rb
|
58
41
|
- lib/nuggets/object/boolean.rb
|
59
|
-
- lib/nuggets/object/
|
60
|
-
- lib/nuggets/object/boolean_mixin.rb
|
61
|
-
- lib/nuggets/object/metaclass.rb
|
42
|
+
- lib/nuggets/object/uniclass.rb
|
62
43
|
- lib/nuggets/object/msend_mixin.rb
|
44
|
+
- lib/nuggets/object/blank_mixin.rb
|
63
45
|
- lib/nuggets/object/singleton_class_mixin.rb
|
46
|
+
- lib/nuggets/object/singleton_class.rb
|
47
|
+
- lib/nuggets/object/metaclass.rb
|
48
|
+
- lib/nuggets/object/virtual_class.rb
|
64
49
|
- lib/nuggets/object/eigenclass.rb
|
65
50
|
- lib/nuggets/object/silence.rb
|
66
|
-
- lib/nuggets/object/
|
67
|
-
- lib/nuggets/
|
68
|
-
- lib/nuggets/
|
69
|
-
- lib/nuggets/
|
70
|
-
- lib/nuggets/
|
71
|
-
- lib/nuggets/
|
72
|
-
- lib/nuggets/
|
73
|
-
- lib/nuggets/
|
74
|
-
- lib/nuggets/
|
75
|
-
- lib/nuggets/
|
76
|
-
- lib/nuggets/
|
77
|
-
- lib/nuggets/
|
78
|
-
- lib/nuggets/
|
79
|
-
- lib/nuggets/
|
80
|
-
- lib/nuggets/
|
81
|
-
- lib/nuggets/
|
82
|
-
- lib/nuggets/
|
83
|
-
- lib/nuggets/
|
84
|
-
- lib/nuggets/
|
85
|
-
- lib/nuggets/
|
86
|
-
- lib/nuggets/
|
87
|
-
- lib/nuggets/
|
88
|
-
- lib/nuggets/
|
89
|
-
- lib/nuggets/
|
90
|
-
- lib/nuggets/
|
91
|
-
- lib/nuggets/string/xor_mixin.rb
|
92
|
-
- lib/nuggets/string/evaluate_mixin.rb
|
93
|
-
- lib/nuggets/string/sub_with_md.rb
|
51
|
+
- lib/nuggets/object/boolean_mixin.rb
|
52
|
+
- lib/nuggets/object/msend.rb
|
53
|
+
- lib/nuggets/object/ghost_class.rb
|
54
|
+
- lib/nuggets/object/blank.rb
|
55
|
+
- lib/nuggets/uri/exist_mixin.rb
|
56
|
+
- lib/nuggets/uri/redirect_mixin.rb
|
57
|
+
- lib/nuggets/uri/exist.rb
|
58
|
+
- lib/nuggets/uri/content_type_mixin.rb
|
59
|
+
- lib/nuggets/uri/content_type.rb
|
60
|
+
- lib/nuggets/uri/redirect.rb
|
61
|
+
- lib/nuggets/util/cli.rb
|
62
|
+
- lib/nuggets/util/pluggable.rb
|
63
|
+
- lib/nuggets/util/i18n.rb
|
64
|
+
- lib/nuggets/util/content_type.rb
|
65
|
+
- lib/nuggets/util/ansicolor2css.rb
|
66
|
+
- lib/nuggets/util/added_methods.rb
|
67
|
+
- lib/nuggets/util/dotted_decimal.rb
|
68
|
+
- lib/nuggets/util/ruby.rb
|
69
|
+
- lib/nuggets/util/added_methods/init.rb
|
70
|
+
- lib/nuggets/io/null.rb
|
71
|
+
- lib/nuggets/io/interact_mixin.rb
|
72
|
+
- lib/nuggets/io/null_mixin.rb
|
73
|
+
- lib/nuggets/io/interact.rb
|
74
|
+
- lib/nuggets/io/agrep.rb
|
75
|
+
- lib/nuggets/io/modes.rb
|
94
76
|
- lib/nuggets/all.rb
|
95
|
-
- lib/nuggets/
|
96
|
-
- lib/nuggets/
|
97
|
-
- lib/nuggets/
|
98
|
-
- lib/nuggets/
|
99
|
-
- lib/nuggets/
|
100
|
-
- lib/nuggets/
|
101
|
-
- lib/nuggets/
|
102
|
-
- lib/nuggets/
|
103
|
-
- lib/nuggets/
|
77
|
+
- lib/nuggets/enumerable/agrep.rb
|
78
|
+
- lib/nuggets/enumerable/minmax.rb
|
79
|
+
- lib/nuggets/enumerable/all_any_extended.rb
|
80
|
+
- lib/nuggets/hash/nest.rb
|
81
|
+
- lib/nuggets/hash/unroll.rb
|
82
|
+
- lib/nuggets/hash/in_order.rb
|
83
|
+
- lib/nuggets/hash/insert.rb
|
84
|
+
- lib/nuggets/hash/deep_merge_mixin.rb
|
85
|
+
- lib/nuggets/hash/unroll_mixin.rb
|
86
|
+
- lib/nuggets/hash/only.rb
|
87
|
+
- lib/nuggets/hash/deep_merge.rb
|
88
|
+
- lib/nuggets/hash/nest_mixin.rb
|
89
|
+
- lib/nuggets/hash/at.rb
|
90
|
+
- lib/nuggets/tempfile/open.rb
|
91
|
+
- lib/nuggets/proc/bind_mixin.rb
|
92
|
+
- lib/nuggets/proc/bind.rb
|
104
93
|
- lib/nuggets/array/to_hash.rb
|
105
|
-
- lib/nuggets/array/combination.rb
|
106
|
-
- lib/nuggets/array/monotone.rb
|
107
|
-
- lib/nuggets/array/mode.rb
|
108
|
-
- lib/nuggets/array/variance_mixin.rb
|
109
94
|
- lib/nuggets/array/rand.rb
|
95
|
+
- lib/nuggets/array/flatten_once.rb
|
96
|
+
- lib/nuggets/array/format.rb
|
97
|
+
- lib/nuggets/array/median_mixin.rb
|
98
|
+
- lib/nuggets/array/mean.rb
|
99
|
+
- lib/nuggets/array/combination.rb
|
100
|
+
- lib/nuggets/array/histogram_mixin.rb
|
101
|
+
- lib/nuggets/array/mean_mixin.rb
|
102
|
+
- lib/nuggets/array/standard_deviation_mixin.rb
|
110
103
|
- lib/nuggets/array/standard_deviation.rb
|
104
|
+
- lib/nuggets/array/in_order.rb
|
105
|
+
- lib/nuggets/array/shuffle.rb
|
106
|
+
- lib/nuggets/array/monotone.rb
|
107
|
+
- lib/nuggets/array/histogram.rb
|
108
|
+
- lib/nuggets/array/median.rb
|
109
|
+
- lib/nuggets/array/variance.rb
|
110
|
+
- lib/nuggets/array/correlation.rb
|
111
111
|
- lib/nuggets/array/correlation_mixin.rb
|
112
|
+
- lib/nuggets/array/regression_mixin.rb
|
113
|
+
- lib/nuggets/array/limit.rb
|
114
|
+
- lib/nuggets/array/variance_mixin.rb
|
112
115
|
- lib/nuggets/array/only.rb
|
113
|
-
- lib/nuggets/array/
|
114
|
-
- lib/nuggets/array/
|
115
|
-
- lib/nuggets/array/mode_mixin.rb
|
116
|
+
- lib/nuggets/array/runiq.rb
|
117
|
+
- lib/nuggets/array/mode.rb
|
116
118
|
- lib/nuggets/array/limit_mixin.rb
|
117
|
-
- lib/nuggets/array/
|
118
|
-
- lib/nuggets/array/in_order.rb
|
119
|
-
- lib/nuggets/array/mean.rb
|
120
|
-
- lib/nuggets/array/median_mixin.rb
|
121
|
-
- lib/nuggets/array/histogram_mixin.rb
|
122
|
-
- lib/nuggets/array/format.rb
|
119
|
+
- lib/nuggets/array/regression.rb
|
123
120
|
- lib/nuggets/array/runiq_mixin.rb
|
124
|
-
- lib/nuggets/
|
125
|
-
- lib/nuggets/
|
126
|
-
- lib/nuggets/
|
121
|
+
- lib/nuggets/array/mode_mixin.rb
|
122
|
+
- lib/nuggets/range/quantile_mixin.rb
|
123
|
+
- lib/nuggets/range/quantile.rb
|
124
|
+
- lib/nuggets/net/success.rb
|
125
|
+
- lib/nuggets/integer/map.rb
|
126
|
+
- lib/nuggets/integer/map_mixin.rb
|
127
|
+
- lib/nuggets/integer/factorial.rb
|
128
|
+
- lib/nuggets/integer/length.rb
|
129
|
+
- lib/nuggets/integer/length_mixin.rb
|
130
|
+
- lib/nuggets/integer/to_binary_s.rb
|
131
|
+
- lib/nuggets/all_mixins.rb
|
132
|
+
- lib/nuggets/string/msub.rb
|
133
|
+
- lib/nuggets/string/evaluate.rb
|
134
|
+
- lib/nuggets/string/evaluate_mixin.rb
|
135
|
+
- lib/nuggets/string/nsub.rb
|
136
|
+
- lib/nuggets/string/xor_mixin.rb
|
137
|
+
- lib/nuggets/string/wc.rb
|
138
|
+
- lib/nuggets/string/sub_with_md.rb
|
139
|
+
- lib/nuggets/string/wc_mixin.rb
|
140
|
+
- lib/nuggets/string/case.rb
|
141
|
+
- lib/nuggets/string/word_wrap.rb
|
142
|
+
- lib/nuggets/string/xor.rb
|
143
|
+
- lib/nuggets/string/capitalize_first.rb
|
127
144
|
- lib/nuggets/numeric/to_multiple.rb
|
128
145
|
- lib/nuggets/numeric/signum.rb
|
129
|
-
- lib/nuggets/
|
130
|
-
- lib/nuggets/
|
131
|
-
- lib/nuggets/
|
132
|
-
- lib/nuggets
|
133
|
-
-
|
134
|
-
- lib/nuggets/util/added_methods.rb
|
135
|
-
- lib/nuggets/util/cli.rb
|
136
|
-
- lib/nuggets/util/i18n.rb
|
137
|
-
- lib/nuggets/util/added_methods/init.rb
|
138
|
-
- lib/nuggets/util/pluggable.rb
|
139
|
-
- lib/nuggets/proc/bind_mixin.rb
|
140
|
-
- lib/nuggets/proc/bind.rb
|
141
|
-
- lib/nuggets/statistics.rb
|
142
|
-
- lib/nuggets/io/modes.rb
|
143
|
-
- lib/nuggets/io/interact.rb
|
144
|
-
- lib/nuggets/io/null_mixin.rb
|
145
|
-
- lib/nuggets/io/null.rb
|
146
|
-
- lib/nuggets/io/agrep.rb
|
147
|
-
- lib/nuggets/io/interact_mixin.rb
|
148
|
-
- lib/nuggets/uri/content_type.rb
|
149
|
-
- lib/nuggets/uri/redirect_mixin.rb
|
150
|
-
- lib/nuggets/uri/redirect.rb
|
151
|
-
- lib/nuggets/uri/exist_mixin.rb
|
152
|
-
- lib/nuggets/uri/content_type_mixin.rb
|
153
|
-
- lib/nuggets/uri/exist.rb
|
154
|
-
- lib/nuggets/enumerable/all_any_extended.rb
|
155
|
-
- lib/nuggets/enumerable/minmax.rb
|
156
|
-
- lib/nuggets/enumerable/agrep.rb
|
146
|
+
- lib/nuggets/numeric/between.rb
|
147
|
+
- lib/nuggets/numeric/limit.rb
|
148
|
+
- lib/nuggets/numeric/duration.rb
|
149
|
+
- lib/nuggets.rb
|
150
|
+
- README
|
157
151
|
- ChangeLog
|
158
152
|
- COPYING
|
159
|
-
- README
|
160
153
|
- Rakefile
|
161
|
-
- spec/nuggets/
|
162
|
-
- spec/nuggets/
|
163
|
-
- spec/nuggets/
|
164
|
-
- spec/nuggets/
|
165
|
-
- spec/nuggets/env/set_spec.rb
|
154
|
+
- spec/nuggets/file/which_spec.rb
|
155
|
+
- spec/nuggets/file/sub_spec.rb
|
156
|
+
- spec/nuggets/file/ext_spec.rb
|
157
|
+
- spec/nuggets/file/replace_spec.rb
|
166
158
|
- spec/nuggets/env/user_home_spec.rb
|
167
159
|
- spec/nuggets/env/user_encoding_spec.rb
|
160
|
+
- spec/nuggets/env/set_spec.rb
|
168
161
|
- spec/nuggets/object/silence_spec.rb
|
169
|
-
- spec/nuggets/object/singleton_class_spec.rb
|
170
162
|
- spec/nuggets/object/msend_spec.rb
|
171
|
-
- spec/nuggets/object/
|
163
|
+
- spec/nuggets/object/singleton_class_spec.rb
|
172
164
|
- spec/nuggets/object/boolean_spec.rb
|
173
|
-
- spec/nuggets/
|
174
|
-
- spec/nuggets/
|
175
|
-
- spec/nuggets/
|
176
|
-
- spec/nuggets/
|
177
|
-
- spec/nuggets/
|
178
|
-
- spec/nuggets/
|
179
|
-
- spec/nuggets/
|
180
|
-
- spec/nuggets/string/wc_spec.rb
|
181
|
-
- spec/nuggets/array/regression_spec.rb
|
182
|
-
- spec/nuggets/array/limit_spec.rb
|
165
|
+
- spec/nuggets/object/blank_spec.rb
|
166
|
+
- spec/nuggets/uri/content_type_spec.rb
|
167
|
+
- spec/nuggets/uri/exist_spec.rb
|
168
|
+
- spec/nuggets/hash/deep_merge_spec.rb
|
169
|
+
- spec/nuggets/hash/unroll_spec.rb
|
170
|
+
- spec/nuggets/hash/nest_spec.rb
|
171
|
+
- spec/nuggets/proc/bind_spec.rb
|
183
172
|
- spec/nuggets/array/correlation_spec.rb
|
184
|
-
- spec/nuggets/array/standard_deviation_spec.rb
|
185
173
|
- spec/nuggets/array/mode_spec.rb
|
186
|
-
- spec/nuggets/array/histogram_spec.rb
|
187
|
-
- spec/nuggets/array/median_spec.rb
|
188
174
|
- spec/nuggets/array/mean_spec.rb
|
175
|
+
- spec/nuggets/array/histogram_spec.rb
|
189
176
|
- spec/nuggets/array/variance_spec.rb
|
177
|
+
- spec/nuggets/array/limit_spec.rb
|
178
|
+
- spec/nuggets/array/regression_spec.rb
|
179
|
+
- spec/nuggets/array/standard_deviation_spec.rb
|
180
|
+
- spec/nuggets/array/median_spec.rb
|
190
181
|
- spec/nuggets/array/runiq_spec.rb
|
191
|
-
- spec/nuggets/
|
192
|
-
- spec/nuggets/
|
193
|
-
- spec/nuggets/
|
182
|
+
- spec/nuggets/range/quantile_spec.rb
|
183
|
+
- spec/nuggets/integer/map_spec.rb
|
184
|
+
- spec/nuggets/integer/length_spec.rb
|
185
|
+
- spec/nuggets/string/wc_spec.rb
|
186
|
+
- spec/nuggets/string/evaluate_spec.rb
|
187
|
+
- spec/nuggets/string/xor_spec.rb
|
194
188
|
- spec/spec_helper.rb
|
195
189
|
- .rspec
|
196
|
-
homepage: http://prometheus.rubyforge.org/
|
190
|
+
homepage: http://prometheus.rubyforge.org/
|
197
191
|
licenses: []
|
198
|
-
|
199
192
|
post_install_message:
|
200
|
-
rdoc_options:
|
201
|
-
- --all
|
202
|
-
- --main
|
203
|
-
- README
|
193
|
+
rdoc_options:
|
204
194
|
- --charset
|
205
195
|
- UTF-8
|
206
|
-
- --title
|
207
|
-
- ruby-nuggets Application documentation (v0.8.2)
|
208
196
|
- --line-numbers
|
209
|
-
|
197
|
+
- --all
|
198
|
+
- --title
|
199
|
+
- ruby-nuggets Application documentation (v0.8.3)
|
200
|
+
- --main
|
201
|
+
- README
|
202
|
+
require_paths:
|
210
203
|
- lib
|
211
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
204
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
205
|
none: false
|
213
|
-
requirements:
|
214
|
-
- -
|
215
|
-
- !ruby/object:Gem::Version
|
216
|
-
|
217
|
-
|
218
|
-
- 0
|
219
|
-
version: "0"
|
220
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - ! '>='
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '0'
|
210
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
211
|
none: false
|
222
|
-
requirements:
|
223
|
-
- -
|
224
|
-
- !ruby/object:Gem::Version
|
225
|
-
|
226
|
-
segments:
|
227
|
-
- 0
|
228
|
-
version: "0"
|
212
|
+
requirements:
|
213
|
+
- - ! '>='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
229
216
|
requirements: []
|
230
|
-
|
231
217
|
rubyforge_project: prometheus
|
232
|
-
rubygems_version: 1.8.
|
218
|
+
rubygems_version: 1.8.15
|
233
219
|
signing_key:
|
234
220
|
specification_version: 3
|
235
221
|
summary: Some extensions to the Ruby programming language.
|
236
222
|
test_files: []
|
237
|
-
|