human_hash 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +23 -2
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. metadata +3 -3
data/README.rdoc CHANGED
@@ -1,7 +1,28 @@
1
1
 
2
- = Hash Inspection in Vertical Display.
2
+ = Human Readable Hash Inspection w/ Vertical Display
3
3
 
4
- More details TBA.
4
+ This gem adds a human_inspect() method to the Ruby Hash object that returns a Ruby Hash inspection String with a vertical display,
5
+ something more easily readable by humans (like me), when the Hash is larger than a few keys.
6
+
7
+ {
8
+ :whatever => {
9
+ :whatever => {
10
+ :two => "two",
11
+ :another => {
12
+ :and => "and",
13
+ :more => "more"
14
+ },
15
+ :array => [0, 1, 2],
16
+ :one => "one",
17
+ :bool => true
18
+ }
19
+ },
20
+ 2 => "two",
21
+ 4 => "four"
22
+ }
23
+
24
+ human_inspect() will display String keys as symbols by default, but only because this is my personal preference. To show String keys as
25
+ Strings add false to the method call: puts my_hash.human_inspect(false).
5
26
 
6
27
  == Copyright
7
28
 
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  ##
2
- # Copyright (c) ZedFUEL Inc.
2
+ # Copyright (c) Eric Woodward.
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
5
5
  # files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: human_hash
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 0.1.0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eric Woodward