latest_branch 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ +++ 1.0.3 2007-04-16
2
+
3
+ + 1 bugfix:
4
+ + alias_all_projects: better support for projects within projects (removes trunk/branches from path and then takes folder name)
5
+
1
6
  +++ 1.0.2 2007-04-15
2
7
 
3
8
  + 1 bugfix:
@@ -50,7 +50,9 @@ end
50
50
  path = File.expand_path OPTIONS[:path]
51
51
  prefix = OPTIONS[:prefix]
52
52
 
53
- folders = Dir["#{path}/**/Rakefile"].map {|folder| folder.gsub(path + '/','').gsub('/Rakefile','')}
53
+ folders = Dir["#{path}/**/Rakefile"].map do |folder|
54
+ folder.gsub(path + '/','').gsub('/Rakefile','').gsub('/trunk','').gsub('/branches','')
55
+ end
54
56
  OPTIONS[:ignore].split(',').each do |ignore_me|
55
57
  folders.reject! { |folder| folder =~ /#{ignore_me}/ }
56
58
  end
@@ -2,7 +2,7 @@ module LatestBranch #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
@@ -33,7 +33,7 @@
33
33
  <h1>latest_branch</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/dr_nic_utilities"; return false'>
35
35
  Get Version
36
- <a href="http://rubyforge.org/projects/dr_nic_utilities" class="numbers">1.0.2</a>
36
+ <a href="http://rubyforge.org/projects/dr_nic_utilities" class="numbers">1.0.3</a>
37
37
  </div>
38
38
  <h2>&#x2192; latest_branch -a &lt;proj_name&gt;</h2>
39
39
 
@@ -142,6 +142,14 @@ alias_all_projects --prefix="gem_" --path=~/Documents/ruby/gems/
142
142
  . ~/.project_aliases
143
143
  </pre>
144
144
 
145
+ <h2>Articles</h2>
146
+
147
+
148
+ <ul>
149
+ <li><a href="http://drnicwilliams.com/2007/04/16/aliases-to-the-latest-branch-folder-youre-working-on/">Aliases to the latest branch folder you’re working on</a></li>
150
+ </ul>
151
+
152
+
145
153
  <h2>Licence</h2>
146
154
 
147
155
 
@@ -153,7 +161,7 @@ alias_all_projects --prefix="gem_" --path=~/Documents/ruby/gems/
153
161
 
154
162
  <p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
155
163
  <p class="coda">
156
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 15th April 2007<br>
164
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 16th April 2007<br>
157
165
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
158
166
  </p>
159
167
  </div>
@@ -83,6 +83,10 @@ alias_all_projects --prefix="gem_" --path=~/Documents/ruby/gems/
83
83
  . ~/.project_aliases
84
84
  </pre>
85
85
 
86
+ h2. Articles
87
+
88
+ * "Aliases to the latest branch folder you’re working on":http://drnicwilliams.com/2007/04/16/aliases-to-the-latest-branch-folder-youre-working-on/
89
+
86
90
  h2. Licence
87
91
 
88
92
  This code is free to use under the terms of the MIT licence.
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: latest_branch
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.2
7
- date: 2007-04-15 00:00:00 +02:00
6
+ version: 1.0.3
7
+ date: 2007-04-16 00:00:00 +02:00
8
8
  summary: Return the most-recently-updated folder starting with a common prefix.
9
9
  require_paths:
10
10
  - lib