sixarm_ruby_ramp 4.1.0 → 4.2.2
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.md +30 -6
- data/VERSION +1 -1
- data/lib/sixarm_ruby_ramp/array/join.rb +67 -0
- data/lib/sixarm_ruby_ramp/array/shuffle.rb +49 -0
- data/lib/sixarm_ruby_ramp/array.rb +14 -121
- data/lib/sixarm_ruby_ramp/enumerable/map.rb +114 -0
- data/lib/sixarm_ruby_ramp/enumerable/nitems.rb +66 -0
- data/lib/sixarm_ruby_ramp/enumerable/select.rb +50 -0
- data/lib/sixarm_ruby_ramp/enumerable.rb +1 -124
- data/lib/sixarm_ruby_ramp/integer/rbit.rb +23 -0
- data/lib/sixarm_ruby_ramp.rb +30 -1
- data/test/sixarm_ruby_ramp_test/array/join_test.rb +37 -0
- data/test/sixarm_ruby_ramp_test/array/shuffle_test.rb +26 -0
- data/test/sixarm_ruby_ramp_test/array_test.rb +10 -59
- data/test/sixarm_ruby_ramp_test/enumerable/map_test.rb +42 -0
- data/test/sixarm_ruby_ramp_test/enumerable/nitems_test.rb +48 -0
- data/test/sixarm_ruby_ramp_test/enumerable/select_test.rb +33 -0
- data/test/sixarm_ruby_ramp_test/enumerable_test.rb +0 -136
- data/test/sixarm_ruby_ramp_test/integer/rbit_test.rb +43 -0
- data/test/sixarm_ruby_ramp_test/integer_test.rb +0 -1
- data/test/sixarm_ruby_ramp_test.rb +30 -1
- data.tar.gz.sig +0 -0
- metadata +55 -22
- metadata.gz.sig +0 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'minitest/autorun'
|
3
|
+
require 'sixarm_ruby_ramp/integer/rbit'
|
4
|
+
|
5
|
+
class IntegerTest < Minitest::Test
|
6
|
+
|
7
|
+
def test_width_8_zero
|
8
|
+
assert_equal(0,0.rbit(8))
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_width_8_one
|
12
|
+
assert_equal(128,1.rbit(8))
|
13
|
+
end
|
14
|
+
|
15
|
+
def text_width_8_max
|
16
|
+
assert_equal(255,255.rbit(8))
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_width_16_zero
|
20
|
+
assert_equal(0, 0.rbit(16))
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_width_16_one
|
24
|
+
assert_equal(32768, 1.rbit(16))
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_width_16_max
|
28
|
+
assert_equal(65535, 65535.rbit(16))
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_width_32_zero
|
32
|
+
assert_equal(0, 0.rbit(32))
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_width_32_one
|
36
|
+
assert_equal(2147483648, 1.rbit(32))
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_width_32_max
|
40
|
+
assert_equal(4294967295, 4294967295.rbit(32))
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
@@ -4,6 +4,35 @@ Minitest::Test ||= MiniTest::Unit::TestCase
|
|
4
4
|
require 'simplecov'
|
5
5
|
SimpleCov.start
|
6
6
|
|
7
|
-
[
|
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|
|
8
37
|
require "sixarm_ruby_ramp_test/#{x}_test.rb"
|
9
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.
|
4
|
+
version: 4.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SixArm
|
@@ -10,27 +10,41 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
13
|
+
MIIGCTCCA/GgAwIBAgIJAK3igyLv2hNNMA0GCSqGSIb3DQEBBQUAMGAxCzAJBgNV
|
14
|
+
BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNp
|
15
|
+
c2NvMQ8wDQYDVQQKEwZTaXhBcm0xEzARBgNVBAMTCnNpeGFybS5jb20wHhcNMTUw
|
16
|
+
MzE0MjA0MTE5WhcNMTcxMjA4MjA0MTE5WjBgMQswCQYDVQQGEwJVUzETMBEGA1UE
|
17
|
+
CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEPMA0GA1UEChMG
|
18
|
+
U2l4QXJtMRMwEQYDVQQDEwpzaXhhcm0uY29tMIICIjANBgkqhkiG9w0BAQEFAAOC
|
19
|
+
Ag8AMIICCgKCAgEA4et7SlePzuE46eK5BAVVGg+yWt6FkX7xcLt3Uun9RntKPSuR
|
20
|
+
TbS/+KBqbja5reZD64hdQ9npxpQPKafxUm+RlCd9F5K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ugO+cuUF2S/ro4gdEQhl7Gv6+DCWHd0FQWJBSXMsZ9a6RhFGAcE5C
|
36
|
+
egK706Gh40yNeobd1aoUh+Pn17kYH2WSBRC+KsIvhZaAnra/1JPZItoge64GS+lM
|
37
|
+
PJJbVrtSati++s39wnss1QlMy9TXoesmR8vqsOU0XdCnK5hOun5RA8SYDWLffsfG
|
38
|
+
E3hvCg4C5viEkPY0YdC0KMSqs5kIA2nCUiqpkwIOa36rVEwiKiU7OCfE3u3baDpL
|
39
|
+
FlfMBznZKOdxDFAmNaxvXBe2XeTzrZPvJtnNLWL6K4LaBHhq3bBdh1Hge0iMkpQ7
|
40
|
+
RTIGlfhlIFkMV3wT0LTsNznUPsoo6e+IW/tDrk23mrNRY6QynTETb+QVIevuzD9m
|
41
|
+
Drcxp/zlVhud+a0ezdnyNvF520arJWvqA4GrOo8F+TT2vVrjscgYjiVGdSq+8wQv
|
42
|
+
Efa5jhe8QwG7R1rdpMMP5yBSAqWuFBczMveX5j4rp9Ifw5/XsZbgwcmdm26bjhzh
|
43
|
+
w2grAHIhvR9mztm6uXQlZhv1fu3P+RWHDSYhnZSCJSCdxPzQJ1mG5T5ahiL3HvCZ
|
44
|
+
2AC9FOGkybW6DJEFSFFMlNk0IILsa/gNp8ufGuTVLWF9FUUdMNK+TMbghnifT8/1
|
45
|
+
n+ES/gQPOnvmVkLDGw==
|
32
46
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-
|
47
|
+
date: 2015-04-04 00:00:00.000000000 Z
|
34
48
|
dependencies:
|
35
49
|
- !ruby/object:Gem::Dependency
|
36
50
|
name: sixarm_ruby_rexml
|
@@ -92,7 +106,8 @@ dependencies:
|
|
92
106
|
- - ">="
|
93
107
|
- !ruby/object:Gem::Version
|
94
108
|
version: 2.1.0
|
95
|
-
description: Adds extensions to Array, Date, File, Hash, IO, String, Time,
|
109
|
+
description: Adds extensions to Array, Date, Enumerable, File, Hash, IO, String, Time,
|
110
|
+
etc.
|
96
111
|
email: sixarm@sixarm.com
|
97
112
|
executables: []
|
98
113
|
extensions: []
|
@@ -105,14 +120,20 @@ files:
|
|
105
120
|
- VERSION
|
106
121
|
- lib/sixarm_ruby_ramp.rb
|
107
122
|
- lib/sixarm_ruby_ramp/array.rb
|
123
|
+
- lib/sixarm_ruby_ramp/array/join.rb
|
124
|
+
- lib/sixarm_ruby_ramp/array/shuffle.rb
|
108
125
|
- lib/sixarm_ruby_ramp/class.rb
|
109
126
|
- lib/sixarm_ruby_ramp/csv.rb
|
110
127
|
- lib/sixarm_ruby_ramp/date.rb
|
111
128
|
- lib/sixarm_ruby_ramp/enumerable.rb
|
129
|
+
- lib/sixarm_ruby_ramp/enumerable/map.rb
|
130
|
+
- lib/sixarm_ruby_ramp/enumerable/nitems.rb
|
131
|
+
- lib/sixarm_ruby_ramp/enumerable/select.rb
|
112
132
|
- lib/sixarm_ruby_ramp/file.rb
|
113
133
|
- lib/sixarm_ruby_ramp/fixnum.rb
|
114
134
|
- lib/sixarm_ruby_ramp/hash.rb
|
115
135
|
- lib/sixarm_ruby_ramp/integer.rb
|
136
|
+
- lib/sixarm_ruby_ramp/integer/rbit.rb
|
116
137
|
- lib/sixarm_ruby_ramp/io.rb
|
117
138
|
- lib/sixarm_ruby_ramp/kernel.rb
|
118
139
|
- lib/sixarm_ruby_ramp/math.rb
|
@@ -127,14 +148,20 @@ files:
|
|
127
148
|
- lib/sixarm_ruby_ramp/xml.rb
|
128
149
|
- lib/sixarm_ruby_ramp/yaml.rb
|
129
150
|
- test/sixarm_ruby_ramp_test.rb
|
151
|
+
- test/sixarm_ruby_ramp_test/array/join_test.rb
|
152
|
+
- test/sixarm_ruby_ramp_test/array/shuffle_test.rb
|
130
153
|
- test/sixarm_ruby_ramp_test/array_test.rb
|
131
154
|
- test/sixarm_ruby_ramp_test/class_test.rb
|
132
155
|
- test/sixarm_ruby_ramp_test/csv_test.rb
|
133
156
|
- test/sixarm_ruby_ramp_test/date_test.rb
|
157
|
+
- test/sixarm_ruby_ramp_test/enumerable/map_test.rb
|
158
|
+
- test/sixarm_ruby_ramp_test/enumerable/nitems_test.rb
|
159
|
+
- test/sixarm_ruby_ramp_test/enumerable/select_test.rb
|
134
160
|
- test/sixarm_ruby_ramp_test/enumerable_test.rb
|
135
161
|
- test/sixarm_ruby_ramp_test/file_test.rb
|
136
162
|
- test/sixarm_ruby_ramp_test/fixnum_test.rb
|
137
163
|
- test/sixarm_ruby_ramp_test/hash_test.rb
|
164
|
+
- test/sixarm_ruby_ramp_test/integer/rbit_test.rb
|
138
165
|
- test/sixarm_ruby_ramp_test/integer_test.rb
|
139
166
|
- test/sixarm_ruby_ramp_test/io_test.rb
|
140
167
|
- test/sixarm_ruby_ramp_test/io_test.txt
|
@@ -181,14 +208,20 @@ summary: SixArm.com » Ruby » Ramp provides base extensions to ruby classes.
|
|
181
208
|
test_files:
|
182
209
|
- test/sixarm_ruby_ramp_test.rb
|
183
210
|
- test/sixarm_ruby_ramp_test/array_test.rb
|
211
|
+
- test/sixarm_ruby_ramp_test/array/join_test.rb
|
212
|
+
- test/sixarm_ruby_ramp_test/array/shuffle_test.rb
|
184
213
|
- test/sixarm_ruby_ramp_test/class_test.rb
|
185
214
|
- test/sixarm_ruby_ramp_test/csv_test.rb
|
186
215
|
- test/sixarm_ruby_ramp_test/date_test.rb
|
187
216
|
- test/sixarm_ruby_ramp_test/enumerable_test.rb
|
217
|
+
- test/sixarm_ruby_ramp_test/enumerable/map_test.rb
|
218
|
+
- test/sixarm_ruby_ramp_test/enumerable/nitems_test.rb
|
219
|
+
- test/sixarm_ruby_ramp_test/enumerable/select_test.rb
|
188
220
|
- test/sixarm_ruby_ramp_test/file_test.rb
|
189
221
|
- test/sixarm_ruby_ramp_test/fixnum_test.rb
|
190
222
|
- test/sixarm_ruby_ramp_test/hash_test.rb
|
191
223
|
- test/sixarm_ruby_ramp_test/integer_test.rb
|
224
|
+
- test/sixarm_ruby_ramp_test/integer/rbit_test.rb
|
192
225
|
- test/sixarm_ruby_ramp_test/io_test.rb
|
193
226
|
- test/sixarm_ruby_ramp_test/kernel_test.rb
|
194
227
|
- test/sixarm_ruby_ramp_test/math_test.rb
|
metadata.gz.sig
CHANGED
Binary file
|