dreamcat4-braid 0.533 → 0.534

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/braid.gemspec +1 -1
  2. data/lib/braid/rspec_git.rb +10 -1
  3. metadata +1 -1
data/braid.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{braid}
3
- s.version = "0.533"
3
+ s.version = "0.534"
4
4
 
5
5
  s.specification_version = 2 if s.respond_to? :specification_version=
6
6
 
@@ -29,13 +29,22 @@ module RSpec
29
29
  msg "Error updating #{r[:name]}"
30
30
  exit 1
31
31
  end
32
+
32
33
  else
33
34
  msg "** Fetching #{r[:name]}"
34
35
  unless system "git clone #{r[:url]} #{r[:path]}"
35
36
  msg "Error cloning #{r[:url]}"
36
37
  exit 1
37
- end
38
+ end
39
+ unless target == "master"
40
+ unless system "cd #{r[:path]} && git checkout -b #{target} origin/#{target}"
41
+ msg "Error checking out branch #{target}"
42
+ exit 1
43
+ end
44
+ end
45
+ msg "*** repo #{r[:name]} created successfully ***"
38
46
  end
47
+
39
48
  end
40
49
  msg "*** all repos updated successfully ***"
41
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dreamcat4-braid
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.533"
4
+ version: "0.534"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cristi Balan