paintbucket 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ac8d0c05a5683b5a21c22233387f832f7c96a2c0
4
+ data.tar.gz: abd662e207991fbf1f75fd690b4c74dcf60e377a
5
+ SHA512:
6
+ metadata.gz: f9f1e929a84be0e4d1a69035d88884d6e8adaef33170e2184270598dbe19e0d9c24d02bfbff37ac5483589c4033255252c3a5b90c7aeef3ef76b7d601f6148a3
7
+ data.tar.gz: f9d490b8d82e6e3f52fad9119b98973f6182782db49e368c4850c9e708ddc168d1c47677f3b4331494523c166cecaab40ae3271c5f0ee94933ad1180ed69ec57
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ doc
2
+ pkg
3
+ .rake_tasks
4
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,14 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ paintbucket (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+
10
+ PLATFORMS
11
+ ruby
12
+
13
+ DEPENDENCIES
14
+ paintbucket!
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ # Paintbucket
2
+
3
+ > a gem for colorizing console output
4
+
@@ -0,0 +1,4 @@
1
+ module Paintbucket
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,45 @@
1
+ #encoding: utf-8
2
+
3
+ module Colors
4
+ def colorize(text, color_code)
5
+ "\033[#{color_code}m#{text}\033[0m"
6
+ end
7
+
8
+ { :black => 30,
9
+ :red => 31,
10
+ :green => 32,
11
+ :yellow => 33,
12
+ :blue => 34,
13
+ :magenta => 35,
14
+ :cyan => 36,
15
+ :white => 37
16
+ }.each do |key, color_code|
17
+ define_method key do |text|
18
+ colorize(text, color_code)
19
+ end
20
+ end
21
+
22
+ def hint(msg)
23
+ puts black(" #{msg}")
24
+ end
25
+
26
+ def warn(msg)
27
+ puts yellow("⚑ " + msg)
28
+ end
29
+
30
+ def error(msg)
31
+ puts "\n#{colorize("✗ #{msg}", 31)}"
32
+ end
33
+
34
+ def success(msg)
35
+ puts "\n#{colorize("✓ #{msg}", 32)}"
36
+ end
37
+
38
+ def divider
39
+ puts "\n#{cyan("=================================")}"
40
+ end
41
+
42
+ def message(msg)
43
+ puts "\n#{cyan(msg)}\n\n"
44
+ end
45
+ end
data/license.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2014 Pete Brousalis http://github.com/brousalis/paintbucket/
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,12 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "paintbucket"
3
+ s.version = "0.0.1"
4
+ s.author = "Pete Brousalis"
5
+ s.email = "brousapg@gmail.com"
6
+ s.summary = "Small library for colorizing output"
7
+ s.description = "Small library for colorizing output"
8
+ s.homepage = "http://github.com/brousalis/paintbucket/"
9
+
10
+ s.files = `git ls-files`.split($\)
11
+ s.require_paths = ['lib']
12
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: paintbucket
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Pete Brousalis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-19 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Small library for colorizing output
14
+ email: brousapg@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - ".gitignore"
20
+ - Gemfile
21
+ - Gemfile.lock
22
+ - README.md
23
+ - lib/paintbucket.rb
24
+ - lib/paintbucket/paintbucket.rb
25
+ - license.txt
26
+ - paintbucket.gemspec
27
+ homepage: http://github.com/brousalis/paintbucket/
28
+ licenses: []
29
+ metadata: {}
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 2.4.2
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: Small library for colorizing output
50
+ test_files: []