hipku 1.0.0 → 1.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a68ceccf9b648137fd159cc11b33bda6277573c6
4
- data.tar.gz: 1bb7234128bb6bdc99c657a2bad07a3cd48839ca
3
+ metadata.gz: ce6d8f672c7b0d655a0fd0277a51298d392ed93b
4
+ data.tar.gz: a17264bad354e68a205845cbe76ffdfcabb52106
5
5
  SHA512:
6
- metadata.gz: 599e26d994caeb46365bdb7ac9bad60c2def4834ec2828edfc10c00ca2c999dfbb12d6974057e7ab5685f89f91c394477d842ed8f3a57da5e4a2e1102db0e9fa
7
- data.tar.gz: afef707ff55c4174ae43193abe65dbb85673a055eb0d9fc59a644b309b2d0f19b473f2fead4ac27f242697db7dffae4962cc983604286bfac61ba83a5193219d
6
+ metadata.gz: bb69b132cd0d63858d3f53c777d8a26469b233f3e6e0e4235a235b4d1ce548a62efc400c481c87371e27e4329525b1528117994689ee5d06e108811fc79ba8e6
7
+ data.tar.gz: 58d539a4d1257df09d9dff3a27eb9e3c66fa3d314705d97e09ff9157d0799b2266f5b0b86fb5386b4947d9d0ce2b9f8091edff460cbf49d2cf0962a1de127b01
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in overload.gemspec
4
+ gemspec
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