branch_raker 0.0.1 → 0.0.2
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.
- data/README.rdoc +27 -2
- data/lib/branch_raker.rb +8 -7
- data/lib/branch_raker/version.rb +2 -2
- metadata +3 -2
data/README.rdoc
CHANGED
@@ -6,7 +6,9 @@
|
|
6
6
|
|
7
7
|
== What is Branch Raker?
|
8
8
|
|
9
|
-
|
9
|
+
Branch Raker is implemented as a set of rake tasks.
|
10
|
+
The default action will build the most recent unbuilt commit for each branch.
|
11
|
+
Given access to a git repository, Branch Raker can be used to automatically maintain a build history for your project.
|
10
12
|
|
11
13
|
== Installation
|
12
14
|
|
@@ -24,7 +26,30 @@ Or install it yourself as:
|
|
24
26
|
|
25
27
|
== Using Branch Raker
|
26
28
|
|
27
|
-
|
29
|
+
At the top of your Rakefile add
|
30
|
+
|
31
|
+
require 'branch_raker'
|
32
|
+
include BranchRaker
|
33
|
+
|
34
|
+
then define your make method:
|
35
|
+
|
36
|
+
module BranchRaker
|
37
|
+
def make src_dir, out_dir
|
38
|
+
# code that builds your project's source located in src_dir and saves the build to out_dir
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
Running
|
43
|
+
|
44
|
+
$ rake
|
45
|
+
|
46
|
+
will execute the default task +build:all+.
|
47
|
+
|
48
|
+
Other available rake tasks include:
|
49
|
+
|
50
|
+
* <tt>built:current</tt> lists branches with up to date builds.
|
51
|
+
* <tt>built:stale</tt> lists branches whose latest commit has not been built.
|
52
|
+
* (not yet implemented) <tt>build:branch[branch]</tt> builds named branch if its latest commit has not been built. If no branch given, builds current head.
|
28
53
|
|
29
54
|
== Development
|
30
55
|
|
data/lib/branch_raker.rb
CHANGED
@@ -132,12 +132,13 @@ module BranchRaker
|
|
132
132
|
build_group @stale unless @stale.empty?
|
133
133
|
end
|
134
134
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
135
|
+
# FIXME
|
136
|
+
# task :branch, [:branch] => 'built:stale' do |t, args|
|
137
|
+
# args.with_defaults :branch => nil
|
138
|
+
# head = args[:branch].nil? ? Grit::Head.current(REPO) : REPO.get_head(args[:branch])
|
139
|
+
# unless @current.map{ |c| c.id }.include?(head.commit.id)
|
140
|
+
# build head.commit, head.name, "#{Time.now.to_i} (#{head.name})"
|
141
|
+
# end
|
142
|
+
# end
|
142
143
|
end
|
143
144
|
end
|
data/lib/branch_raker/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: branch_raker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: grit
|
@@ -102,3 +102,4 @@ signing_key:
|
|
102
102
|
specification_version: 3
|
103
103
|
summary: Intelligently builds the latest commit on all of your Git branches.
|
104
104
|
test_files: []
|
105
|
+
has_rdoc:
|