subtrigger 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
@@ -78,7 +78,7 @@ module Subtrigger
78
78
  project_name = $1
79
79
  top_level_dir = case dir
80
80
  when /^(.*\/trunk)/: $1
81
- when /^(.*\/(?:tags|branches)\/\w+)/: $1
81
+ when /^(.*\/(?:tags|branches)\/[\w\-]+)/: $1
82
82
  end
83
83
  projects << project_name
84
84
  yield top_level_dir, project_name if block_given?
data/subtrigger.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{subtrigger}
8
- s.version = "0.2.6"
8
+ s.version = "0.2.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Arjan van der Gaag"]
@@ -42,7 +42,7 @@ class TestRepository < Test::Unit::TestCase
42
42
  should 'return changed project names' do
43
43
  lines = <<-EOS
44
44
  www.project1.com/trunk
45
- www.project2.com/trunk/inc
45
+ www.project2.com/branches/FB-feature
46
46
  sub/www.project2.com/tags/v1
47
47
  sub/www.project2.com/tags/v1/test
48
48
  EOS
@@ -53,14 +53,14 @@ EOS
53
53
  should 'yield changed directories' do
54
54
  lines = <<-EOS
55
55
  www.project1.com/trunk
56
- www.project2.com/trunk/inc
56
+ www.project2.com/branches/FB-feature
57
57
  sub/www.project2.com/tags/v1
58
58
  sub/www.project2.com/tags/v1/test
59
59
  EOS
60
60
  @r.expects(:look_at).with('dirs-changed').returns(lines)
61
61
  yieldings = [
62
62
  ['www.project1.com/trunk', 'www.project1.com'],
63
- ['www.project2.com/trunk', 'www.project2.com'],
63
+ ['www.project2.com/branches/FB-feature', 'www.project2.com'],
64
64
  ['sub/www.project2.com/tags/v1', 'www.project2.com'],
65
65
  ['sub/www.project2.com/tags/v1', 'www.project2.com']
66
66
  ]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 6
9
- version: 0.2.6
8
+ - 7
9
+ version: 0.2.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Arjan van der Gaag