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 +4 -4
- data/.gitignore +3 -0
- data/.travis.yml +1 -0
- data/Gemfile +1 -0
- data/README.md +2 -1
- data/lib/distinct_output/version.rb +1 -1
- data/lib/distinct_output.rb +10 -6
- metadata +4 -4
- data/.DS_Store +0 -0
- data/Gemfile.lock +0 -35
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8bfada0816c732556c04d91020b6a5c90dc25ee
|
|
4
|
+
data.tar.gz: 94c0a9dfdc4e3153e40eba1729189e4ae4c9d386
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 736e45bd4a4034bde98709177f80faf1918850f2267bd59b1b5532c25d3d4a2a070a9f6f531c1feec58d98015eab1e1af7ca3f70eeca18db5dcc2c8ab4b9d353
|
|
7
|
+
data.tar.gz: c627fdb40aa2dd2deebca4e3c0231b5528774d686b5072edd3bb97a40d68c23dd816c1b5792836210a1715a00851aee844adb70b586e2a68ae0251c6ee1e5c7c
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
language: ruby
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
[](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/
|
|
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
|
data/lib/distinct_output.rb
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
require "distinct_output/version"
|
|
2
|
+
require 'rainbow'
|
|
2
3
|
|
|
3
4
|
module DistinctOutput
|
|
4
|
-
def self.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
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-
|
|
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
|
-
- ".
|
|
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
|