distinct_output 0.0.2 → 0.1.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: 8d9c0ecf6685c3a1cdf9e12e24b0ab4992b8d1a2
4
- data.tar.gz: 9e24b67d0b034520a6c9bab25a6eae9a096c1a1d
3
+ metadata.gz: c8bfada0816c732556c04d91020b6a5c90dc25ee
4
+ data.tar.gz: 94c0a9dfdc4e3153e40eba1729189e4ae4c9d386
5
5
  SHA512:
6
- metadata.gz: 1bb30195506b63c4e553caf43244797a1a9fd2d1f0ac79971a413df881e5cfda052706f5cf07805592b52e1a2bda3fabc2c6d527e55cba8944802353e806cc7d
7
- data.tar.gz: ce0001ccfc15c46f93c0a4a60e9db4237b2dd05ed70bf370c1532269df3d2a14183a07039254e1e583b1f98492c610ac374c55008490a4542b9626af8deb7f2a
6
+ metadata.gz: 736e45bd4a4034bde98709177f80faf1918850f2267bd59b1b5532c25d3d4a2a070a9f6f531c1feec58d98015eab1e1af7ca3f70eeca18db5dcc2c8ab4b9d353
7
+ data.tar.gz: c627fdb40aa2dd2deebca4e3c0231b5528774d686b5072edd3bb97a40d68c23dd816c1b5792836210a1715a00851aee844adb70b586e2a68ae0251c6ee1e5c7c
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ Gemfile.lock
2
+ pkg
3
+ .DS_Store
data/.travis.yml ADDED
@@ -0,0 +1 @@
1
+ language: ruby
data/Gemfile CHANGED
@@ -2,3 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in distinct_output.gemspec
4
4
  gemspec
5
+ gem 'rainbow'
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Build Status](https://travis-ci.org/kshitijlohani/distinct_output.svg?branch=master)](https://travis-ci.org/kshitijlohani/distinct_output)
1
2
  # DistinctOutput
2
3
 
3
4
  DistinctOutput is a ruby gem to displays the output of any variable in a distinct manner so that it becomes easily noticable
@@ -38,7 +39,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
38
39
 
39
40
  ## Contributing
40
41
 
41
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/distinct_output. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
42
+ Bug reports and pull requests are welcome on GitHub at https://github.com/kshitijlohani/distinct_output. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
42
43
 
43
44
 
44
45
  ## License
@@ -1,3 +1,3 @@
1
1
  module DistinctOutput
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -1,11 +1,15 @@
1
1
  require "distinct_output/version"
2
+ require 'rainbow'
2
3
 
3
4
  module DistinctOutput
4
- def self.hi(str)
5
- puts
6
- puts '///////////////////////'
7
- puts str
8
- puts '//////////////////////'
9
- puts
5
+ def self.show(str)
6
+ bar_length = str.length + 10
7
+ bar = '*' * bar_length
8
+ blank = ' ' * 4
9
+ puts
10
+ puts Rainbow(bar).green
11
+ puts blank + Rainbow(str).blue
12
+ puts Rainbow(bar).green
13
+ puts
10
14
  end
11
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distinct_output
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kshitij Raj Lohani
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-21 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,10 +59,10 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - ".DS_Store"
62
+ - ".gitignore"
63
+ - ".travis.yml"
63
64
  - CODE_OF_CONDUCT.md
64
65
  - Gemfile
65
- - Gemfile.lock
66
66
  - LICENSE.txt
67
67
  - README.md
68
68
  - Rakefile
data/.DS_Store DELETED
Binary file
data/Gemfile.lock DELETED
@@ -1,35 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- distinct_output (0.0.2)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- diff-lcs (1.2.5)
10
- rake (10.4.2)
11
- rspec (3.3.0)
12
- rspec-core (~> 3.3.0)
13
- rspec-expectations (~> 3.3.0)
14
- rspec-mocks (~> 3.3.0)
15
- rspec-core (3.3.2)
16
- rspec-support (~> 3.3.0)
17
- rspec-expectations (3.3.1)
18
- diff-lcs (>= 1.2.0, < 2.0)
19
- rspec-support (~> 3.3.0)
20
- rspec-mocks (3.3.2)
21
- diff-lcs (>= 1.2.0, < 2.0)
22
- rspec-support (~> 3.3.0)
23
- rspec-support (3.3.0)
24
-
25
- PLATFORMS
26
- ruby
27
-
28
- DEPENDENCIES
29
- bundler (~> 1.10)
30
- distinct_output!
31
- rake (~> 10.0)
32
- rspec
33
-
34
- BUNDLED WITH
35
- 1.10.4