sixarm_ruby_ramp 4.1.0 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -18,4 +18,3 @@ class IntegerTest < Minitest::Test
18
18
  end
19
19
 
20
20
  end
21
-
@@ -4,6 +4,35 @@ Minitest::Test ||= MiniTest::Unit::TestCase
4
4
  require 'simplecov'
5
5
  SimpleCov.start
6
6
 
7
- ['array','class','csv','date','enumerable','file','fixnum','hash','integer','io','kernel','math','nil','numeric','object','pairable','process','string','symbol','time','xml','yaml'].map{|x|
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.1.0
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
- MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQ8wDQYDVQQDDAZzaXhh
14
- cm0xFjAUBgoJkiaJk/IsZAEZFgZzaXhhcm0xEzARBgoJkiaJk/IsZAEZFgNjb20w
15
- HhcNMTQwMzEzMDQyMjE4WhcNMTUwMzEzMDQyMjE4WjA+MQ8wDQYDVQQDDAZzaXhh
16
- cm0xFjAUBgoJkiaJk/IsZAEZFgZzaXhhcm0xEzARBgoJkiaJk/IsZAEZFgNjb20w
17
- ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC5MZYB72Amo9DyeqBdJeEx
18
- r4togM0+diNuL1nCH2FSO/+LX5L9mTPEEW5gexYCasmlOfmk5255EToJNtu1JUM/
19
- dMqUbNS5LZ1srFVcyDzIe/wQ9f2OSmb+lAGmlnFLfYSpduMv9fPNISlcs5nFYSR9
20
- mpS0kTWcXQPLNDl2cfnkYYjDsuyJ8FmDyG7TTF0c4OWJNLxNDE8To2n8GmmDSwr3
21
- 0K71F278CJlFoIaSSjnhKxkH8/l+z/Vs58KkjX/7M6nwNgNZMQaFBIO02UDtCi2F
22
- ICVtDuWdK0YLv3JnIzvSQPQsfArrw2s8RVKjXlelPMeHJIcCEZcS4K6HIg7vQCkP
23
- AgMBA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CWHd0FQWJBSXMsZ9a6RhFGAcE5C
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-01-13 00:00:00.000000000 Z
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, etc.
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