CryptoPriceFinder 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2985884072fbb0fcf5947b15e93ea59842733b673814672c7967033316a92a2d
4
- data.tar.gz: 6643e833eb55937b87112dea847a1b6589b13ccb38222b98543a958a0d58b0df
3
+ metadata.gz: 161718a11cc962c92f207bc39e2c96f1c57b57a23ef8739b8a93de60ffbb7af5
4
+ data.tar.gz: 614c5521668d1c46a75820d73f1039dff27526938ac6c43ac5546bf1952c698d
5
5
  SHA512:
6
- metadata.gz: 3eaed93abbf567fc875c3f4819c4283cfe273ea16896ffa148bd819297eb9ba819c35e23df6684c059f55d2ce2df430979afbfd6df394ede22c92a5ff252ab6e
7
- data.tar.gz: 9b9cca50fd27f83b90d1923d40e6cb9d3e7c6cb0d42b13b705717a7cb442ea876679b50e8fd77ee62f7c33c65da65a2320761480a70d00847fa95470e18bcd2e
6
+ metadata.gz: 6f8e99b7d01042c091a3309c1ac7b079bae45aa77bd207f7a8997b0c44ff6e8a312bf1b216c6a261f11fab240e855578c547d932c5b2ca46bdfbde16c91e08d3
7
+ data.tar.gz: d9e77ac2c86901aa1d18e8cb752d4107845d9c4b24b1aa46e12e3425de54787c9eabed8e71169a5a63c1dd2c46a8828628747c77152c90b6cdfc77504c9e065e
@@ -1,6 +1,10 @@
1
1
  require 'json'
2
2
  require 'httparty'
3
-
3
+ class String
4
+ def comma
5
+ self.to_s.reverse.scan(/(?:\d*\.)?\d{1,3}-?/).join(',').reverse
6
+ end
7
+ end
4
8
  module CryptoPriceFinder
5
9
  class << self
6
10
  URL = "https://duckduckgo.com/js/spice/cryptocurrency/"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CryptoPriceFinder
4
- VERSION = "0.5.0"
4
+ VERSION = "0.6.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CryptoPriceFinder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael-Meade
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-04 00:00:00.000000000 Z
11
+ date: 2025-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty