hoe-git 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,23 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'autotest/restart'
4
+
5
+ # Autotest.add_hook :initialize do |at|
6
+ # at.extra_files << "../some/external/dependency.rb"
7
+ #
8
+ # at.libs << ":../some/external"
9
+ #
10
+ # at.add_exception 'vendor'
11
+ #
12
+ # at.add_mapping(/dependency.rb/) do |f, _|
13
+ # at.files_matching(/test_.*rb$/)
14
+ # end
15
+ #
16
+ # %w(TestA TestB).each do |klass|
17
+ # at.extra_class_map[klass] = "test/test_misc.rb"
18
+ # end
19
+ # end
20
+
21
+ # Autotest.add_hook :run_command do |at|
22
+ # system "rake build"
23
+ # end
@@ -0,0 +1,4 @@
1
+ === 1.0.0 / 2009-06-23
2
+
3
+ * Birthday!
4
+
@@ -0,0 +1,6 @@
1
+ .autotest
2
+ CHANGELOG.rdoc
3
+ Manifest.txt
4
+ README.rdoc
5
+ Rakefile
6
+ lib/hoe/git.rb
@@ -0,0 +1,49 @@
1
+ = hoe-git
2
+
3
+ * http://github.com/jbarnette/hoe-git
4
+
5
+ == Description
6
+
7
+ A Hoe plugin for tighter Git integration. This plugin provides a
8
+ <tt>git:tag</tt> task to automate release tagging and pushing, and I
9
+ expect it'll learn a few more tricks in the future.
10
+
11
+ See the Hoe::Git module for a few configuration options.
12
+
13
+ == Examples
14
+
15
+ # in your Rakefile
16
+ Hoe.plugin :git
17
+
18
+ # in your shell
19
+ $ rake release VERSION=1.0.0
20
+
21
+ In addition to the normal RubyForge release process, this will create
22
+ and push a <tt>v1.0.0</tt> tag.
23
+
24
+ == Installation
25
+
26
+ $ gem install hoe-git
27
+
28
+ == License
29
+
30
+ Copyright 2009 John Barnette (jbarnette@rubyforge.org)
31
+
32
+ Permission is hereby granted, free of charge, to any person obtaining
33
+ a copy of this software and associated documentation files (the
34
+ 'Software'), to deal in the Software without restriction, including
35
+ without limitation the rights to use, copy, modify, merge, publish,
36
+ distribute, sublicense, and/or sell copies of the Software, and to
37
+ permit persons to whom the Software is furnished to do so, subject to
38
+ the following conditions:
39
+
40
+ The above copyright notice and this permission notice shall be
41
+ included in all copies or substantial portions of the Software.
42
+
43
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
44
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
45
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
46
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
47
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
48
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
49
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,16 @@
1
+ $: << "lib"
2
+
3
+ require "rubygems"
4
+ require "hoe"
5
+
6
+ Hoe.plugin :git
7
+
8
+ Hoe.spec "hoe-git" do
9
+ developer "John Barnette", "jbarnette@rubyforge.org"
10
+
11
+ self.extra_rdoc_files = FileList["*.rdoc"]
12
+ self.history_file = "CHANGELOG.rdoc"
13
+ self.readme_file = "README.rdoc"
14
+
15
+ extra_deps << ["hoe", ">= 2.2.0"]
16
+ end
@@ -0,0 +1,32 @@
1
+ # Tasks provided:
2
+ #
3
+ # * <tt>git:tag</t> -- Tag the current version and push the tag to all
4
+ # the <tt>git_remotes</tt>. This task is added as a dependency of
5
+ # the built-in <tt>release</tt> task.
6
+
7
+ module Hoe::Git
8
+ VERSION = "1.0.0"
9
+
10
+ ##
11
+ # Optional: Which remotes do you want to push tags, etc to?
12
+ # [default: %w(origin)]
13
+
14
+ attr_accessor :git_remotes
15
+
16
+ def initialize_git
17
+ self.git_remotes = %w(origin)
18
+ end
19
+
20
+ def define_git_tasks
21
+ desc "Create and push a v#{version} tag."
22
+ task "git:tag" do
23
+ t = "v#{version}"
24
+ v = ENV["VERSION"] || version
25
+
26
+ sh "git tag -f #{t}"
27
+ git_remotes.each { |r| sh "git push -f #{r} tag #{t}" }
28
+ end
29
+
30
+ task :release => "git:tag"
31
+ end
32
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hoe-git
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - John Barnette
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-06-23 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hoe
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.2.0
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: hoe
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.2.0
34
+ version:
35
+ description: |-
36
+ A Hoe plugin for tighter Git integration. This plugin provides a
37
+ <tt>git:tag</tt> task to automate release tagging and pushing, and I
38
+ expect it'll learn a few more tricks in the future.
39
+
40
+ See the Hoe::Git module for a few configuration options.
41
+ email:
42
+ - jbarnette@rubyforge.org
43
+ executables: []
44
+
45
+ extensions: []
46
+
47
+ extra_rdoc_files:
48
+ - Manifest.txt
49
+ - CHANGELOG.rdoc
50
+ - README.rdoc
51
+ files:
52
+ - .autotest
53
+ - CHANGELOG.rdoc
54
+ - Manifest.txt
55
+ - README.rdoc
56
+ - Rakefile
57
+ - lib/hoe/git.rb
58
+ has_rdoc: true
59
+ homepage: http://github.com/jbarnette/hoe-git
60
+ licenses: []
61
+
62
+ post_install_message:
63
+ rdoc_options:
64
+ - --main
65
+ - README.rdoc
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: "0"
73
+ version:
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
79
+ version:
80
+ requirements: []
81
+
82
+ rubyforge_project: hoe-git
83
+ rubygems_version: 1.3.4
84
+ signing_key:
85
+ specification_version: 3
86
+ summary: A Hoe plugin for tighter Git integration
87
+ test_files: []
88
+