sixarm_ruby_numeric_percent 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +3 -0
- data.tar.gz.sig +5 -3
- data/Rakefile +6 -4
- data/lib/sixarm_ruby_numeric_percent.rb +1 -1
- data/test/sixarm_ruby_numeric_percent_test.rb +4 -4
- metadata +147 -46
- metadata.gz.sig +0 -0
- data/.gemtest +0 -0
- data/CHANGELOG.txt +0 -6
- data/INSTALL.txt +0 -32
- data/LICENSE.txt +0 -25
- data/README.rdoc +0 -21
- data/VERSION +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0eaf639beeb2f7c154fc617872b6a6b1e45b4b9c
|
4
|
+
data.tar.gz: a341d1cdb3a065fb792896e16259f2f4e741fd95
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c650241bf770ee43add75f6bfd52d2a615c996bd7438466b0a18f57cc463f3bd39dc4b2245eb1b5f2c9941f4664f806759058e3d450b4cff0f66c87d3fc413c5
|
7
|
+
data.tar.gz: 47e13ffbaa793ac037297529b1de89c83368b18c1b3438545956b59b952f3e733c1adfb30960c4a01958258fa4419467c87071c24ab05d4cf9c2c0b24d776cd5
|
checksums.yaml.gz.sig
ADDED
@@ -0,0 +1,3 @@
|
|
1
|
+
4_�U��pP1�R��^w��N�?���M�C�nƐ��.x6T���1Z���7�`u��[����>!z�J���Z�8�a�[V܁k)N��[��l��S]/�B��v3a��q���B�
|
2
|
+
���C���W���_��θ3��.�<*����^�N]� ]��Ho�+�T����{��Ť�`����Q��Em�L��7)����V!c���1��̍!�n+�JcH�s��Ω�Q���\�_�l�[�~���
|
3
|
+
�%WI�6�1�C��X�=���A�f1�� �@��q#�Nƍ�M���7��Z�<��iˌѿ7�;y����:�,�V�W
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
R�UX����'a>��$=R�cB|cQ��0��X4"Si��_�TJ�0nY��f '2Ż͗��^������c=�VP�`}Z��I���ޢj��H�xC8l
|
2
|
+
���`
|
3
|
+
(�J���q���|��/����
|
4
|
+
v�%�U�9UT�pH�Zi(�T�p��x�e5�����P���p�ڮ���и�/�$qv>N�)�_N"�����ur(�R��C���+���u�������@�>����Z[����gTjH^4$��%���{1�ȋ�0�J�<<�5�#po
|
5
|
+
�S)��`�-zS�+��ϲ��A!m���2�� bP�ǵN-�Рt*�+�G�U}p2/���Ҡ��Fg�$�,�J��;��-�/E0��٪_� H�E��V�x��b�<k��I��z�%���^!�b�{����4����.�-X"ٴǁ�
|
data/Rakefile
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
-
require
|
3
|
-
require
|
2
|
+
require "rake"
|
3
|
+
require "rake/testtask"
|
4
|
+
|
5
|
+
task :default => :test
|
4
6
|
|
5
7
|
Rake::TestTask.new(:test) do |t|
|
6
|
-
t.libs
|
7
|
-
t.pattern =
|
8
|
+
t.libs.push("lib", "test")
|
9
|
+
t.pattern = "test/**/*.rb"
|
8
10
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
-
require
|
3
|
-
require
|
2
|
+
require "minitest/autorun"
|
3
|
+
require "simplecov"
|
4
4
|
SimpleCov.start
|
5
|
-
require
|
5
|
+
require "sixarm_ruby_numeric_percent"
|
6
6
|
|
7
|
-
class NumericPercentTest < Test
|
7
|
+
class NumericPercentTest < Minitest::Test
|
8
8
|
|
9
9
|
N = 0.12345
|
10
10
|
NAN = 0/0.0
|
metadata
CHANGED
@@ -1,81 +1,182 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sixarm_ruby_numeric_percent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|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XoesmR8vqsOU0XdCnK5hOun5RA8SYDWLffsfG
|
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==
|
46
|
+
-----END CERTIFICATE-----
|
47
|
+
date: 2017-08-13 00:00:00.000000000 Z
|
48
|
+
dependencies:
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: minitest
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 5.7.0
|
56
|
+
- - "<"
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '6'
|
59
|
+
type: :development
|
60
|
+
prerelease: false
|
61
|
+
version_requirements: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 5.7.0
|
66
|
+
- - "<"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '6'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sixarm_ruby_minitest_extensions
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.0.5
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.0.5
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 10.4.2
|
90
|
+
- - "<"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '11'
|
93
|
+
type: :development
|
94
|
+
prerelease: false
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 10.4.2
|
100
|
+
- - "<"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '11'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: simplecov
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.10.0
|
110
|
+
- - "<"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '2'
|
113
|
+
type: :development
|
114
|
+
prerelease: false
|
115
|
+
version_requirements: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 0.10.0
|
120
|
+
- - "<"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '2'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: coveralls
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: 0.8.2
|
130
|
+
- - "<"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '2'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 0.8.2
|
140
|
+
- - "<"
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '2'
|
143
|
+
description: Numeric#percent method to calculate a percentage
|
41
144
|
email: sixarm@sixarm.com
|
42
145
|
executables: []
|
43
146
|
extensions: []
|
44
147
|
extra_rdoc_files: []
|
45
148
|
files:
|
46
|
-
- .gemtest
|
47
|
-
- CHANGELOG.txt
|
48
|
-
- INSTALL.txt
|
49
|
-
- LICENSE.txt
|
50
149
|
- Rakefile
|
51
|
-
- README.rdoc
|
52
|
-
- VERSION
|
53
150
|
- lib/sixarm_ruby_numeric_percent.rb
|
54
151
|
- test/sixarm_ruby_numeric_percent_test.rb
|
55
152
|
homepage: http://sixarm.com/
|
56
|
-
licenses:
|
153
|
+
licenses:
|
154
|
+
- Apache-2.0
|
155
|
+
- Artistic-2.0
|
156
|
+
- BSD-3-Clause
|
157
|
+
- GPL-3.0
|
158
|
+
- MIT
|
159
|
+
- MPL-2.0
|
160
|
+
metadata: {}
|
57
161
|
post_install_message:
|
58
162
|
rdoc_options: []
|
59
163
|
require_paths:
|
60
164
|
- lib
|
61
165
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
166
|
requirements:
|
64
|
-
- -
|
167
|
+
- - ">="
|
65
168
|
- !ruby/object:Gem::Version
|
66
169
|
version: '0'
|
67
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
171
|
requirements:
|
70
|
-
- -
|
172
|
+
- - ">="
|
71
173
|
- !ruby/object:Gem::Version
|
72
174
|
version: '0'
|
73
175
|
requirements: []
|
74
176
|
rubyforge_project:
|
75
|
-
rubygems_version:
|
177
|
+
rubygems_version: 2.6.12
|
76
178
|
signing_key:
|
77
|
-
specification_version:
|
78
|
-
summary: SixArm.com
|
179
|
+
specification_version: 4
|
180
|
+
summary: SixArm.com → Ruby → Numeric#percent
|
79
181
|
test_files:
|
80
182
|
- test/sixarm_ruby_numeric_percent_test.rb
|
81
|
-
has_rdoc: true
|
metadata.gz.sig
CHANGED
Binary file
|
data/.gemtest
DELETED
File without changes
|
data/CHANGELOG.txt
DELETED
data/INSTALL.txt
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
|
2
|
-
= SixArm.com Ruby Gem Install
|
3
|
-
|
4
|
-
|
5
|
-
First-time users: add our gem certificate and source.
|
6
|
-
When you do this once, it works for all our gems.
|
7
|
-
|
8
|
-
sudo wget http://sixarm.com/sixarm.pem
|
9
|
-
sudo gem cert --add sixarm.pem
|
10
|
-
sudo gem sources --add http://sixarm.com
|
11
|
-
|
12
|
-
Install the gem with advanced options.
|
13
|
-
|
14
|
-
sudo gem install sixarm_ruby_numeric_percent --test --trust-policy HighSecurity
|
15
|
-
|
16
|
-
|
17
|
-
== Notes
|
18
|
-
|
19
|
-
Do you have any questions, comments, suggestions, or feedback?
|
20
|
-
Let us know, we're happy to help. Our email is sixarm@sixarm.com
|
21
|
-
|
22
|
-
Do you want to create your own high security gems?
|
23
|
-
Learn how at http://www.rubygems.org/read/chapter/21
|
24
|
-
|
25
|
-
To see your current gem certificate list:
|
26
|
-
|
27
|
-
sudo gem cert --list
|
28
|
-
|
29
|
-
Our cert looks like this:
|
30
|
-
|
31
|
-
/C=US/ST=California/L=San Francisco/O=SixArm/CN=sixarm.com
|
32
|
-
|
data/LICENSE.txt
DELETED
@@ -1,25 +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 General Public License Version 2 (GPL 2)
|
9
|
-
- GNU Lesser General Public License (LGPL)
|
10
|
-
- MIT License
|
11
|
-
- Perl Artistic License
|
12
|
-
- Ruby License
|
13
|
-
|
14
|
-
The software is provided "as is", without warranty of any kind,
|
15
|
-
express or implied, including but not limited to the warranties of
|
16
|
-
merchantability, fitness for a particular purpose and noninfringement.
|
17
|
-
|
18
|
-
In no event shall the authors or copyright holders be liable for any
|
19
|
-
claim, damages or other liability, whether in an action of contract,
|
20
|
-
tort or otherwise, arising from, out of or in connection with the
|
21
|
-
software or the use or other dealings in the software.
|
22
|
-
|
23
|
-
This license is for the included software that is created by SixArm;
|
24
|
-
some of the included software may have its own licenses, copyrights,
|
25
|
-
authors, etc. and these do take precedence over the SixArm license.
|
data/README.rdoc
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
= SixArm.com » Ruby » Numeric#percent to calculate a percentage
|
2
|
-
|
3
|
-
Author:: Joel Parker Henderson, joel@joelparkerhenderson.com
|
4
|
-
Copyright:: Copyright (c) 2006-2012 Joel Parker Henderson
|
5
|
-
License:: See LICENSE.txt file
|
6
|
-
|
7
|
-
Calculate a number as percentage with rounding:
|
8
|
-
|
9
|
-
x=0.1234
|
10
|
-
x.percent => 12
|
11
|
-
|
12
|
-
Optional precision:
|
13
|
-
|
14
|
-
x.percent(nil) => 12 (default is to round to the closest integer)
|
15
|
-
x.percent(1) => 10
|
16
|
-
x.percent(2) => 12
|
17
|
-
x.percent(3) => 12.3
|
18
|
-
x.percent(3) => 12.34
|
19
|
-
|
20
|
-
Note that precision 1 and 2 are optimized for speed and to return integers;
|
21
|
-
other precisions return floats.
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.3
|