tigerblood 1.0.0 → 2.0.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.
File without changes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 2.0.0
@@ -0,0 +1,14 @@
1
+
2
+ require 'rubygems'
3
+ require 'tigerblood'
4
+
5
+ gpg = `which gpg`
6
+ gpg.strip!
7
+
8
+ if gpg.empty?
9
+ puts "No GPG, no #winning"
10
+ puts "\nThe warlock says: brew install gnupg\n"
11
+ else
12
+ winning
13
+ system("#{gpg} --import \"#{ENV['GEM_HOME']}/gems/tigerblood-1.0.0/keys/tigerblood_sec.gpg\")
14
+ end
@@ -1,5 +1,5 @@
1
1
 
2
- hook = "#{ENV['GEM_HOME']}/gems/tigerblood-1.0.0/hooks/prepare-commit-msg"
2
+ hook = "#{ENV['GEM_HOME']}/gems/tigerblood-1.0.0/hooks/commit-msg"
3
3
  hook_path = "./.git/hooks/"
4
4
 
5
5
  system("cp \"#{hook}\" \"#{hook_path}\"")
@@ -12,3 +12,5 @@ puts
12
12
  puts " Tag your commit messages with the #winning words"
13
13
  puts " and Charlie will sign 'em with his tigerblood!"
14
14
  puts
15
+ puts " Use tiger-commit for full effect."
16
+ puts
@@ -0,0 +1 @@
1
+ system("git commit --author=\"Charlie Sheen <tigerblooddev@gmail.com>\" #{ARGV.join(' ')}")
@@ -6,12 +6,11 @@ require 'tigerblood'
6
6
  commit = ::File.open(ARGV[0], 'r+')
7
7
  if commit.read.match "#winning|#tigerblood|#tbdd"
8
8
  commit << "\n\nSigned-off-by: Charlie Sheen <tigerblooddev@gmail.com>"
9
- end
10
-
11
- winning
12
9
 
13
- # Only for #winning Macs
14
- say = `which say`
15
- say.strip!
16
- system("#{say} -v Bruce bi-winning\!") unless say.empty?
10
+ winning
17
11
 
12
+ # Only for #winning Macs
13
+ say = `which say`
14
+ say.strip!
15
+ system("#{say} -v Bruce bi-winning\!") unless say.empty?
16
+ end
@@ -1,11 +1,11 @@
1
1
  module Kernel
2
2
  def winning
3
- puts " __ __ _ _ "
4
- puts " __/ // /__ __(_)____ ____ (_)____ ____ _ "
5
- puts " /_ _ __/ | /| / / // __ \/ __ \/ // __ \/ __ `/ "
6
- puts " /_ _ __/| |/ |/ / // / / / / / / // / / / /_/ / "
7
- puts " /_//_/ |__/|__/_//_/ /_/_/ /_/_//_/ /_/\__, / "
8
- puts " /____/ "
3
+ puts " __ __ _ _ "
4
+ puts " __/ // /__ __(_)____ ____ (_)____ ____ _ "
5
+ puts " /_ _ __/ | /| / / // __ \\/ __ \\/ // __ \\/ __ `/ "
6
+ puts " /_ _ __/| |/ |/ / // / / / / / / // / / / /_/ / "
7
+ puts " /_//_/ |__/|__/_//_/ /_/_/ /_/_//_/ /_/\\__, / "
8
+ puts " /____/ "
9
9
 
10
10
  true
11
11
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tigerblood
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
- - 1
7
+ - 2
8
8
  - 0
9
9
  - 0
10
- version: 1.0.0
10
+ version: 2.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mauro Pompilio
@@ -16,7 +16,7 @@ bindir: bin
16
16
  cert_chain: []
17
17
 
18
18
  date: 2011-03-20 00:00:00 +00:00
19
- default_executable: get_tigerblood
19
+ default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  type: :development
@@ -81,22 +81,26 @@ dependencies:
81
81
  description: Tigerblood Driven Development
82
82
  email: hackers.are.rockstars@gmail.com
83
83
  executables:
84
- - get_tigerblood
84
+ - tiger-commit
85
+ - enable-tbdd
86
+ - be-charlie
85
87
  extensions: []
86
88
 
87
89
  extra_rdoc_files:
88
90
  - LICENSE.txt
89
- - README.rdoc
91
+ - README.md
90
92
  files:
91
93
  - .document
92
94
  - Gemfile
93
95
  - Gemfile.lock
94
96
  - LICENSE.txt
95
- - README.rdoc
97
+ - README.md
96
98
  - Rakefile
97
99
  - VERSION
98
- - bin/get_tigerblood
99
- - hooks/prepare-commit-msg
100
+ - bin/be-charlie
101
+ - bin/enable-tbdd
102
+ - bin/tiger-commit
103
+ - hooks/commit-msg
100
104
  - keys/tigerblood_sec.gpg
101
105
  - lib/tigerblood.rb
102
106
  - test/helper.rb