wtc 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ pkg/*
2
+ *.gem
3
+ .bundle
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --profile
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in wtc.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # What The Commit
2
+
3
+ Commits any changes with a message from [What The Commit](http://whatthecommit.com)
4
+
5
+ ## How To Install
6
+
7
+ gem install wtc
8
+
9
+ ## Example
10
+
11
+ Write some code...
12
+
13
+ wtc
14
+ ##
15
+ # [master 98d06bb] Shovelling coal into the server...
16
+ # 1 files changed, 1 insertions(+), 4 deletions(-)
17
+ ##
18
+
19
+ ## Note on Patches/Pull Requests
20
+
21
+ * Fork the project.
22
+ * Create a feature branch
23
+ * Make your feature addition or bug fix.
24
+ * Add tests.
25
+ * Commit, do not mess with RakeFile, version, or history.
26
+ * Send me a pull request.
27
+
28
+ ## Copyright
29
+
30
+ Copyright (c) 2010 Red Davis.
31
+
32
+ ## License
33
+
34
+ The MIT License
35
+
36
+ Permission is hereby granted, free of charge, to any person obtaining a copy
37
+ of this software and associated documentation files (the "Software"), to deal
38
+ in the Software without restriction, including without limitation the rights
39
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
40
+ copies of the Software, and to permit persons to whom the Software is
41
+ furnished to do so, subject to the following conditions:
42
+
43
+ The above copyright notice and this permission notice shall be included in
44
+ all copies or substantial portions of the Software.
45
+
46
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
47
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
49
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
50
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
51
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
52
+ THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,9 @@
1
+ require 'bundler'
2
+ require 'rspec/core/rake_task'
3
+
4
+ Bundler::GemHelper.install_tasks
5
+
6
+ desc "Run specs"
7
+ RSpec::Core::RakeTask.new
8
+
9
+ task :default => :spec
data/bin/wtc ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ require "net/http"
3
+ require "uri"
4
+ message = Net::HTTP.get(URI.parse("http://whatthecommit.com/")).match(/<p>(.+)<\/p>/m)[1].strip
5
+ puts %x{git add -u && git commit -m "#{message}"}
@@ -0,0 +1,3 @@
1
+ module Wtc
2
+ VERSION = "0.0.1"
3
+ end
data/wtc.gemspec ADDED
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "wtc/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "wtc"
7
+ s.version = Wtc::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Red Davis"]
10
+ s.email = ["red@railslove.com"]
11
+ s.homepage = "http://github.com/railslove"
12
+ s.summary = %q{Write git commits using whatthecommit.com}
13
+ s.description = %q{Write git commits using whatthecommit.com}
14
+
15
+ s.rubyforge_project = "wtc"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+ end
metadata ADDED
@@ -0,0 +1,75 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wtc
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Red Davis
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-11-24 00:00:00 +00:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: Write git commits using whatthecommit.com
23
+ email:
24
+ - red@railslove.com
25
+ executables:
26
+ - wtc
27
+ extensions: []
28
+
29
+ extra_rdoc_files: []
30
+
31
+ files:
32
+ - .gitignore
33
+ - .rspec
34
+ - Gemfile
35
+ - README.md
36
+ - Rakefile
37
+ - bin/wtc
38
+ - lib/wtc/version.rb
39
+ - wtc.gemspec
40
+ has_rdoc: true
41
+ homepage: http://github.com/railslove
42
+ licenses: []
43
+
44
+ post_install_message:
45
+ rdoc_options: []
46
+
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ hash: 3
55
+ segments:
56
+ - 0
57
+ version: "0"
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ hash: 3
64
+ segments:
65
+ - 0
66
+ version: "0"
67
+ requirements: []
68
+
69
+ rubyforge_project: wtc
70
+ rubygems_version: 1.3.7
71
+ signing_key:
72
+ specification_version: 3
73
+ summary: Write git commits using whatthecommit.com
74
+ test_files: []
75
+