distinct_output 0.1.1 → 0.2.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: 5eaae8a68e20133dbaaf10c1ca3d1352fab4c240
4
- data.tar.gz: 53c2cf73966ea4107a4fb4a1ca77192c00ddfec9
3
+ metadata.gz: feccc639bce43160a65f07675f1fafbe3226d302
4
+ data.tar.gz: f56e0a5a447f3b179719d4ef4ddc36b1ed6fd386
5
5
  SHA512:
6
- metadata.gz: 163d31effd14189b54d0e35aec5aaf2cef2cec2ed7cb7198aafc3d688d248a14a20e151d0cf32430636b904ae2e7a70e2adcf3d80004275a178d98551edeaaf5
7
- data.tar.gz: f93a75b58597fc727553c163298137da431fbdb142b75699f7c7c869c2365a59f29e3d7199e43eb88502250d3dd9e7cf81fb0e3a257902b54500d868012e8d70
6
+ metadata.gz: f9a2e8895b9c5250412882027b9288483d6f163f640895544335d5e66eeb5d67d1ba714e83cd738b345925b5411111e5aaf3795996225b4bda6eec409f7e2e8b
7
+ data.tar.gz: 2245c53233957a2200db396f25e3c3c84aac5001e4be13368b976ae8bc1aa1ffca835ca8c0047e2cac33e8eecefdcb8bccdb72658d77178a0e992d5bcad16828
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/kshitijlohani/distinct_output.svg?branch=master)](https://travis-ci.org/kshitijlohani/distinct_output)
1
+ [![Build Status](https://travis-ci.org/kshitijlohani/distinct_output.svg?branch=master)](https://travis-ci.org/kshitijlohani/distinct_output) [![Gem Version](https://badge.fury.io/rb/distinct_output.svg)](http://badge.fury.io/rb/distinct_output)
2
2
  # DistinctOutput
3
3
 
4
4
  DistinctOutput is a ruby gem to displays the output of any variable in a distinct manner so that it becomes easily noticable
@@ -29,7 +29,7 @@ Or install it yourself as:
29
29
 
30
30
  ## Usage
31
31
 
32
- TODO: Write usage instructions here
32
+ TODO:
33
33
 
34
34
  ## Development
35
35
 
@@ -1,3 +1,3 @@
1
1
  module DistinctOutput
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -3,6 +3,9 @@ require 'rainbow'
3
3
 
4
4
  module DistinctOutput
5
5
  def self.show(str)
6
+ if !str.instance_of? String
7
+ str = str.to_s
8
+ end
6
9
  bar_length = str.length + 10
7
10
  bar = '*' * bar_length
8
11
  blank = ' ' * 4
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distinct_output
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kshitij Raj Lohani