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 +4 -4
- data/lib/hexable.rb +3 -3
- data/lib/hexable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77ad89b63e4fdc5aaa44b275b829db8534f61a04
|
4
|
+
data.tar.gz: e6b0073a9c0adf540126b9fac96760da8ff436b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7d721d78c02db159d42f2cdce56a5c7c0eb407732ac99b34b8dceacefe2b4580c321bf683e75be00dd0a653e67cf8e62e7e7608a487f060ee16aa63203c6a61
|
7
|
+
data.tar.gz: a11afe87cea27e212d12254c563f97d05f3f85a859a9c43ecd5e49a60195eb9f957a481d9df555ddc67ab1e32644958aad0a7c07c69f561caf854018937fcfad
|
data/lib/hexable.rb
CHANGED
@@ -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)
|
data/lib/hexable/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|