organic_hash 1.0.1 → 1.0.2

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.
Files changed (3) hide show
  1. data/README.md +8 -2
  2. data/lib/organic_hash.rb +1 -1
  3. metadata +2 -2
data/README.md CHANGED
@@ -6,6 +6,10 @@ Converts strings to awesome scifi objects!!
6
6
  Organic Hash hashes strings (user ID, hashes) to a human-readable, scifi-themed
7
7
  representation.
8
8
 
9
+ ## Demo
10
+
11
+ http://truly-civilized-pancakes.herokuapp.com
12
+
9
13
  ## Install
10
14
 
11
15
  ```bash
@@ -19,12 +23,14 @@ Basic usage
19
23
  ```ruby
20
24
  > require 'organic_hash'
21
25
  > oh = OrganicHash.new
26
+ > oh.hash 'ID_A3AHG7FKPIV07'
27
+ => "technically-huge-witch"
28
+ > oh.hash 'asldkjasldkjasdlkajsd'
29
+ => "so-confident-turret"
22
30
  > oh.hash 'josephcc'
23
31
  => "truthfully-better-explosion"
24
32
  > oh.hash 'josephcc', true
25
33
  => ["truthfully", "better", "explosion"]
26
- > oh.hash 'asldkjasldkjasdlkajsd'
27
- => "so-confident-turret"
28
34
  ```
29
35
 
30
36
  Different length
@@ -3,7 +3,7 @@ require 'securerandom'
3
3
 
4
4
  class OrganicHash
5
5
 
6
- VERSION = "1.0.1"
6
+ VERSION = "1.0.2"
7
7
  DATA_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..', 'data'))
8
8
  NOUN = File.read(File.join(DATA_DIR, "noun.dat")).split("\n")
9
9
  ADJ = File.read(File.join(DATA_DIR, "adj.dat")).split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: organic_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-01-31 00:00:00.000000000 Z
13
+ date: 2014-02-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler