hexable 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 12c2a85a8366022e3168fe32e159be78ffc04806
4
- data.tar.gz: 0e69ac5c2c2cd776e1d3aa81465f7277b5aef3fd
3
+ metadata.gz: 77ad89b63e4fdc5aaa44b275b829db8534f61a04
4
+ data.tar.gz: e6b0073a9c0adf540126b9fac96760da8ff436b0
5
5
  SHA512:
6
- metadata.gz: 7a8cd38fca54bd2eb87c950d9d4c6a587031086423175e9cd051f82edceda08418ca30b29b73839aa2f2f86e853811416feb5c7112f9529c0a7d646efe79ac14
7
- data.tar.gz: 6a9304f26510a5d635641b76eb84da1e158ab06cf459c9ca43c477554d8995ba04b8bef62fbccf75c922219d741d3113723792a35ca2590f914c12552a73aa49
6
+ metadata.gz: e7d721d78c02db159d42f2cdce56a5c7c0eb407732ac99b34b8dceacefe2b4580c321bf683e75be00dd0a653e67cf8e62e7e7608a487f060ee16aa63203c6a61
7
+ data.tar.gz: a11afe87cea27e212d12254c563f97d05f3f85a859a9c43ecd5e49a60195eb9f957a481d9df555ddc67ab1e32644958aad0a7c07c69f561caf854018937fcfad
@@ -3,10 +3,10 @@ require "hexable/version"
3
3
  module Hexable
4
4
  class Number
5
5
  def initialize(num, base, mode)
6
- @number = num.eql?(nil) ? num.to_i(base) : 0
7
- @base = base.eql?(nil) ? base : 10
6
+ @number = !num.eql?(nil) ? num.to_s.to_i(base) : 0
7
+ @base = !base.eql?(nil) ? base : 10
8
8
  # default dynamic is off, so static is false
9
- @mode = mode.eql?(nil) ? mode : false
9
+ @mode = !mode.eql?(nil) ? mode : false
10
10
  end
11
11
 
12
12
  def number(num)
@@ -1,3 +1,3 @@
1
1
  module Hexable
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - austin.vecchio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-20 00:00:00.000000000 Z
11
+ date: 2016-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler