ruby-nuggets 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/README +1 -1
  2. data/lib/nuggets/all.rb +4 -4
  3. data/lib/nuggets/all_mixins.rb +4 -4
  4. data/lib/nuggets/array/flatten_once.rb +1 -1
  5. data/lib/nuggets/array/format.rb +3 -3
  6. data/lib/nuggets/array/only.rb +2 -2
  7. data/lib/nuggets/array/rand.rb +1 -1
  8. data/lib/nuggets/array/shuffle.rb +2 -2
  9. data/lib/nuggets/array/standard_deviation_mixin.rb +1 -1
  10. data/lib/nuggets/array/to_hash.rb +4 -4
  11. data/lib/nuggets/enumerable/agrep.rb +5 -5
  12. data/lib/nuggets/enumerable/all_any_extended.rb +10 -10
  13. data/lib/nuggets/enumerable/minmax.rb +2 -2
  14. data/lib/nuggets/env/set_mixin.rb +2 -2
  15. data/lib/nuggets/env/user_encoding_mixin.rb +3 -3
  16. data/lib/nuggets/env/user_home_mixin.rb +1 -1
  17. data/lib/nuggets/file/which_mixin.rb +2 -2
  18. data/lib/nuggets/hash/at.rb +1 -1
  19. data/lib/nuggets/hash/insert.rb +1 -1
  20. data/lib/nuggets/hash/nest_mixin.rb +1 -1
  21. data/lib/nuggets/hash/only.rb +2 -2
  22. data/lib/nuggets/integer/factorial.rb +1 -1
  23. data/lib/nuggets/io/agrep.rb +1 -1
  24. data/lib/nuggets/io/modes.rb +12 -12
  25. data/lib/nuggets/io/null_mixin.rb +1 -1
  26. data/lib/nuggets/net/success.rb +60 -0
  27. data/lib/nuggets/numeric/duration.rb +2 -2
  28. data/lib/nuggets/object/singleton_class_mixin.rb +5 -5
  29. data/lib/nuggets/string/evaluate_mixin.rb +1 -1
  30. data/lib/nuggets/string/msub.rb +5 -5
  31. data/lib/nuggets/string/nsub.rb +1 -1
  32. data/lib/nuggets/string/sub_with_md.rb +2 -2
  33. data/lib/nuggets/string/xor_mixin.rb +1 -1
  34. data/lib/nuggets/uri/content_type_mixin.rb +6 -5
  35. data/lib/nuggets/uri/exist_mixin.rb +12 -5
  36. data/lib/nuggets/util/ansicolor2css.rb +2 -2
  37. data/lib/nuggets/util/cli.rb +12 -12
  38. data/lib/nuggets/util/content_type.rb +9 -9
  39. data/lib/nuggets/util/i18n.rb +2 -2
  40. data/lib/nuggets/util/ruby.rb +29 -29
  41. data/lib/nuggets/version.rb +1 -1
  42. data/lib/nuggets.rb +8 -8
  43. metadata +133 -132
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-nuggets
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 4
10
- version: 0.7.4
9
+ - 5
10
+ version: 0.7.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jens Wille
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-26 00:00:00 Z
18
+ date: 2011-10-21 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Some extensions to the Ruby programming language.
@@ -30,161 +30,162 @@ extra_rdoc_files:
30
30
  - ChangeLog
31
31
  files:
32
32
  - lib/nuggets.rb
33
+ - lib/nuggets/range/quantile_mixin.rb
34
+ - lib/nuggets/range/quantile.rb
35
+ - lib/nuggets/hash/unroll_mixin.rb
36
+ - lib/nuggets/hash/insert.rb
37
+ - lib/nuggets/hash/nest.rb
38
+ - lib/nuggets/hash/deep_merge_mixin.rb
39
+ - lib/nuggets/hash/only.rb
40
+ - lib/nuggets/hash/deep_merge.rb
41
+ - lib/nuggets/hash/at.rb
42
+ - lib/nuggets/hash/in_order.rb
43
+ - lib/nuggets/hash/nest_mixin.rb
44
+ - lib/nuggets/hash/unroll.rb
45
+ - lib/nuggets/env/user_home.rb
46
+ - lib/nuggets/env/user_encoding.rb
47
+ - 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
+ - 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
+ - lib/nuggets/object/boolean.rb
59
+ - lib/nuggets/object/blank.rb
60
+ - lib/nuggets/object/boolean_mixin.rb
61
+ - lib/nuggets/object/metaclass.rb
62
+ - lib/nuggets/object/msend_mixin.rb
63
+ - lib/nuggets/object/singleton_class_mixin.rb
64
+ - lib/nuggets/object/eigenclass.rb
65
+ - lib/nuggets/object/silence.rb
66
+ - lib/nuggets/object/blank_mixin.rb
67
+ - lib/nuggets/version.rb
68
+ - lib/nuggets/statistics_mixins.rb
69
+ - lib/nuggets/file/replace_mixin.rb
70
+ - lib/nuggets/file/which_mixin.rb
71
+ - lib/nuggets/file/which.rb
72
+ - lib/nuggets/file/replace.rb
73
+ - lib/nuggets/file/sub_mixin.rb
74
+ - lib/nuggets/file/sub.rb
33
75
  - lib/nuggets/integer/map_mixin.rb
34
- - lib/nuggets/integer/map.rb
35
76
  - lib/nuggets/integer/to_binary_s.rb
36
- - lib/nuggets/integer/factorial.rb
37
77
  - lib/nuggets/integer/length_mixin.rb
38
78
  - lib/nuggets/integer/length.rb
39
- - lib/nuggets/util/added_methods/init.rb
40
- - lib/nuggets/util/i18n.rb
41
- - lib/nuggets/util/ruby.rb
42
- - lib/nuggets/util/dotted_decimal.rb
43
- - lib/nuggets/util/cli.rb
44
- - lib/nuggets/util/content_type.rb
45
- - lib/nuggets/util/ansicolor2css.rb
46
- - lib/nuggets/util/added_methods.rb
79
+ - lib/nuggets/integer/map.rb
80
+ - lib/nuggets/integer/factorial.rb
81
+ - lib/nuggets/tempfile/open.rb
82
+ - lib/nuggets/string/word_wrap.rb
83
+ - lib/nuggets/string/capitalize_first.rb
84
+ - lib/nuggets/string/wc.rb
85
+ - lib/nuggets/string/evaluate.rb
86
+ - lib/nuggets/string/msub.rb
87
+ - lib/nuggets/string/nsub.rb
88
+ - lib/nuggets/string/xor.rb
89
+ - lib/nuggets/string/wc_mixin.rb
90
+ - lib/nuggets/string/case.rb
91
+ - lib/nuggets/string/xor_mixin.rb
92
+ - lib/nuggets/string/evaluate_mixin.rb
93
+ - lib/nuggets/string/sub_with_md.rb
94
+ - lib/nuggets/all.rb
95
+ - lib/nuggets/array/correlation.rb
47
96
  - lib/nuggets/array/shuffle.rb
48
- - lib/nuggets/array/mean.rb
49
- - lib/nuggets/array/variance_mixin.rb
50
- - lib/nuggets/array/mode_mixin.rb
97
+ - lib/nuggets/array/regression_mixin.rb
98
+ - lib/nuggets/array/limit.rb
99
+ - lib/nuggets/array/runiq.rb
100
+ - lib/nuggets/array/variance.rb
101
+ - lib/nuggets/array/histogram.rb
102
+ - lib/nuggets/array/standard_deviation_mixin.rb
51
103
  - lib/nuggets/array/median.rb
52
- - lib/nuggets/array/format.rb
53
- - lib/nuggets/array/mode.rb
54
104
  - lib/nuggets/array/to_hash.rb
55
- - lib/nuggets/array/rand.rb
56
- - lib/nuggets/array/median_mixin.rb
57
- - lib/nuggets/array/runiq.rb
58
- - lib/nuggets/array/mean_mixin.rb
59
- - lib/nuggets/array/regression_mixin.rb
60
- - lib/nuggets/array/monotone.rb
61
105
  - lib/nuggets/array/combination.rb
62
- - lib/nuggets/array/flatten_once.rb
63
- - lib/nuggets/array/standard_deviation_mixin.rb
64
- - lib/nuggets/array/histogram_mixin.rb
65
- - lib/nuggets/array/variance.rb
66
- - lib/nuggets/array/limit.rb
67
- - lib/nuggets/array/correlation.rb
106
+ - lib/nuggets/array/monotone.rb
107
+ - lib/nuggets/array/mode.rb
108
+ - lib/nuggets/array/variance_mixin.rb
109
+ - lib/nuggets/array/rand.rb
68
110
  - lib/nuggets/array/standard_deviation.rb
69
- - lib/nuggets/array/histogram.rb
70
111
  - lib/nuggets/array/correlation_mixin.rb
112
+ - lib/nuggets/array/only.rb
113
+ - lib/nuggets/array/mean_mixin.rb
114
+ - lib/nuggets/array/regression.rb
115
+ - lib/nuggets/array/mode_mixin.rb
71
116
  - lib/nuggets/array/limit_mixin.rb
117
+ - lib/nuggets/array/flatten_once.rb
72
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
73
123
  - lib/nuggets/array/runiq_mixin.rb
74
- - lib/nuggets/array/regression.rb
75
- - lib/nuggets/array/only.rb
76
- - lib/nuggets/proc/bind_mixin.rb
77
- - lib/nuggets/proc/bind.rb
78
- - lib/nuggets/statistics.rb
79
- - lib/nuggets/hash/nest_mixin.rb
80
- - lib/nuggets/hash/insert.rb
81
- - lib/nuggets/hash/unroll.rb
82
- - lib/nuggets/hash/unroll_mixin.rb
83
- - lib/nuggets/hash/deep_merge_mixin.rb
84
- - lib/nuggets/hash/deep_merge.rb
85
- - lib/nuggets/hash/nest.rb
86
- - lib/nuggets/hash/at.rb
87
- - lib/nuggets/hash/in_order.rb
88
- - lib/nuggets/hash/only.rb
89
- - lib/nuggets/enumerable/all_any_extended.rb
90
- - lib/nuggets/enumerable/minmax.rb
91
- - lib/nuggets/enumerable/agrep.rb
92
- - lib/nuggets/tempfile/open.rb
93
- - lib/nuggets/file/replace.rb
94
- - lib/nuggets/file/which.rb
95
- - lib/nuggets/file/sub.rb
96
- - lib/nuggets/file/which_mixin.rb
97
- - lib/nuggets/file/replace_mixin.rb
98
- - lib/nuggets/file/sub_mixin.rb
99
- - lib/nuggets/numeric/between.rb
100
- - lib/nuggets/numeric/signum.rb
101
124
  - lib/nuggets/numeric/limit.rb
125
+ - lib/nuggets/numeric/between.rb
102
126
  - lib/nuggets/numeric/duration.rb
103
127
  - lib/nuggets/numeric/to_multiple.rb
104
- - lib/nuggets/string/xor_mixin.rb
105
- - lib/nuggets/string/capitalize_first.rb
106
- - lib/nuggets/string/evaluate_mixin.rb
107
- - lib/nuggets/string/evaluate.rb
108
- - lib/nuggets/string/wc_mixin.rb
109
- - lib/nuggets/string/nsub.rb
110
- - lib/nuggets/string/xor.rb
111
- - lib/nuggets/string/case.rb
112
- - lib/nuggets/string/msub.rb
113
- - lib/nuggets/string/wc.rb
114
- - lib/nuggets/string/sub_with_md.rb
115
- - lib/nuggets/string/word_wrap.rb
116
- - lib/nuggets/io/agrep.rb
117
- - lib/nuggets/io/null.rb
118
- - lib/nuggets/io/null_mixin.rb
119
- - lib/nuggets/io/modes.rb
120
- - lib/nuggets/env/user_home_mixin.rb
121
- - lib/nuggets/env/set.rb
122
- - lib/nuggets/env/user_encoding_mixin.rb
123
- - lib/nuggets/env/set_mixin.rb
124
- - lib/nuggets/env/user_home.rb
125
- - lib/nuggets/env/user_encoding.rb
128
+ - lib/nuggets/numeric/signum.rb
126
129
  - lib/nuggets/all_mixins.rb
130
+ - lib/nuggets/util/ansicolor2css.rb
131
+ - lib/nuggets/util/content_type.rb
132
+ - lib/nuggets/util/dotted_decimal.rb
133
+ - lib/nuggets/util/ruby.rb
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/proc/bind_mixin.rb
139
+ - lib/nuggets/proc/bind.rb
140
+ - lib/nuggets/statistics.rb
141
+ - lib/nuggets/io/modes.rb
142
+ - lib/nuggets/io/null_mixin.rb
143
+ - lib/nuggets/io/null.rb
144
+ - lib/nuggets/io/agrep.rb
145
+ - lib/nuggets/uri/content_type.rb
127
146
  - lib/nuggets/uri/exist_mixin.rb
128
147
  - lib/nuggets/uri/content_type_mixin.rb
129
148
  - lib/nuggets/uri/exist.rb
130
- - lib/nuggets/uri/content_type.rb
131
- - lib/nuggets/range/quantile_mixin.rb
132
- - lib/nuggets/range/quantile.rb
133
- - lib/nuggets/all.rb
134
- - lib/nuggets/version.rb
135
- - lib/nuggets/statistics_mixins.rb
136
- - lib/nuggets/object/virtual_class.rb
137
- - lib/nuggets/object/uniclass.rb
138
- - lib/nuggets/object/blank.rb
139
- - lib/nuggets/object/msend.rb
140
- - lib/nuggets/object/singleton_class.rb
141
- - lib/nuggets/object/boolean_mixin.rb
142
- - lib/nuggets/object/silence_mixin.rb
143
- - lib/nuggets/object/boolean.rb
144
- - lib/nuggets/object/ghost_class.rb
145
- - lib/nuggets/object/silence.rb
146
- - lib/nuggets/object/msend_mixin.rb
147
- - lib/nuggets/object/blank_mixin.rb
148
- - lib/nuggets/object/singleton_class_mixin.rb
149
- - lib/nuggets/object/eigenclass.rb
150
- - lib/nuggets/object/metaclass.rb
151
- - README
149
+ - lib/nuggets/enumerable/all_any_extended.rb
150
+ - lib/nuggets/enumerable/minmax.rb
151
+ - lib/nuggets/enumerable/agrep.rb
152
152
  - ChangeLog
153
- - Rakefile
154
153
  - COPYING
154
+ - README
155
+ - Rakefile
156
+ - spec/nuggets/range/quantile_spec.rb
157
+ - spec/nuggets/hash/nest_spec.rb
158
+ - spec/nuggets/hash/unroll_spec.rb
159
+ - spec/nuggets/hash/deep_merge_spec.rb
160
+ - spec/nuggets/env/set_spec.rb
161
+ - spec/nuggets/env/user_home_spec.rb
162
+ - spec/nuggets/env/user_encoding_spec.rb
163
+ - spec/nuggets/object/silence_spec.rb
164
+ - spec/nuggets/object/singleton_class_spec.rb
165
+ - spec/nuggets/object/msend_spec.rb
166
+ - spec/nuggets/object/blank_spec.rb
167
+ - spec/nuggets/object/boolean_spec.rb
168
+ - spec/nuggets/file/sub_spec.rb
169
+ - spec/nuggets/file/replace_spec.rb
170
+ - spec/nuggets/file/which_spec.rb
155
171
  - spec/nuggets/integer/map_spec.rb
156
172
  - spec/nuggets/integer/length_spec.rb
157
- - spec/nuggets/array/mode_spec.rb
158
- - spec/nuggets/array/variance_spec.rb
173
+ - spec/nuggets/string/evaluate_spec.rb
174
+ - spec/nuggets/string/xor_spec.rb
175
+ - spec/nuggets/string/wc_spec.rb
176
+ - spec/nuggets/array/regression_spec.rb
177
+ - spec/nuggets/array/limit_spec.rb
159
178
  - spec/nuggets/array/correlation_spec.rb
160
- - spec/nuggets/array/runiq_spec.rb
179
+ - spec/nuggets/array/standard_deviation_spec.rb
180
+ - spec/nuggets/array/mode_spec.rb
161
181
  - spec/nuggets/array/histogram_spec.rb
162
- - spec/nuggets/array/regression_spec.rb
163
182
  - spec/nuggets/array/median_spec.rb
164
183
  - spec/nuggets/array/mean_spec.rb
165
- - spec/nuggets/array/limit_spec.rb
166
- - spec/nuggets/array/standard_deviation_spec.rb
184
+ - spec/nuggets/array/variance_spec.rb
185
+ - spec/nuggets/array/runiq_spec.rb
167
186
  - spec/nuggets/proc/bind_spec.rb
168
- - spec/nuggets/hash/unroll_spec.rb
169
- - spec/nuggets/hash/nest_spec.rb
170
- - spec/nuggets/hash/deep_merge_spec.rb
171
- - spec/nuggets/file/which_spec.rb
172
- - spec/nuggets/file/replace_spec.rb
173
- - spec/nuggets/file/sub_spec.rb
174
- - spec/nuggets/string/evaluate_spec.rb
175
- - spec/nuggets/string/xor_spec.rb
176
- - spec/nuggets/string/wc_spec.rb
177
- - spec/nuggets/env/user_encoding_spec.rb
178
- - spec/nuggets/env/user_home_spec.rb
179
- - spec/nuggets/env/set_spec.rb
180
187
  - spec/nuggets/uri/content_type_spec.rb
181
188
  - spec/nuggets/uri/exist_spec.rb
182
- - spec/nuggets/range/quantile_spec.rb
183
- - spec/nuggets/object/singleton_class_spec.rb
184
- - spec/nuggets/object/boolean_spec.rb
185
- - spec/nuggets/object/msend_spec.rb
186
- - spec/nuggets/object/silence_spec.rb
187
- - spec/nuggets/object/blank_spec.rb
188
189
  - spec/spec_helper.rb
189
190
  - .rspec
190
191
  homepage: http://prometheus.rubyforge.org/ruby-nuggets
@@ -192,13 +193,13 @@ licenses: []
192
193
 
193
194
  post_install_message:
194
195
  rdoc_options:
196
+ - --main
197
+ - README
195
198
  - --all
196
199
  - --charset
197
200
  - UTF-8
198
- - --main
199
- - README
200
201
  - --title
201
- - ruby-nuggets Application documentation (v0.7.4)
202
+ - ruby-nuggets Application documentation (v0.7.5)
202
203
  - --line-numbers
203
204
  require_paths:
204
205
  - lib
@@ -223,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
224
  requirements: []
224
225
 
225
226
  rubyforge_project: prometheus
226
- rubygems_version: 1.8.6
227
+ rubygems_version: 1.8.11
227
228
  signing_key:
228
229
  specification_version: 3
229
230
  summary: Some extensions to the Ruby programming language.