rainbow_hash 0.0.2 → 0.0.3

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: 18f0b29d0aa406f93c62d5315ace6cf93ea35b1d
4
- data.tar.gz: db7f82c1133c0119707717dd21c631c26ac815e4
3
+ metadata.gz: a5ab778bb4e781e3a46b881a1375dd7fc182164c
4
+ data.tar.gz: 15f6411e5600d684f9d196740cc10a5423484b55
5
5
  SHA512:
6
- metadata.gz: 4003bd190e9c68bb027feaf7166e350952384300c02f935cce3f430679eee5727bf739dffe56d4312cdda5758c7b319f7ffa871e3245c423cf74b19c5009efe9
7
- data.tar.gz: d7065becfeda6309237f0708bdfcc9a55dad2a896c75deaf9797c5067be09d0cc5d44804b4f29ff4a9be8eec74b92927801342385e2a7b8ca86939cbf6578dd9
6
+ metadata.gz: 79454e0911b8d038b9d169d865b4b9a318c29f10aff7e4c85d9acf2eb4e973bbc2277829cd2e1bfa5c2203bf5be9cbb9b3302745c9297f2eefeacba6d201aaa3
7
+ data.tar.gz: 7c1469cc8b487fe12359d5cfe573d81be4b4ec05f7ebd07cf2dc5f6964e86aa1228040b009098390a9cd2643abc4f9f6856e1c2ed7c0a10a6469d4ee30bb9832
data/README.md CHANGED
@@ -18,11 +18,11 @@ From your terminal, run the `rainbow` command followed by your data structure su
18
18
 
19
19
  For example, if you wanted to view the following hash in your terminal:
20
20
 
21
- ['TEST', {a: 1, [2, 3, 4, {cow: 'moo'}]}]
21
+ ['TEST', {a: 1, b: [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, b: [2, 3, 4, {cow: 'moo'}]}]"
26
26
 
27
27
  And watch the results!
28
28
 
@@ -39,7 +39,11 @@ module RainbowHash
39
39
  end
40
40
 
41
41
  def colorize(char)
42
- "\e[#{@color_stack}m#{char}\e[0m"
42
+ if beginning_delimeter?(char) || ending_delimeter?(char)
43
+ "\e[#{@color_stack}m\e[1m#{char}\e[0m"
44
+ else
45
+ "\e[#{@color_stack}m#{char}\e[0m"
46
+ end
43
47
  end
44
48
 
45
49
  def increment_level
@@ -1,3 +1,3 @@
1
1
  module RainbowHash
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainbow_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Wengrow