store_as_int 0.0.6 → 0.0.7

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: e3034a4265c20d3df48f06df60764ecece7e27b82e6d8b164d4832a2eedde3a9
4
- data.tar.gz: 96f656f4ac06ed8af32d80e746a53e83b50cbe6e097a4aff52d6f7f6d267a270
3
+ metadata.gz: 9a93e82a38a478c106cad98a044e80f5f3c666b5663550ed6cf2f1ca7d4bbd6e
4
+ data.tar.gz: baf61d8158a6e1c0731c41ed952fb7a7364d4da69abeb22d1fe1b340a38ae939
5
5
  SHA512:
6
- metadata.gz: 4468dc2c227c41bf027480939ad156be1ee972e3a72edf5cff5bee5918abfcc9c9d812498251acb5f3cf903a8710b62dbd722d34ba890dc40711591a4eb86eae
7
- data.tar.gz: '098a626684c9223e4c2c5840d5c201434393f032e82f546415450bac8fa0ddd2118506308e6a866ee57dbdf60d0262b516dbcf50e0da04c24b11fb256bed9142'
6
+ metadata.gz: 8518dd9376916f365322f0dadaa224fd806be19f2c2ce9a01f10b6d84e2338ec5815193d2130667de6be5d5b8a0c47573b2e0bf5f30362b8fcfabccefe2e9ab1
7
+ data.tar.gz: fcb677f202cd5a164de2eef575cc06a3747389319592f013f397cc88441d3da2a4e42ae4ea6a2a0f31e36960e3d2aa25b198de63c335ea9fda908e2ba9f8350f
@@ -1,8 +1,7 @@
1
- require 'bigdecimal'
2
- require 'bigdecimal/util'
3
-
4
1
  module StoreAsInt
5
2
  class Base
3
+ require 'bigdecimal'
4
+ require 'bigdecimal/util'
6
5
 
7
6
  # == Constants ============================================================
8
7
  BASE = 1
@@ -1,7 +1,11 @@
1
- require_relative './base'
2
-
3
- class StoreAsInt::ExchangeRate < StoreAsInt::Base
4
- BASE = 10000000000
5
- DECIMALS = 4
6
- SYM = '%'
1
+ module StoreAsInt
2
+ unless defined?(StoreAsInt::Base)
3
+ require_relative './base'
4
+ end
5
+
6
+ class ExchangeRate < StoreAsInt::Base
7
+ BASE = 10000000000
8
+ DECIMALS = 4
9
+ SYM = '%'
10
+ end
7
11
  end
@@ -1,7 +1,11 @@
1
- require_relative './base'
1
+ module StoreAsInt
2
+ unless defined?(StoreAsInt::Base)
3
+ require_relative './base'
4
+ end
2
5
 
3
- class StoreAsInt::Money < StoreAsInt::Base
4
- BASE = 100
5
- DECIMALS = 2
6
- SYM = '$'
6
+ class Money < StoreAsInt::Base
7
+ BASE = 100
8
+ DECIMALS = 2
9
+ SYM = '$'
10
+ end
7
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: store_as_int
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sampson Crowley