percentage 1.4.0 → 1.4.1
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
- data/CHANGES.md +35 -0
- data/percentage.gemspec +3 -3
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20e2362952bb7911cca151e3df92aa1fbd1673d165c745ca577aa7fa269c5d79
|
4
|
+
data.tar.gz: 82c0f31ba57b5e8eae7e4c9bf3e27cd202f32fa30d6f7ae544d519499e19cd37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 575215d64aaf5a84851d29e732902abc07239bf0be3e8a542ce8e332272b9c2470cfc6bc4c7d1337d180f2a2249cb854b3fbdf6fc3b697ef0a5f126680bc423b
|
7
|
+
data.tar.gz: 1e7ca91c861e49039fd592a82f54c9778ba335efc6286b9ab772c4f634db536e58eb429d9a839e1013684f435aa77c942210d8fcadfb2d49cac73dfbf449ea04
|
data/CHANGES.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# 1.4.1
|
2
|
+
|
3
|
+
* Added CHANGES.md to gem files
|
4
|
+
|
5
|
+
* Fixed outdated changelog_uri
|
6
|
+
|
7
|
+
# 1.4.0
|
8
|
+
|
9
|
+
* Added optional YAML integration
|
10
|
+
|
11
|
+
This makes it possible to dump/load percentage objects to/from YAML as scalar values. For example:
|
12
|
+
|
13
|
+
require 'percentage/yaml'
|
14
|
+
|
15
|
+
puts YAML.dump([Percentage(BigDecimal('17.5'))])
|
16
|
+
|
17
|
+
This functionality is not enabled by default, due to the use of Module#prepend.
|
18
|
+
|
19
|
+
# 1.3.0
|
20
|
+
|
21
|
+
* Added ndigits argument to Percentage#truncate
|
22
|
+
|
23
|
+
# 1.2.0
|
24
|
+
|
25
|
+
* Removed memoization so that Percentage objects can be frozen (thanks @iamvery)
|
26
|
+
|
27
|
+
# 1.1.0
|
28
|
+
|
29
|
+
* Added BigDecimal#to_percentage and Integer#to_percentage
|
30
|
+
|
31
|
+
* Added BigDecimal#percent_of (thanks @mikeymicrophone)
|
32
|
+
|
33
|
+
# 1.0.0
|
34
|
+
|
35
|
+
* First version!
|
data/percentage.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'percentage'
|
3
|
-
s.version = '1.4.
|
3
|
+
s.version = '1.4.1'
|
4
4
|
s.license = 'LGPL-3.0'
|
5
5
|
s.platform = Gem::Platform::RUBY
|
6
6
|
s.authors = ['Tim Craft']
|
@@ -8,13 +8,13 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.homepage = 'https://github.com/readysteady/percentage'
|
9
9
|
s.description = 'Ruby gem for working with percentages'
|
10
10
|
s.summary = 'See description'
|
11
|
-
s.files = Dir.glob('lib/**/*.rb') + %w
|
11
|
+
s.files = Dir.glob('lib/**/*.rb') + %w[CHANGES.md LICENSE.txt README.md percentage.gemspec]
|
12
12
|
s.required_ruby_version = '>= 1.9.3'
|
13
13
|
s.require_path = 'lib'
|
14
14
|
s.metadata = {
|
15
15
|
'homepage' => 'https://github.com/readysteady/percentage',
|
16
16
|
'source_code_uri' => 'https://github.com/readysteady/percentage',
|
17
17
|
'bug_tracker_uri' => 'https://github.com/readysteady/percentage/issues',
|
18
|
-
'changelog_uri' => 'https://github.com/readysteady/percentage/blob/
|
18
|
+
'changelog_uri' => 'https://github.com/readysteady/percentage/blob/main/CHANGES.md'
|
19
19
|
}
|
20
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percentage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Craft
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby gem for working with percentages
|
14
14
|
email:
|
@@ -17,6 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- CHANGES.md
|
20
21
|
- LICENSE.txt
|
21
22
|
- README.md
|
22
23
|
- lib/percentage.rb
|
@@ -29,8 +30,8 @@ metadata:
|
|
29
30
|
homepage: https://github.com/readysteady/percentage
|
30
31
|
source_code_uri: https://github.com/readysteady/percentage
|
31
32
|
bug_tracker_uri: https://github.com/readysteady/percentage/issues
|
32
|
-
changelog_uri: https://github.com/readysteady/percentage/blob/
|
33
|
-
post_install_message:
|
33
|
+
changelog_uri: https://github.com/readysteady/percentage/blob/main/CHANGES.md
|
34
|
+
post_install_message:
|
34
35
|
rdoc_options: []
|
35
36
|
require_paths:
|
36
37
|
- lib
|
@@ -45,8 +46,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '0'
|
47
48
|
requirements: []
|
48
|
-
rubygems_version: 3.1.
|
49
|
-
signing_key:
|
49
|
+
rubygems_version: 3.1.4
|
50
|
+
signing_key:
|
50
51
|
specification_version: 4
|
51
52
|
summary: See description
|
52
53
|
test_files: []
|