hipku 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile +4 -0
- data/README.md +23 -0
- data/hipku-1.0.0.gem +0 -0
- data/hipku.gemspec +22 -0
- data/lib/hipku/dictionary.rb +932 -0
- data/lib/hipku/version.rb +3 -0
- data/lib/hipku.rb +351 -0
- data/spec/hipku_spec.rb +50 -0
- metadata +16 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce6d8f672c7b0d655a0fd0277a51298d392ed93b
|
4
|
+
data.tar.gz: a17264bad354e68a205845cbe76ffdfcabb52106
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb69b132cd0d63858d3f53c777d8a26469b233f3e6e0e4235a235b4d1ce548a62efc400c481c87371e27e4329525b1528117994689ee5d06e108811fc79ba8e6
|
7
|
+
data.tar.gz: 58d539a4d1257df09d9dff3a27eb9e3c66fa3d314705d97e09ff9157d0799b2266f5b0b86fb5386b4947d9d0ce2b9f8091edff460cbf49d2cf0962a1de127b01
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Gemfile.lock
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/hipku.svg)](http://badge.fury.io/rb/hipku)
|
2
|
+
|
3
|
+
hipku
|
4
|
+
=====
|
5
|
+
|
6
|
+
Hipku – encode any IP address as a haiku
|
7
|
+
|
8
|
+
|
9
|
+
A simple gem to encode/decode IPv4 and IPv6 addresses as/from haiku. A port of http://gabrielmartin.net/projects/hipku/
|
10
|
+
|
11
|
+
Usage:
|
12
|
+
|
13
|
+
To encode:
|
14
|
+
|
15
|
+
require 'hipku'
|
16
|
+
Hipku.encode('127.0.0.1')
|
17
|
+
# => "The hungry white ape\naches in the ancient canyon.\nAutumn colors crunch.\n"
|
18
|
+
|
19
|
+
To decode:
|
20
|
+
|
21
|
+
require 'hipku'
|
22
|
+
Hipku.decode("The hungry white ape\naches in the ancient canyon.\nAutumn colors crunch.\n")
|
23
|
+
# => "127.0.0.1"
|
data/hipku-1.0.0.gem
ADDED
Binary file
|
data/hipku.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'hipku/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = 'hipku'
|
8
|
+
s.version = Hipku::VERSION
|
9
|
+
s.summary = "Encode any IP address as a haiku"
|
10
|
+
s.description = "A simple gem to encode/decode IPv4 and IPv6 addresses as/from haiku. A port of http://gabrielmartin.net/projects/hipku/"
|
11
|
+
s.authors = ["Alex Sunderland"]
|
12
|
+
s.email = 'agentantelope+hipku@gmail.com'
|
13
|
+
s.files = `git ls-files`.split($/)
|
14
|
+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
15
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
16
|
+
s.require_paths = ["lib"]
|
17
|
+
s.homepage = 'http://rubygems.org/gems/hipku'
|
18
|
+
s.license = 'MIT'
|
19
|
+
|
20
|
+
s.add_development_dependency "rspec", "> 0"
|
21
|
+
s.add_development_dependency "pry", "> 0"
|
22
|
+
end
|