swagify 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swagify.rb +30 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 388dca5c66de77f9e03741d171ad47f71096bf7a
|
4
|
+
data.tar.gz: 632629d85578f83ffe54538432cfc65684398147
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a27d91b9f6a59b4aa62e601365fd259988b5e03d0f12e33f978fbe699b47c7104f903d0db807296442fa0ade8b505921bfaafe7bc25db14c1d9387cbaedeff54
|
7
|
+
data.tar.gz: 62bebe49b2c8124a617ad1353125a4bfd1abfe02dd7208e7ea8fc6ac41dd7203c8e826d237ec062139e1375d8e55e43d41289b00cd23e5d2ad0f924ca565fc7e
|
data/lib/swagify.rb
CHANGED
@@ -31,7 +31,7 @@ class Swagify < Object
|
|
31
31
|
|
32
32
|
# ##Colors
|
33
33
|
#
|
34
|
-
# We'll use the wonderful colorize gem
|
34
|
+
# We'll use the wonderful [colorize](https://github.com/fazibear/colorize) gem
|
35
35
|
require 'colorize'
|
36
36
|
|
37
37
|
# ##Power Symbols
|
@@ -52,4 +52,33 @@ class Swagify < Object
|
|
52
52
|
def self.warning
|
53
53
|
return self.alert.yellow
|
54
54
|
end
|
55
|
+
|
56
|
+
# ##Misc
|
57
|
+
#
|
58
|
+
# Other fancy things
|
59
|
+
|
60
|
+
# `Swagify::gandalf_test_failed` returns an angry red Gandalf when your tests fail
|
61
|
+
# courtesy of Mr. [Tancredi](https://github.com/tancredi)
|
62
|
+
def self.gandalf_test_failed
|
63
|
+
gandalf = <<EOF
|
64
|
+
_ _ | .
|
65
|
+
\\ . / \\ / / \\
|
66
|
+
| | . | |
|
67
|
+
| | \\ / \\ / | |
|
68
|
+
| | -- / \\ -- | |
|
69
|
+
| | __/_____\\__ | |
|
70
|
+
|_| | o o | (==_==)
|
71
|
+
(_)______\\( 0 )/______(_)
|
72
|
+
| | ( ) | |
|
73
|
+
| | _/-. \\ / .-\\_ '
|
74
|
+
.__|_|/___/_________\\__\\_______.
|
75
|
+
| ' ' |
|
76
|
+
| YOU SHALL NOT PASS!! |
|
77
|
+
|______________________________|
|
78
|
+
/__---____---__\\
|
79
|
+
'---' '---'
|
80
|
+
EOF
|
81
|
+
return gandalf.red
|
82
|
+
end
|
83
|
+
|
55
84
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giovanni Lodi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|