sixarm_ruby_ramp 4.2.3 → 4.2.4

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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/Rakefile +3 -2
  4. data/lib/sixarm_ruby_ramp/array/join.rb +2 -0
  5. data/lib/sixarm_ruby_ramp/enumerable/each.rb +149 -0
  6. data/lib/sixarm_ruby_ramp/integer/rbit.rb +2 -0
  7. data/lib/sixarm_ruby_ramp/integer.rb +7 -4
  8. data/lib/sixarm_ruby_ramp/string.rb +1 -1
  9. data/lib/sixarm_ruby_ramp.rb +1 -1
  10. data/test/sixarm_ruby_ramp_test/array/join_test.rb +1 -1
  11. data/test/sixarm_ruby_ramp_test/array/shuffle_test.rb +1 -1
  12. data/test/sixarm_ruby_ramp_test/array_test.rb +2 -3
  13. data/test/sixarm_ruby_ramp_test/class_test.rb +2 -4
  14. data/test/sixarm_ruby_ramp_test/csv_test.rb +3 -5
  15. data/test/sixarm_ruby_ramp_test/date_test.rb +13 -15
  16. data/test/sixarm_ruby_ramp_test/enumerable/each_test.rb +337 -0
  17. data/test/sixarm_ruby_ramp_test/enumerable/map_test.rb +1 -1
  18. data/test/sixarm_ruby_ramp_test/enumerable/nitems_test.rb +1 -1
  19. data/test/sixarm_ruby_ramp_test/enumerable/select_test.rb +1 -1
  20. data/test/sixarm_ruby_ramp_test/enumerable_test.rb +2 -4
  21. data/test/sixarm_ruby_ramp_test/file_test.rb +4 -6
  22. data/test/sixarm_ruby_ramp_test/fixnum_test.rb +2 -4
  23. data/test/sixarm_ruby_ramp_test/hash_test.rb +2 -2
  24. data/test/sixarm_ruby_ramp_test/integer/rbit_test.rb +1 -1
  25. data/test/sixarm_ruby_ramp_test/integer_test.rb +4 -5
  26. data/test/sixarm_ruby_ramp_test/io_test.rb +2 -3
  27. data/test/sixarm_ruby_ramp_test/kernel_test.rb +5 -6
  28. data/test/sixarm_ruby_ramp_test/math_test.rb +2 -3
  29. data/test/sixarm_ruby_ramp_test/nil_test.rb +2 -3
  30. data/test/sixarm_ruby_ramp_test/numeric_test.rb +2 -2
  31. data/test/sixarm_ruby_ramp_test/object_test.rb +2 -3
  32. data/test/sixarm_ruby_ramp_test/pairable_test.rb +2 -2
  33. data/test/sixarm_ruby_ramp_test/process_test.rb +2 -2
  34. data/test/sixarm_ruby_ramp_test/string_test.rb +2 -27
  35. data/test/sixarm_ruby_ramp_test/symbol_test.rb +2 -16
  36. data/test/sixarm_ruby_ramp_test/time_test.rb +3 -4
  37. data/test/sixarm_ruby_ramp_test/yaml_test.rb +2 -6
  38. data/test/sixarm_ruby_ramp_test.rb +5 -33
  39. data.tar.gz.sig +0 -0
  40. metadata +85 -11
  41. metadata.gz.sig +0 -0
  42. data/.gemtest +0 -0
  43. data/CHANGES.md +0 -24
  44. data/CONTRIBUTING.md +0 -28
  45. data/LICENSE.md +0 -28
  46. data/README.md +0 -249
  47. data/VERSION +0 -1
  48. data/lib/sixarm_ruby_ramp/xml.rb +0 -0
  49. data/test/sixarm_ruby_ramp_test/xml_test.rb +0 -10
@@ -1,27 +1,13 @@
1
1
  # -*- coding: utf-8 -*-
2
- require "minitest/autorun"
3
- require "sixarm_ruby_ramp"
4
-
2
+ require "sixarm_ruby_ramp_test"
3
+ require "sixarm_ruby_ramp/symbol"
5
4
 
6
5
  class SymbolTest < Minitest::Test
7
6
 
8
-
9
7
  def test_comparable
10
8
  assert_equal(-1,:foo<=>:goo)
11
9
  assert_equal( 0,:foo<=>:foo)
12
10
  assert_equal( 1,:goo<=>:foo)
13
11
  end
14
12
 
15
-
16
13
  end
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
- require "minitest/autorun"
3
- require "sixarm_ruby_ramp"
2
+ require "sixarm_ruby_ramp_test"
3
+ require "sixarm_ruby_ramp/time"
4
4
 
5
5
  class TimeTest < Minitest::Test
6
6
 
@@ -24,6 +24,5 @@ class TimeTest < Minitest::Test
24
24
  assert(t=~/^\d\d\d\d\d\d\d\d\d\d\d\d\d\d$/,t)
25
25
  end
26
26
 
27
-
28
- end
29
27
 
28
+ end
@@ -1,10 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
- require "minitest/autorun"
3
- Minitest::Test ||= MiniTest::Unit::TestCase
4
- require "simplecov"
5
- SimpleCov.start
6
-
7
- require "sixarm_ruby_ramp"
2
+ require "sixarm_ruby_ramp_test"
3
+ require "sixarm_ruby_ramp/yaml"
8
4
 
9
5
  class YAMLTest < Minitest::Test
10
6
 
@@ -1,38 +1,10 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  require "minitest/autorun"
3
- Minitest::Test ||= MiniTest::Unit::TestCase
4
3
  require "simplecov"
4
+ require "coveralls"
5
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
6
+ SimpleCov::Formatter::HTMLFormatter,
7
+ Coveralls::SimpleCov::Formatter
8
+ ]
5
9
  SimpleCov.start
6
10
 
7
- [
8
- 'array',
9
- 'array/join',
10
- 'array/shuffle',
11
- 'class',
12
- 'csv',
13
- 'date',
14
- 'enumerable',
15
- 'enumerable/map',
16
- 'enumerable/nitems',
17
- 'enumerable/select',
18
- 'file',
19
- 'fixnum',
20
- 'hash',
21
- 'integer',
22
- 'integer/rbit',
23
- 'io',
24
- 'kernel',
25
- 'math',
26
- 'nil',
27
- 'numeric',
28
- 'object',
29
- 'pairable',
30
- 'process',
31
- 'string',
32
- 'symbol',
33
- 'time',
34
- 'xml',
35
- 'yaml'
36
- ].map{|x|
37
- require "sixarm_ruby_ramp_test/#{x}_test.rb"
38
- }
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sixarm_ruby_ramp
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.3
4
+ version: 4.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - SixArm
@@ -44,7 +44,7 @@ cert_chain:
44
44
  2AC9FOGkybW6DJEFSFFMlNk0IILsa/gNp8ufGuTVLWF9FUUdMNK+TMbghnifT8/1
45
45
  n+ES/gQPOnvmVkLDGw==
46
46
  -----END CERTIFICATE-----
47
- date: 2015-07-08 00:00:00.000000000 Z
47
+ date: 2015-07-19 00:00:00.000000000 Z
48
48
  dependencies:
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: sixarm_ruby_rexml
@@ -106,6 +106,86 @@ dependencies:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: 2.1.0
109
+ - !ruby/object:Gem::Dependency
110
+ name: minitest
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: 5.7.0
116
+ - - "<"
117
+ - !ruby/object:Gem::Version
118
+ version: '6'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 5.7.0
126
+ - - "<"
127
+ - !ruby/object:Gem::Version
128
+ version: '6'
129
+ - !ruby/object:Gem::Dependency
130
+ name: rake
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">"
134
+ - !ruby/object:Gem::Version
135
+ version: 10.4.2
136
+ - - "<"
137
+ - !ruby/object:Gem::Version
138
+ version: '11'
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">"
144
+ - !ruby/object:Gem::Version
145
+ version: 10.4.2
146
+ - - "<"
147
+ - !ruby/object:Gem::Version
148
+ version: '11'
149
+ - !ruby/object:Gem::Dependency
150
+ name: simplecov
151
+ requirement: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: 0.10.0
156
+ - - "<"
157
+ - !ruby/object:Gem::Version
158
+ version: '2'
159
+ type: :development
160
+ prerelease: false
161
+ version_requirements: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: 0.10.0
166
+ - - "<"
167
+ - !ruby/object:Gem::Version
168
+ version: '2'
169
+ - !ruby/object:Gem::Dependency
170
+ name: coveralls
171
+ requirement: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ version: 0.8.2
176
+ - - "<"
177
+ - !ruby/object:Gem::Version
178
+ version: '2'
179
+ type: :development
180
+ prerelease: false
181
+ version_requirements: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ version: 0.8.2
186
+ - - "<"
187
+ - !ruby/object:Gem::Version
188
+ version: '2'
109
189
  description: Adds extensions to Array, Date, Enumerable, File, Hash, IO, String, Time,
110
190
  etc.
111
191
  email: sixarm@sixarm.com
@@ -113,13 +193,7 @@ executables: []
113
193
  extensions: []
114
194
  extra_rdoc_files: []
115
195
  files:
116
- - ".gemtest"
117
- - CHANGES.md
118
- - CONTRIBUTING.md
119
- - LICENSE.md
120
- - README.md
121
196
  - Rakefile
122
- - VERSION
123
197
  - lib/sixarm_ruby_ramp.rb
124
198
  - lib/sixarm_ruby_ramp/array.rb
125
199
  - lib/sixarm_ruby_ramp/array/join.rb
@@ -128,6 +202,7 @@ files:
128
202
  - lib/sixarm_ruby_ramp/csv.rb
129
203
  - lib/sixarm_ruby_ramp/date.rb
130
204
  - lib/sixarm_ruby_ramp/enumerable.rb
205
+ - lib/sixarm_ruby_ramp/enumerable/each.rb
131
206
  - lib/sixarm_ruby_ramp/enumerable/map.rb
132
207
  - lib/sixarm_ruby_ramp/enumerable/nitems.rb
133
208
  - lib/sixarm_ruby_ramp/enumerable/select.rb
@@ -147,7 +222,6 @@ files:
147
222
  - lib/sixarm_ruby_ramp/string.rb
148
223
  - lib/sixarm_ruby_ramp/symbol.rb
149
224
  - lib/sixarm_ruby_ramp/time.rb
150
- - lib/sixarm_ruby_ramp/xml.rb
151
225
  - lib/sixarm_ruby_ramp/yaml.rb
152
226
  - test/sixarm_ruby_ramp_test.rb
153
227
  - test/sixarm_ruby_ramp_test/array/join_test.rb
@@ -156,6 +230,7 @@ files:
156
230
  - test/sixarm_ruby_ramp_test/class_test.rb
157
231
  - test/sixarm_ruby_ramp_test/csv_test.rb
158
232
  - test/sixarm_ruby_ramp_test/date_test.rb
233
+ - test/sixarm_ruby_ramp_test/enumerable/each_test.rb
159
234
  - test/sixarm_ruby_ramp_test/enumerable/map_test.rb
160
235
  - test/sixarm_ruby_ramp_test/enumerable/nitems_test.rb
161
236
  - test/sixarm_ruby_ramp_test/enumerable/select_test.rb
@@ -177,7 +252,6 @@ files:
177
252
  - test/sixarm_ruby_ramp_test/string_test.rb
178
253
  - test/sixarm_ruby_ramp_test/symbol_test.rb
179
254
  - test/sixarm_ruby_ramp_test/time_test.rb
180
- - test/sixarm_ruby_ramp_test/xml_test.rb
181
255
  - test/sixarm_ruby_ramp_test/yaml_test.rb
182
256
  homepage: http://sixarm.com/
183
257
  licenses:
@@ -216,6 +290,7 @@ test_files:
216
290
  - test/sixarm_ruby_ramp_test/csv_test.rb
217
291
  - test/sixarm_ruby_ramp_test/date_test.rb
218
292
  - test/sixarm_ruby_ramp_test/enumerable_test.rb
293
+ - test/sixarm_ruby_ramp_test/enumerable/each_test.rb
219
294
  - test/sixarm_ruby_ramp_test/enumerable/map_test.rb
220
295
  - test/sixarm_ruby_ramp_test/enumerable/nitems_test.rb
221
296
  - test/sixarm_ruby_ramp_test/enumerable/select_test.rb
@@ -235,7 +310,6 @@ test_files:
235
310
  - test/sixarm_ruby_ramp_test/string_test.rb
236
311
  - test/sixarm_ruby_ramp_test/symbol_test.rb
237
312
  - test/sixarm_ruby_ramp_test/time_test.rb
238
- - test/sixarm_ruby_ramp_test/xml_test.rb
239
313
  - test/sixarm_ruby_ramp_test/yaml_test.rb
240
314
  - test/sixarm_ruby_ramp_test/io_test.txt
241
315
  has_rdoc: true
metadata.gz.sig CHANGED
Binary file
data/.gemtest DELETED
File without changes
data/CHANGES.md DELETED
@@ -1,24 +0,0 @@
1
- # Changes
2
-
3
- * 2015-07-07 4.2.3 Update gemspec to use file manifest
4
- * 2015-03-14 4.2.1 Conditionally load `Array#shuffle*`
5
- * 2015-03-14 4.2.0 Add `Integer#rbit`
6
- * 2015-01-13 4.1.0 Fix Enumerable `to_h` and add `to_h_merge`
7
- * 2015-01-13 4.0.1 Fix for Process.ps keys
8
- * 2014-12-17 4.0.0 Add `Pairable` methods; change semantics of `Hash#map_pair`; change `to_h` for Ruby 2.2.0
9
- * 2013-08-19 3.0.1 Update for Code Climate, Travis CI, gem dependencies
10
- * 2013-08-18 3.0.0 Update to Ruby 2
11
- * 2012-09-01 2.1.7 Add Numeric#floor_precision
12
- * 2012-03-14 2.1.6 Update docs, tests
13
- * 2.1.6 Refactor XML#strip* methods to new sixarm_ruby_xml_strip gem
14
- * 2.1.5 Refactor XML#load* methods to new sixarm_ruby_xml_load gem
15
- * 2.1.4 Refactor REXML extensions to new sixarm_ruby_rexml gem
16
- * 2.1.3 Remove dependency on sixarm_ruby_array_slice
17
- * 2.1.2 Refactor Array#slices and #divvy to sixarm_ruby_array_slice gem with better method names
18
- * 2.1.0 Upgrades for Ruby 1.9.3; better README, new CHANGELOG, less YAML, etc.
19
- * 2.0.x Upgrades for Ruby 1.9.2; add methods; lift some methods to their own gems
20
- * 1.8.x 100% rcov coverage; add methods
21
- * 1.7.x Enable gemcutter; add methods; remove sqlite dependency
22
- * 1.6.x Upgrades for Ruby 1.9.1; improve structure; add methods
23
- * 1.5.0 Combined all Ruby extension files into one gem
24
- * 1.0.0 Original
data/CONTRIBUTING.md DELETED
@@ -1,28 +0,0 @@
1
- # Contributing
2
-
3
- Thank you for contributing!
4
-
5
- If you would like to contribute a donation, an easy way is to use PayPal to sixarm@sixarm.com.
6
-
7
- If you would like to contribute help, the next section is for you.
8
-
9
-
10
- ## Contributing to the source
11
-
12
- We love pull requests for improvments to the source code and documentation.
13
-
14
- There are three easy steps:
15
-
16
- 1. Fork the repo.
17
-
18
- * Before you do any work please run our existing tests to make sure the code runs cleanly.
19
-
20
- 2. Work as you like.
21
-
22
- * Please create tests. This helps us know that all your code runs cleanly.
23
-
24
- 3. Push to your fork and submit a pull request.
25
-
26
- * We'll take a look as soon as we can; this is typically within a business day.
27
-
28
- Thank you again!
data/LICENSE.md DELETED
@@ -1,28 +0,0 @@
1
- # License
2
-
3
- You may choose any of these open source licenses:
4
-
5
- * Apache License
6
- * BSD License
7
- * CreativeCommons License, Non-commercial Share Alike
8
- * GNU Affero General Public License (AGPL)
9
- * GNU General Public License Version (GPL)
10
- * GNU Lesser General Public License (LGPL)
11
- * MIT License
12
- * Perl Artistic License
13
- * Ruby License
14
-
15
- The software is provided "as is", without warranty of any kind,
16
- express or implied, including but not limited to the warranties of
17
- merchantability, fitness for a particular purpose and noninfringement.
18
-
19
- In no event shall the authors or copyright holders be liable for any
20
- claim, damages or other liability, whether in an action of contract,
21
- tort or otherwise, arising from, out of or in connection with the
22
- software or the use or other dealings in the software.
23
-
24
- This license is for the included software that is created by SixArm.
25
- Some of the included software may have its own licenses, copyrights,
26
- authors, etc. and these may take precedence over the SixArm license.
27
-
28
- Copyright (c) Joel Parker Henderson
data/README.md DELETED
@@ -1,249 +0,0 @@
1
- # SixArm.com » Ruby » <br> Ramp is a toolkit of Ruby extensions
2
-
3
- [![Code Climate](https://codeclimate.com/github/SixArm/sixarm_ruby_ramp.png)](https://codeclimate.com/github/SixArm/sixarm_ruby_ramp)
4
- [![Build Status](https://travis-ci.org/SixArm/sixarm_ruby_ramp.png)](https://travis-ci.org/SixArm/sixarm_ruby_ramp)
5
-
6
- * Doc: <http://sixarm.com/sixarm_ruby_ramp/doc>
7
- * Gem: <http://rubygems.org/gems/sixarm_ruby_ramp>
8
- * Repo: <http://github.com/sixarm/sixarm_ruby_ramp>
9
- * Email: Joel Parker Henderson, <joel@sixarm.com>
10
-
11
-
12
- ## Introduction
13
-
14
- Ramp is a library of extensions to Ruby base classes.
15
-
16
- We extend Array, Date, Enumerable, Hash, Kernel, Numeric, Object, Process, String, Time, and YAML.
17
-
18
- For docs go to <http://sixarm.com/sixarm_ruby_ramp/doc>
19
-
20
- Want to help? We're happy to get pull requests.
21
-
22
-
23
- ## Install quickstart
24
-
25
- Install:
26
-
27
- gem install sixarm_ruby_ramp
28
-
29
- Bundler:
30
-
31
- gem "sixarm_ruby_ramp", ">=4.2.2", "<5"
32
-
33
- Require:
34
-
35
- require "sixarm_ruby_ramp"
36
-
37
-
38
- ## Install with security (optional)
39
-
40
- To enable high security for all our gems:
41
-
42
- wget http://sixarm.com/sixarm.pem
43
- gem cert --add sixarm.pem
44
- gem sources --add http://sixarm.com
45
-
46
- To install with high security:
47
-
48
- gem install sixarm_ruby_ramp --trust-policy HighSecurity
49
-
50
-
51
- ## Array
52
-
53
- * car, cdr: aka first, rest (see shifted)
54
- * choice, choices: one or more random elements from an array
55
- * cross: return the cross pairings of an array with another array
56
- * divvy: divides an array, like a pie, into a specified number of slices (deprecated - see method rdoc)
57
- * onto: return a hash that maps an array's keys on to another array's values
58
- * rotate: moves the first element of an array to the end
59
- * rest: return the rest of the items of the array (aka cdr, aka shifted)
60
- * shifted, shifted!: return an array with the first n items shifted (aka cdr, aka rest)
61
- * shuffle, shuffle!: randomly sort an array efficiently; each of these methods are loaded only if needed (Ruby 1.8.7+ already defines shuffle)
62
- * slices: divide an array into specified number of equal size sub-arrays (deprecated - see method rdoc)
63
- * to_csv: join a multidimensional array into a string in CSV (Comma Separated Values), with each subarray becoming one 'line' in the output; typically for viewing in a spreadsheet such as Excel.
64
- * to_tdf: join a multidimensional array into a string in TDF (Tab Delimited Format); this is an alias for #to_tsv
65
- * to_tsv: join a multidimensional array into a string in TSV (Tab Separated Values), with each subarray becoming one 'line' in the output; typically for viewing in a spreadsheet such as Excel.
66
- * union: builds an array containing each of the unique elements of sub-arrays ([[1,2,3,4],[2,3,4,5],[3,4,5,6]].union => [1,2,3,4,5,6])
67
-
68
-
69
- ### Array join
70
-
71
- * join: enhances #join with optional prefix, suffix, and infix.
72
- * join_prefix_suffix: join with a prefix and suffix.
73
- * join_prefix_suffix_infix: join with a prefix, suffix, and infix.
74
-
75
-
76
- ## Class
77
-
78
- * publicize_methods: make all methods public for a block, e.g. to unit test private methods
79
-
80
-
81
- ## CSV
82
-
83
- * http_headers: provides web file download headers for text/csv content type and disposition.
84
-
85
-
86
- ## Date
87
-
88
- * age_days, age_years
89
- * between: a random date between two specified dates
90
- * to_sql: date as a string formatted as expected for MySQL
91
- * weekday?, weekend?: is date a weekday or on the weekend
92
-
93
-
94
- ## Enumerable
95
-
96
- * cartesian_product: return an array of all possible ordered tuples from arrays.
97
- * hash_by: convert the object to a hash by mapping each item to a key=>value pair.
98
- * index_by: convert the object to a hash by mapping each item to a key=>item pair.
99
- * join: forwards to self.to_a.join
100
- * to_h: convert the object to a hash by mapping each item to a key=>value pair.
101
- * to_h_merge: convert the object to a hash by mapping each item to a key=>value pair, merging any duplicate keys.
102
- * power_set: return an array with all subsets of the enum's elements
103
-
104
-
105
- ### Enumerable map
106
-
107
- * map_id: return the id of an Enumerable object; *requires* that the object respond to an 'id' message
108
- * map_to_a, map_to_f, map_to_i, map_to_s, map_to_sym: convert each object to a specific type by calling its respective method to_a, to_i, to_f, to_s, to_sym
109
- * map_with_index: for each item, yield to a block with the item and its incrementing index
110
-
111
-
112
- ### Enumerable nitems
113
-
114
- * nitems_while: the number of leading elements for which block is truthy.
115
- * nitems_until: the number of leading elements for which block is falsey.
116
- * nitems_with_index: the number of leading elements for which block with index is truthy.
117
-
118
-
119
- ### Enumerable select
120
-
121
- * select_while: return an array of the leading elements for which block is truthy.
122
- * select_until: return an array of the leading elements for which block is falsey.
123
- * select_with_index: return an array of the leading elements for which block with index is truthy.
124
-
125
-
126
- ## File
127
-
128
- * File.joindir: wrapper for File.join(File.dirname(...),string,...)
129
-
130
-
131
- ## Fixnum
132
-
133
- * even?: is the number even?
134
- * odd?: is the number odd?
135
-
136
-
137
- ## Hash
138
-
139
- * size?: return true if hash has any keys
140
- * sort_by_keys: return a new Hash sorted by keys
141
- * each_sort: sort the keys then call each
142
- * each_key!: passes each key to a specified block and updates hash in place if the key changes
143
- * each_pair!: passes each key value pair to a specified block and updates the hash in place if the key or value change.
144
- * each_value!: passes each value to a specified block and updates the hash in place if the value changes.
145
- * map_key: map each key-value pair's key by calling a a block
146
- * map_pair: map each key-value pair by calling a a block
147
- * map_value: map each key-value pair by calling a a block
148
- * merge_recurse: merge two hashes plus recurse whenever a key is a hash.
149
- * pivot: aggregates subtotals by keys and values, such as a rollup and rolldown
150
- * yield_pair: yield each key-value pair by calling a a block
151
-
152
-
153
- ## Integer
154
-
155
- * rbit: reverse bit
156
- * maps: syntactic sugar to yield n times to a block, returning an array of any results
157
- * odd?: is the number odd?
158
-
159
-
160
- ## IO
161
-
162
- * readrow: reads a row line as with IO#readline, and return the row split it into fields
163
- * IO.readrows: reads the entire file specified by name as individual row lines, and return those rows split into fields, in an array of arrays.
164
-
165
-
166
- ## Kernel
167
-
168
- * my_method_name: return the name of the current method
169
- * caller_method_name: return the name of the caller method, or the Nth parent up the call stack if the optional caller_index parameter is passed.
170
-
171
-
172
- ## Math
173
-
174
- * ln(x): natural log of x
175
- * logn(x,b): log of x in base b
176
-
177
-
178
- ## NilClass
179
-
180
- * blank?: return true (same as Rails)
181
-
182
-
183
- ## Numeric
184
-
185
- * if: return 0 if the passed flag is any of: nil, false, 0, [], {} and otherwise return self
186
- * unless: return 0 unless the passed flag is any of: nil, false, 0, [], {} and otherwise return self
187
- * percent: return the number as a percentage with optional rounding to decimal points
188
- * floor_precision: return the number truncated to a given precision, i.e. decimal points
189
-
190
-
191
- ## Object
192
-
193
- * in?: return boolean indicating whether the object is a member of the specified array parameter
194
-
195
-
196
- ## Process
197
-
198
- Extensions that help debug Ruby programs.
199
-
200
- * (class) ps: output of the system 'ps' command, also including aliases, as raw plain text.
201
- * (class) pss: output of the system 'ps' command as a hash with each value set to the right type, e.g., integer, float, etc..
202
-
203
-
204
- ## REXML::Attributes
205
-
206
- * hash: flattens the attributes hash set into a more useful ruby hash, e.g. {:height => 100, :width => 400 }
207
-
208
-
209
- ## REXML::Document
210
-
211
- * remove_attributes: remove all the attributes from the document's elements
212
-
213
-
214
- ## REXML::Element
215
-
216
- * remove_attributes: remove all the attributes from the element
217
-
218
-
219
- ## String
220
-
221
- * capitalize_words (alias to titleize/titlecase): ensures the first character of each word is uppercase.
222
- * decrement: decrease the rightmost natural number, defaults to one value lower or by the optional step parameter value.
223
- * increment: increase the rightmost natural number, defaults to one value higher or by the optional step parameter value.
224
- * lorem: return a short random string, good for use in "lorem ipsum" sample text.
225
- * lowcase: translate a string to lowercase, digits and single underscores (e.g. to a method name)
226
- * prev/pred: previous string ("b" => "a", "bbc" => "bbb", "a" => "z", "880" => "879")
227
- * prev!/pred!: updates variable to the previous string in place (astring = "bbc", astring.prev!, puts astring => "bbb")
228
- * (class) prev_char/pred_char: return the previous character, with a changed flag and carry flag; that is, there are three returned values, a string and two booleans.
229
- * split_tab: split the string into an array at each embedded tab ("Last\tFirst\tMiddle" => ["last","first","middle"])
230
- * split_tsv: split the string into an array at each embedded newline and embedded tab ("A\tB\t\C\nD\tE\tF" => [["A","B","C"],["D","E","F"]])
231
- * to_class: the global class reference of a given string
232
- * words: split the string into an array of words
233
-
234
-
235
- ## Symbol
236
-
237
- * <=> and include the comparable mixin to compare symbols as strings
238
-
239
-
240
- ## Time
241
-
242
- * (class) stamp: current time in UTC as a timestamp string ("YYYYMMDDHHMMSS")
243
- * to_sql: time as a string formatted as expected for MySQL
244
-
245
-
246
- ## YAML
247
-
248
- * (class) load_dir: specify directory patterns and pass each YAML file in the matching directories to a block; see [Dir#glob](http://www.ruby-doc.org/core/classes/Dir.html#M002347) for pattern details.
249
- * (class) load_dir_pairs: specify directory patterns and pass each YAML file in the matching directories to a block to process key/value pairs.
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 4.2.2
File without changes
@@ -1,10 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- require "minitest/autorun"
3
- require "sixarm_ruby_ramp"
4
-
5
- class XMLTest < Minitest::Test
6
-
7
-
8
-
9
- end
10
-