usd_to_f_extension 0.0.3

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ede8d65116cc913f00a708a927e462696b2ab2015adbca175b5ed8a47d3edf58
4
+ data.tar.gz: 6e9b7112e065bc184a38dd687d21b51e8d1a412812695c60caf3a67fbb61977a
5
+ SHA512:
6
+ metadata.gz: 420c2476ed39fb5b972051d4e11f7701dfa071755775b5945e525cbfdd8522b23ab5f586e3d628c9bfadaaafc287ced167ec2391e205987bd1a6e76a4d21644c
7
+ data.tar.gz: a0a78ad61c0f10fb5138247517991d7fc6af6c62ef30866898684797a1cd96fedf6742d199bfff6388adcc81be5f97fc959eac88422a66ed05d116bd63502b31
data/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 0.0.3 (2022-03-30)
5
+ ------------------
6
+
7
+ * Version bump
8
+
9
+ 0.0.2 (2022-03-30)
10
+ ------------------
11
+
12
+ * Version bump to push core
13
+
14
+ 0.0.1 (2022-03-28)
15
+ ------------------
16
+
17
+ * Inital release
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Marcus Wyatt
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.3
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ NilClass.class_eval do
4
+ # :nodoc:
5
+ def usd_to_f
6
+ nil
7
+ end
8
+ end
9
+
10
+ Numeric.class_eval do
11
+ # :nodoc:
12
+ def usd_to_f
13
+ to_f
14
+ end
15
+ end
16
+
17
+ String.class_eval do
18
+ # :nodoc:
19
+ def usd_to_f
20
+ gsub(/[$,]/, '').to_f
21
+ end
22
+ end
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: usd_to_f_extension
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Marcus Wyatt
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-03-30 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - mwyatt@brandsinsurance.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - CHANGELOG.md
21
+ - LICENSE.txt
22
+ - VERSION
23
+ - lib/usd_to_f_extension.rb
24
+ homepage: https://github.com/mlwyatt/rails-extensions
25
+ licenses:
26
+ - MIT
27
+ metadata:
28
+ source_code_uri: https://github.com/mlwyatt/rails-extensions
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: 3.0.1
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubygems_version: 3.2.15
45
+ signing_key:
46
+ specification_version: 4
47
+ summary: Adds `usd_to_f` method to `NilClass`, `Numeric`, and `String`
48
+ test_files: []