swagify 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/swagify.rb +55 -0
  3. metadata +86 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cc3faf75efdc5ac7778c80b9926d293bf61e2746
4
+ data.tar.gz: 48e6d19fbeb30671a64f7a45b933846bbe9d7d03
5
+ SHA512:
6
+ metadata.gz: db50591464b8db6324d04bbbfe69a2921ef6aea91a0cbc2ecabd8f7a23f89a1ecb0ecf5a73f3c6efefa3e1a9de475790b30a29b1480284ba57fea310e105545e
7
+ data.tar.gz: a533128a5d885d7f4fdcbffa378e9aa41be27f242131d97cc005c42d57a29db8697af1e3f8766090546b71501d03f9093af23c50009c673cb6a699d645b05f5c
@@ -0,0 +1,55 @@
1
+ # #Swagify
2
+ #
3
+ # Swagify is a tiny tool to add swag to your Ruby scripts:
4
+ # symbol and colors, right out of the box.
5
+ #
6
+ # Let's go!
7
+
8
+ class Swagify < Object
9
+
10
+ # ##Symbols
11
+ #
12
+ # `Swagify::cross` returns ✘
13
+ def self.cross
14
+ return "\u2718"
15
+ end
16
+
17
+ # `Swagify::love` returns ♥
18
+ def self.love
19
+ return "\u2665"
20
+ end
21
+
22
+ # `Swagify::tick` returns ✔
23
+ def self.tick
24
+ return "\u2714"
25
+ end
26
+
27
+ # `Swagify::alert` returns ⚠
28
+ def self.alert
29
+ return "\u26A0"
30
+ end
31
+
32
+ # ##Colors
33
+ #
34
+ # We'll use the wonderful colorize gem
35
+ require 'colorize'
36
+
37
+ # ##Power Symbols
38
+ #
39
+ # Where we mix symbols and colors
40
+
41
+ # `Swagify::success` returns a green ✔
42
+ def self.success
43
+ return self.tick.green
44
+ end
45
+
46
+ # `Swagify::fail` returns a red ✘
47
+ def self.fail
48
+ return self.cross.red
49
+ end
50
+
51
+ # `Swagify::warning` returns a yellow ⚠
52
+ def self.warning
53
+ return self.alert.yellow
54
+ end
55
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: swagify
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Giovanni Lodi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: colorize
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Add some swag to your scripts, with symbols and colors
56
+ email: mokagio42@gmail.com
57
+ executables: []
58
+ extensions: []
59
+ extra_rdoc_files: []
60
+ files:
61
+ - lib/swagify.rb
62
+ homepage: http://rubygems.org/gems/swagify
63
+ licenses:
64
+ - MIT
65
+ metadata: {}
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubyforge_project:
82
+ rubygems_version: 2.0.5
83
+ signing_key:
84
+ specification_version: 4
85
+ summary: Swagify your scripts
86
+ test_files: []