rainbow_hash 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/bin/rainbow +5 -1
- data/lib/rainbow_hash/display.rb +2 -2
- data/lib/rainbow_hash/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18f0b29d0aa406f93c62d5315ace6cf93ea35b1d
|
4
|
+
data.tar.gz: db7f82c1133c0119707717dd21c631c26ac815e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4003bd190e9c68bb027feaf7166e350952384300c02f935cce3f430679eee5727bf739dffe56d4312cdda5758c7b319f7ffa871e3245c423cf74b19c5009efe9
|
7
|
+
data.tar.gz: d7065becfeda6309237f0708bdfcc9a55dad2a896c75deaf9797c5067be09d0cc5d44804b4f29ff4a9be8eec74b92927801342385e2a7b8ca86939cbf6578dd9
|
data/README.md
CHANGED
@@ -16,13 +16,13 @@ If you use Rbenv to manage your Ruby versions, you may have to run:
|
|
16
16
|
|
17
17
|
From your terminal, run the `rainbow` command followed by your data structure surrounded by quotation marks.
|
18
18
|
|
19
|
-
For example, if you wanted to view the following hash
|
19
|
+
For example, if you wanted to view the following hash in your terminal:
|
20
20
|
|
21
|
-
[TEST, {a: 1, [2, 3, 4]}]
|
21
|
+
['TEST', {a: 1, [2, 3, 4, {cow: 'moo'}]}]
|
22
22
|
|
23
23
|
you would run:
|
24
24
|
|
25
|
-
rainbow "[TEST, {a: 1, [2, 3, 4, {cow: 'moo'}]}]"
|
25
|
+
$ rainbow "['TEST', {a: 1, [2, 3, 4, {cow: 'moo'}]}]"
|
26
26
|
|
27
27
|
And watch the results!
|
28
28
|
|
data/bin/rainbow
CHANGED
data/lib/rainbow_hash/display.rb
CHANGED
@@ -3,7 +3,7 @@ module RainbowHash
|
|
3
3
|
class Display
|
4
4
|
|
5
5
|
def self.print(string)
|
6
|
-
self.new(string).output
|
6
|
+
puts self.new(string).output
|
7
7
|
end
|
8
8
|
|
9
9
|
def initialize(string)
|
@@ -25,7 +25,7 @@ module RainbowHash
|
|
25
25
|
new_string += "\n" + (" " * @indentation_level)
|
26
26
|
end
|
27
27
|
end
|
28
|
-
|
28
|
+
new_string
|
29
29
|
end
|
30
30
|
|
31
31
|
private
|
data/lib/rainbow_hash/version.rb
CHANGED