ruby-nuggets 0.9.8.1 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README +1 -1
- data/Rakefile +9 -3
- data/lib/nuggets/all.rb +1 -1
- data/lib/nuggets/array/combination.rb +2 -25
- data/lib/nuggets/array/flatten_once.rb +1 -12
- data/lib/nuggets/array/format.rb +2 -60
- data/lib/nuggets/array/in_order.rb +1 -12
- data/lib/nuggets/array/monotone.rb +10 -27
- data/lib/nuggets/array/only.rb +1 -16
- data/lib/nuggets/array/shuffle.rb +1 -1
- data/lib/nuggets/array/to_hash.rb +1 -22
- data/lib/nuggets/cli.rb +2 -2
- data/lib/nuggets/content_type.rb +3 -8
- data/lib/nuggets/dotted_decimal.rb +0 -18
- data/lib/nuggets/enumerable/all_any_extended.rb +0 -27
- data/lib/nuggets/enumerable/minmax.rb +4 -25
- data/lib/nuggets/hash/at.rb +2 -20
- data/lib/nuggets/hash/deep_fetch.rb +5 -0
- data/lib/nuggets/hash/deep_fetch_mixin.rb +75 -0
- data/lib/nuggets/hash/in_order.rb +0 -8
- data/lib/nuggets/hash/insert.rb +2 -13
- data/lib/nuggets/hash/only.rb +2 -18
- data/lib/nuggets/i18n.rb +1 -10
- data/lib/nuggets/integer/factorial.rb +0 -17
- data/lib/nuggets/integer/to_binary_s.rb +0 -8
- data/lib/nuggets/lsi.rb +2 -2
- data/lib/nuggets/midos.rb +2 -2
- data/lib/nuggets/mysql.rb +6 -207
- data/lib/nuggets/numeric/duration.rb +0 -8
- data/lib/nuggets/numeric/limit.rb +1 -8
- data/lib/nuggets/numeric/signum.rb +0 -7
- data/lib/nuggets/numeric/to_multiple.rb +0 -6
- data/lib/nuggets/rdf/compression.rb +3 -89
- data/lib/nuggets/rdf/prefix.rb +6 -32
- data/lib/nuggets/rdf/turtle/reader.rb +5 -70
- data/lib/nuggets/rdf/turtle.rb +6 -122
- data/lib/nuggets/rdf/uri.rb +5 -37
- data/lib/nuggets/ruby.rb +39 -147
- data/lib/nuggets/string/capitalize_first.rb +2 -18
- data/lib/nuggets/string/case.rb +0 -22
- data/lib/nuggets/string/msub.rb +0 -18
- data/lib/nuggets/string/nsub.rb +2 -16
- data/lib/nuggets/string/sub_with_md.rb +6 -25
- data/lib/nuggets/string/word_wrap.rb +1 -35
- data/lib/nuggets/util/ansicolor2css.rb +1 -1
- data/lib/nuggets/util/cli.rb +1 -1
- data/lib/nuggets/util/content_type.rb +1 -1
- data/lib/nuggets/util/dotted_decimal.rb +1 -2
- data/lib/nuggets/util/i18n.rb +1 -1
- data/lib/nuggets/util/lazy_attr.rb +1 -1
- data/lib/nuggets/util/log_parser/apache.rb +1 -1
- data/lib/nuggets/util/log_parser/rails.rb +1 -1
- data/lib/nuggets/util/log_parser.rb +1 -1
- data/lib/nuggets/util/midos.rb +1 -1
- data/lib/nuggets/util/mysql.rb +1 -1
- data/lib/nuggets/util/pluggable.rb +1 -1
- data/lib/nuggets/util/ruby.rb +1 -1
- data/lib/nuggets/version.rb +2 -2
- data/spec/nuggets/array/boost_spec.rb +1 -3
- data/spec/nuggets/array/combination_spec.rb +25 -0
- data/spec/nuggets/array/correlation_spec.rb +1 -3
- data/spec/nuggets/array/flatten_once_spec.rb +16 -0
- data/spec/nuggets/array/flush_spec.rb +1 -3
- data/spec/nuggets/array/format_spec.rb +52 -0
- data/spec/nuggets/array/hashify_spec.rb +1 -3
- data/spec/nuggets/array/histogram_spec.rb +1 -3
- data/spec/nuggets/array/in_order_spec.rb +13 -0
- data/spec/nuggets/array/limit_spec.rb +1 -3
- data/spec/nuggets/array/mean_spec.rb +3 -5
- data/spec/nuggets/array/median_spec.rb +3 -5
- data/spec/nuggets/array/mode_spec.rb +1 -3
- data/spec/nuggets/array/monotone_spec.rb +30 -0
- data/spec/nuggets/array/only_spec.rb +26 -0
- data/spec/nuggets/array/regression_spec.rb +1 -3
- data/spec/nuggets/array/runiq_spec.rb +1 -3
- data/spec/nuggets/array/standard_deviation_spec.rb +1 -3
- data/spec/nuggets/array/to_hash_spec.rb +28 -0
- data/spec/nuggets/array/variance_spec.rb +3 -5
- data/spec/nuggets/dotted_decimal_spec.rb +27 -0
- data/spec/nuggets/enumerable/all_any_extended_spec.rb +31 -0
- data/spec/nuggets/enumerable/minmax_spec.rb +21 -0
- data/spec/nuggets/env/set_spec.rb +1 -3
- data/spec/nuggets/env/user_encoding_spec.rb +1 -3
- data/spec/nuggets/env/user_home_spec.rb +12 -10
- data/spec/nuggets/file/ext_spec.rb +1 -3
- data/spec/nuggets/file/replace_spec.rb +1 -3
- data/spec/nuggets/file/sub_spec.rb +1 -3
- data/spec/nuggets/file/which_spec.rb +1 -3
- data/spec/nuggets/hash/at_spec.rb +19 -0
- data/spec/nuggets/hash/deep_fetch_spec.rb +159 -0
- data/spec/nuggets/hash/deep_merge_spec.rb +1 -3
- data/spec/nuggets/hash/in_order_spec.rb +12 -0
- data/spec/nuggets/hash/insert_spec.rb +13 -0
- data/spec/nuggets/hash/nest_spec.rb +1 -3
- data/spec/nuggets/hash/only_spec.rb +29 -0
- data/spec/nuggets/hash/seen_spec.rb +4 -6
- data/spec/nuggets/hash/unroll_spec.rb +2 -4
- data/spec/nuggets/i18n_spec.rb +13 -0
- data/spec/nuggets/integer/factorial_spec.rb +10 -0
- data/spec/nuggets/integer/length_spec.rb +1 -3
- data/spec/nuggets/integer/map_spec.rb +1 -3
- data/spec/nuggets/integer/to_binary_s_spec.rb +19 -0
- data/spec/nuggets/numeric/duration_spec.rb +25 -0
- data/spec/nuggets/numeric/limit_spec.rb +16 -0
- data/spec/nuggets/numeric/signum_spec.rb +16 -0
- data/spec/nuggets/numeric/to_multiple_spec.rb +16 -0
- data/spec/nuggets/object/blank_spec.rb +1 -2
- data/spec/nuggets/object/boolean_spec.rb +1 -3
- data/spec/nuggets/object/msend_spec.rb +1 -3
- data/spec/nuggets/object/silence_spec.rb +7 -4
- data/spec/nuggets/object/singleton_class_spec.rb +11 -4
- data/spec/nuggets/proc/bind_spec.rb +1 -3
- data/spec/nuggets/range/quantile_spec.rb +1 -3
- data/spec/nuggets/string/camelscore_spec.rb +11 -13
- data/spec/nuggets/string/capitalize_first_spec.rb +13 -0
- data/spec/nuggets/string/case_spec.rb +31 -0
- data/spec/nuggets/string/evaluate_spec.rb +1 -3
- data/spec/nuggets/string/msub_spec.rb +20 -0
- data/spec/nuggets/string/nsub_spec.rb +13 -0
- data/spec/nuggets/string/sub_with_md_spec.rb +25 -0
- data/spec/nuggets/string/wc_spec.rb +1 -3
- data/spec/nuggets/string/word_wrap_spec.rb +81 -0
- data/spec/nuggets/string/xor_spec.rb +1 -3
- data/spec/nuggets/uri/content_type_spec.rb +32 -27
- data/spec/nuggets/uri/exist_spec.rb +33 -9
- data/spec/spec_helper.rb +17 -0
- metadata +34 -5
- data/.rspec +0 -1
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'nuggets/string/sub_with_md'
|
2
|
+
|
3
|
+
describe String, 'sub_with_md' do
|
4
|
+
|
5
|
+
let(:s) { 'Foo, Bar - Baz' }
|
6
|
+
|
7
|
+
example {
|
8
|
+
s.gsub(/\w(\w+)(\W*)/) { |m|
|
9
|
+
"#{$1.gsub(/[ao]/, 'X')}#{$2}"
|
10
|
+
}.should == 'XXXrXz'
|
11
|
+
}
|
12
|
+
|
13
|
+
example {
|
14
|
+
s.gsub_with_md(/\w(\w+)(\W*)/) { |md|
|
15
|
+
"#{md[1].gsub(/[ao]/, 'X')}#{md[2]}"
|
16
|
+
}.should == 'XX, Xr - Xz'
|
17
|
+
}
|
18
|
+
|
19
|
+
example {
|
20
|
+
s.gsub_with_md(/\w(\w+)(\W*)/) { |md|
|
21
|
+
"#{md[1].gsub_with_md(/[ao]/) { |md2| md2[0].upcase }}#{md[2]}"
|
22
|
+
}.should == 'OO, Ar - Az'
|
23
|
+
}
|
24
|
+
|
25
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
require 'nuggets/string/word_wrap'
|
2
|
+
|
3
|
+
describe String, 'word_wrap' do
|
4
|
+
|
5
|
+
let(:s) { <<-EOT }
|
6
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam nulla arcu,
|
7
|
+
ullamcorper non, vulputate eget, elementum quis, sapien. Quisque consequat
|
8
|
+
porta enim. Phasellus porta libero et turpis. Ut felis.
|
9
|
+
|
10
|
+
Phasellus eget est a enim rutrum accumsan. Integer nec purus. Maecenas
|
11
|
+
facilisis urna sed arcu. Suspendisse potenti.
|
12
|
+
|
13
|
+
|
14
|
+
Vestibulum lacus metus, faucibus sit amet, mattis non, mollis sed, pede. Aenean
|
15
|
+
vitae sem nec sem euismod sollicitudin. Cras rhoncus.
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
Phasellus condimentum, ante a cursus dictum, lectus ipsum convallis magna, sed
|
20
|
+
tincidunt massa eros vitae ante. Suspendisse nec sem.
|
21
|
+
In hac habitasse platea dictumst. Fusce purus leo, ullamcorper sit amet, luctus
|
22
|
+
in, mollis mollis, enim. In adipiscing erat.
|
23
|
+
EOT
|
24
|
+
|
25
|
+
s60 = <<-EOT
|
26
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
|
27
|
+
Nullam nulla arcu,
|
28
|
+
ullamcorper non, vulputate eget, elementum quis, sapien.
|
29
|
+
Quisque consequat
|
30
|
+
porta enim. Phasellus porta libero et turpis. Ut felis.
|
31
|
+
|
32
|
+
Phasellus eget est a enim rutrum accumsan. Integer nec
|
33
|
+
purus. Maecenas
|
34
|
+
facilisis urna sed arcu. Suspendisse potenti.
|
35
|
+
|
36
|
+
|
37
|
+
Vestibulum lacus metus, faucibus sit amet, mattis non,
|
38
|
+
mollis sed, pede. Aenean
|
39
|
+
vitae sem nec sem euismod sollicitudin. Cras rhoncus.
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
Phasellus condimentum, ante a cursus dictum, lectus ipsum
|
44
|
+
convallis magna, sed
|
45
|
+
tincidunt massa eros vitae ante. Suspendisse nec sem.
|
46
|
+
In hac habitasse platea dictumst. Fusce purus leo,
|
47
|
+
ullamcorper sit amet, luctus
|
48
|
+
in, mollis mollis, enim. In adipiscing erat.
|
49
|
+
EOT
|
50
|
+
|
51
|
+
example {
|
52
|
+
s.word_wrap(60).should == s60
|
53
|
+
}
|
54
|
+
|
55
|
+
example {
|
56
|
+
s.word_wrap!(60); s.should == s60
|
57
|
+
}
|
58
|
+
|
59
|
+
example {
|
60
|
+
s.word_wrap(79).should == <<-EOT
|
61
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam nulla arcu,
|
62
|
+
ullamcorper non, vulputate eget, elementum quis, sapien. Quisque consequat
|
63
|
+
porta enim. Phasellus porta libero et turpis. Ut felis.
|
64
|
+
|
65
|
+
Phasellus eget est a enim rutrum accumsan. Integer nec purus. Maecenas
|
66
|
+
facilisis urna sed arcu. Suspendisse potenti.
|
67
|
+
|
68
|
+
|
69
|
+
Vestibulum lacus metus, faucibus sit amet, mattis non, mollis sed, pede. Aenean
|
70
|
+
vitae sem nec sem euismod sollicitudin. Cras rhoncus.
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
Phasellus condimentum, ante a cursus dictum, lectus ipsum convallis magna, sed
|
75
|
+
tincidunt massa eros vitae ante. Suspendisse nec sem.
|
76
|
+
In hac habitasse platea dictumst. Fusce purus leo, ullamcorper sit amet, luctus
|
77
|
+
in, mollis mollis, enim. In adipiscing erat.
|
78
|
+
EOT
|
79
|
+
}
|
80
|
+
|
81
|
+
end
|
@@ -1,37 +1,42 @@
|
|
1
1
|
require 'nuggets/uri/content_type'
|
2
2
|
|
3
|
-
|
3
|
+
describe_extended URI, Nuggets::URI::ContentTypeMixin, true do
|
4
4
|
|
5
|
-
|
5
|
+
let(:cache) { Nuggets::URI::RedirectMixin::URI_REDIRECT_HTTP_CACHE }
|
6
6
|
|
7
|
-
|
8
|
-
http://www.google.de
|
9
|
-
http://
|
10
|
-
|
11
|
-
example
|
12
|
-
|
7
|
+
{
|
8
|
+
'http://www.google.de' => 'text/html',
|
9
|
+
'http://example.de/misc/' => 'text/html',
|
10
|
+
'http://example.de/misc/ww.png' => 'image/png',
|
11
|
+
'http://example.de/misc/suicide_is_painless.mid' => 'audio/midi',
|
12
|
+
'http://example.de/misc/fugmann/wille_-_fugmann-slides.tar.gz' => 'application/x-gzip',
|
13
|
+
'http://example.de/misc/i_hate_ms.pdf' => 'application/pdf',
|
14
|
+
'http://example.de/bla' => false,
|
15
|
+
'http://blawinter.de' => nil,
|
16
|
+
'htp://www.google.de' => nil,
|
17
|
+
'ftp://example.org' => nil,
|
18
|
+
'www.google.de' => nil
|
19
|
+
}.each { |u, t|
|
20
|
+
example {
|
21
|
+
begin
|
22
|
+
req, res = double(Net::HTTP), double(Net::HTTPResponse)
|
13
23
|
|
14
|
-
|
15
|
-
|
16
|
-
www.google.de
|
17
|
-
http://blawinter.de
|
18
|
-
].each { |u|
|
19
|
-
example { URI.content_type(u).should == nil }
|
20
|
-
}
|
24
|
+
req.stub(:use_ssl=)
|
25
|
+
req.stub(:use_ssl?)
|
21
26
|
|
22
|
-
|
23
|
-
|
24
|
-
].each { |u|
|
25
|
-
example { URI.content_type(u).should == false }
|
26
|
-
}
|
27
|
+
res.stub(:success?).and_return(t)
|
28
|
+
res.stub(:content_type).and_return(t)
|
27
29
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
req.stub(:head).and_return(res)
|
31
|
+
|
32
|
+
cache.update([(uri = URI(u)).host, uri.port] => req)
|
33
|
+
|
34
|
+
URI.content_type(u).should == t
|
35
|
+
cache.size.should == 1
|
36
|
+
ensure
|
37
|
+
cache.clear
|
38
|
+
end
|
39
|
+
}
|
35
40
|
}
|
36
41
|
|
37
42
|
end
|
@@ -1,25 +1,49 @@
|
|
1
1
|
require 'nuggets/uri/exist'
|
2
2
|
|
3
|
-
|
3
|
+
describe_extended URI, Nuggets::URI::ExistMixin, true do
|
4
4
|
|
5
|
-
|
5
|
+
let(:cache) { Nuggets::URI::RedirectMixin::URI_REDIRECT_HTTP_CACHE }
|
6
6
|
|
7
7
|
%w[
|
8
8
|
http://www.google.de
|
9
|
-
http://
|
10
|
-
http://
|
9
|
+
http://example.de
|
10
|
+
http://example.de/bla
|
11
|
+
http://example.de/index.html
|
12
|
+
http://example.de/index.htm
|
13
|
+
http://xuugle.de
|
11
14
|
].each { |u|
|
12
|
-
|
15
|
+
[true, false, nil].each { |s|
|
16
|
+
example {
|
17
|
+
begin
|
18
|
+
req, res = double(Net::HTTP), double(Net::HTTPResponse)
|
19
|
+
|
20
|
+
req.stub(:use_ssl=)
|
21
|
+
req.stub(:use_ssl?)
|
22
|
+
|
23
|
+
res.stub(:success?).and_return(s)
|
24
|
+
|
25
|
+
req.stub(:head).and_return(res)
|
26
|
+
|
27
|
+
cache.update([(uri = URI(u)).host, uri.port] => req)
|
28
|
+
|
29
|
+
URI.exist?(u).should == s
|
30
|
+
cache.size.should == 1
|
31
|
+
ensure
|
32
|
+
cache.clear
|
33
|
+
end
|
34
|
+
}
|
35
|
+
}
|
13
36
|
}
|
14
37
|
|
15
38
|
%w[
|
16
39
|
htp://www.google.de
|
40
|
+
ftp://example.org
|
17
41
|
www.google.de
|
18
|
-
http://xuugle.de
|
19
|
-
http://blackwinter.de/bla
|
20
|
-
http://blackwinter.de/index.htm
|
21
42
|
].each { |u|
|
22
|
-
example {
|
43
|
+
example {
|
44
|
+
URI.exist?(u).should be_nil
|
45
|
+
cache.should be_empty
|
46
|
+
}
|
23
47
|
}
|
24
48
|
|
25
49
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -4,6 +4,10 @@ Float::NAN = 0 / 0.0 unless Float.const_defined?(:NAN)
|
|
4
4
|
Float::INFINITY = 1 / 0.0 unless Float.const_defined?(:INFINITY)
|
5
5
|
|
6
6
|
RSpec.configure { |config|
|
7
|
+
%w[expect mock].each { |what|
|
8
|
+
config.send("#{what}_with", :rspec) { |c| c.syntax = [:should, :expect] }
|
9
|
+
}
|
10
|
+
|
7
11
|
config.include(Module.new {
|
8
12
|
def equal_float(value, precision = 1.0e-14)
|
9
13
|
be_within(precision).of(value)
|
@@ -17,3 +21,16 @@ RSpec.configure { |config|
|
|
17
21
|
end
|
18
22
|
})
|
19
23
|
}
|
24
|
+
|
25
|
+
extend(Module.new {
|
26
|
+
def describe_extended(mod, ext, singleton = false, &block)
|
27
|
+
describe(mod, 'when extended by', ext) {
|
28
|
+
example {
|
29
|
+
klass = singleton ? class << mod; self; end : mod
|
30
|
+
klass.ancestors.should include(ext)
|
31
|
+
}
|
32
|
+
|
33
|
+
class_eval(&block)
|
34
|
+
}
|
35
|
+
end
|
36
|
+
})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-nuggets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|
@@ -89,7 +89,6 @@ extra_rdoc_files:
|
|
89
89
|
- COPYING
|
90
90
|
- ChangeLog
|
91
91
|
files:
|
92
|
-
- ".rspec"
|
93
92
|
- COPYING
|
94
93
|
- ChangeLog
|
95
94
|
- README
|
@@ -156,6 +155,8 @@ files:
|
|
156
155
|
- lib/nuggets/file/which.rb
|
157
156
|
- lib/nuggets/file/which_mixin.rb
|
158
157
|
- lib/nuggets/hash/at.rb
|
158
|
+
- lib/nuggets/hash/deep_fetch.rb
|
159
|
+
- lib/nuggets/hash/deep_fetch_mixin.rb
|
159
160
|
- lib/nuggets/hash/deep_merge.rb
|
160
161
|
- lib/nuggets/hash/deep_merge_mixin.rb
|
161
162
|
- lib/nuggets/hash/idmap.rb
|
@@ -263,18 +264,28 @@ files:
|
|
263
264
|
- lib/nuggets/util/ruby.rb
|
264
265
|
- lib/nuggets/version.rb
|
265
266
|
- spec/nuggets/array/boost_spec.rb
|
267
|
+
- spec/nuggets/array/combination_spec.rb
|
266
268
|
- spec/nuggets/array/correlation_spec.rb
|
269
|
+
- spec/nuggets/array/flatten_once_spec.rb
|
267
270
|
- spec/nuggets/array/flush_spec.rb
|
271
|
+
- spec/nuggets/array/format_spec.rb
|
268
272
|
- spec/nuggets/array/hashify_spec.rb
|
269
273
|
- spec/nuggets/array/histogram_spec.rb
|
274
|
+
- spec/nuggets/array/in_order_spec.rb
|
270
275
|
- spec/nuggets/array/limit_spec.rb
|
271
276
|
- spec/nuggets/array/mean_spec.rb
|
272
277
|
- spec/nuggets/array/median_spec.rb
|
273
278
|
- spec/nuggets/array/mode_spec.rb
|
279
|
+
- spec/nuggets/array/monotone_spec.rb
|
280
|
+
- spec/nuggets/array/only_spec.rb
|
274
281
|
- spec/nuggets/array/regression_spec.rb
|
275
282
|
- spec/nuggets/array/runiq_spec.rb
|
276
283
|
- spec/nuggets/array/standard_deviation_spec.rb
|
284
|
+
- spec/nuggets/array/to_hash_spec.rb
|
277
285
|
- spec/nuggets/array/variance_spec.rb
|
286
|
+
- spec/nuggets/dotted_decimal_spec.rb
|
287
|
+
- spec/nuggets/enumerable/all_any_extended_spec.rb
|
288
|
+
- spec/nuggets/enumerable/minmax_spec.rb
|
278
289
|
- spec/nuggets/env/set_spec.rb
|
279
290
|
- spec/nuggets/env/user_encoding_spec.rb
|
280
291
|
- spec/nuggets/env/user_home_spec.rb
|
@@ -282,12 +293,24 @@ files:
|
|
282
293
|
- spec/nuggets/file/replace_spec.rb
|
283
294
|
- spec/nuggets/file/sub_spec.rb
|
284
295
|
- spec/nuggets/file/which_spec.rb
|
296
|
+
- spec/nuggets/hash/at_spec.rb
|
297
|
+
- spec/nuggets/hash/deep_fetch_spec.rb
|
285
298
|
- spec/nuggets/hash/deep_merge_spec.rb
|
299
|
+
- spec/nuggets/hash/in_order_spec.rb
|
300
|
+
- spec/nuggets/hash/insert_spec.rb
|
286
301
|
- spec/nuggets/hash/nest_spec.rb
|
302
|
+
- spec/nuggets/hash/only_spec.rb
|
287
303
|
- spec/nuggets/hash/seen_spec.rb
|
288
304
|
- spec/nuggets/hash/unroll_spec.rb
|
305
|
+
- spec/nuggets/i18n_spec.rb
|
306
|
+
- spec/nuggets/integer/factorial_spec.rb
|
289
307
|
- spec/nuggets/integer/length_spec.rb
|
290
308
|
- spec/nuggets/integer/map_spec.rb
|
309
|
+
- spec/nuggets/integer/to_binary_s_spec.rb
|
310
|
+
- spec/nuggets/numeric/duration_spec.rb
|
311
|
+
- spec/nuggets/numeric/limit_spec.rb
|
312
|
+
- spec/nuggets/numeric/signum_spec.rb
|
313
|
+
- spec/nuggets/numeric/to_multiple_spec.rb
|
291
314
|
- spec/nuggets/object/blank_spec.rb
|
292
315
|
- spec/nuggets/object/boolean_spec.rb
|
293
316
|
- spec/nuggets/object/msend_spec.rb
|
@@ -296,8 +319,14 @@ files:
|
|
296
319
|
- spec/nuggets/proc/bind_spec.rb
|
297
320
|
- spec/nuggets/range/quantile_spec.rb
|
298
321
|
- spec/nuggets/string/camelscore_spec.rb
|
322
|
+
- spec/nuggets/string/capitalize_first_spec.rb
|
323
|
+
- spec/nuggets/string/case_spec.rb
|
299
324
|
- spec/nuggets/string/evaluate_spec.rb
|
325
|
+
- spec/nuggets/string/msub_spec.rb
|
326
|
+
- spec/nuggets/string/nsub_spec.rb
|
327
|
+
- spec/nuggets/string/sub_with_md_spec.rb
|
300
328
|
- spec/nuggets/string/wc_spec.rb
|
329
|
+
- spec/nuggets/string/word_wrap_spec.rb
|
301
330
|
- spec/nuggets/string/xor_spec.rb
|
302
331
|
- spec/nuggets/uri/content_type_spec.rb
|
303
332
|
- spec/nuggets/uri/exist_spec.rb
|
@@ -309,7 +338,7 @@ metadata: {}
|
|
309
338
|
post_install_message:
|
310
339
|
rdoc_options:
|
311
340
|
- "--title"
|
312
|
-
- ruby-nuggets Application documentation (v0.9.
|
341
|
+
- ruby-nuggets Application documentation (v0.9.9)
|
313
342
|
- "--charset"
|
314
343
|
- UTF-8
|
315
344
|
- "--line-numbers"
|
@@ -330,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
330
359
|
version: '0'
|
331
360
|
requirements: []
|
332
361
|
rubyforge_project:
|
333
|
-
rubygems_version: 2.2.2
|
362
|
+
rubygems_version: 2.2.2.x
|
334
363
|
signing_key:
|
335
364
|
specification_version: 4
|
336
365
|
summary: Some extensions to the Ruby programming language.
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|