baze 0.0.11 → 0.0.12
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 +8 -8
- data/bin/ip2hex +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
M2ZhOGEyNjYxNTkxYWI4NWI1NjMzYWQ4YTk3NzY4NTgzMzlkMTQxYw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NjFlMmYzN2Q2OTJlODdlY2YwNzZiMTMwZTUwNDA2YmQzNjNhMDhmMg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YjEyYjFiNDE3NzhiY2M5ZjZmMzdkYjhmMmJkM2Q5ZDQ5Mjk3OGU2NjRmZGQ3
|
|
10
|
+
YjZjMTdiZjdhNjA0YWEwNmE4M2NiNDZhMGUzYjhmYjQ1MmM0NDRiYTU2ODY0
|
|
11
|
+
ZjdlZGQ2ZDUzM2RjNThmMGI1MWRiYjczMGFhN2I3NjkwM2VjZDk=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OTcyYjE2MWM0NzVhZmU4ODEyMzQxNzQ3MjI1NWRkNjQ3M2E5OTg5YTcwZmQ1
|
|
14
|
+
OWEwYTRkODc1ZDE2MzZlMDJmM2IyZTQ1MzRmMDg2NTNiN2QyYzhlNDJiOTZm
|
|
15
|
+
YWViY2IyZmQ4YjFkMjZjOGQwYThkNDQxYWRhY2MxMTFhNDVlZTY=
|
data/bin/ip2hex
CHANGED
|
@@ -21,5 +21,5 @@ raise 'IP does not have 4 integers' unless parts.length == 4
|
|
|
21
21
|
ACCEPTED = 0..255
|
|
22
22
|
parts.each {|p| raise 'Integer not in 0..255' unless ACCEPTED.include? p}
|
|
23
23
|
|
|
24
|
-
num = parts.
|
|
24
|
+
num = parts.inject(0){|r,e| (r<<8)+e}
|
|
25
25
|
printf "#{format}\n", num
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: baze
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pierre Carrier
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-06-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|