swagify 0.0.1 → 0.0.2

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 +4 -4
  2. data/lib/swagify.rb +30 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc3faf75efdc5ac7778c80b9926d293bf61e2746
4
- data.tar.gz: 48e6d19fbeb30671a64f7a45b933846bbe9d7d03
3
+ metadata.gz: 388dca5c66de77f9e03741d171ad47f71096bf7a
4
+ data.tar.gz: 632629d85578f83ffe54538432cfc65684398147
5
5
  SHA512:
6
- metadata.gz: db50591464b8db6324d04bbbfe69a2921ef6aea91a0cbc2ecabd8f7a23f89a1ecb0ecf5a73f3c6efefa3e1a9de475790b30a29b1480284ba57fea310e105545e
7
- data.tar.gz: a533128a5d885d7f4fdcbffa378e9aa41be27f242131d97cc005c42d57a29db8697af1e3f8766090546b71501d03f9093af23c50009c673cb6a699d645b05f5c
6
+ metadata.gz: a27d91b9f6a59b4aa62e601365fd259988b5e03d0f12e33f978fbe699b47c7104f903d0db807296442fa0ade8b505921bfaafe7bc25db14c1d9387cbaedeff54
7
+ data.tar.gz: 62bebe49b2c8124a617ad1353125a4bfd1abfe02dd7208e7ea8fc6ac41dd7203c8e826d237ec062139e1375d8e55e43d41289b00cd23e5d2ad0f924ca565fc7e
@@ -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.1
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-09-25 00:00:00.000000000 Z
11
+ date: 2013-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize