stencil 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/gemspec.rb +1 -1
- data/lib/stencil/merge.rb +12 -9
- data/require.rb +1 -1
- metadata +6 -5
data/gemspec.rb
CHANGED
data/lib/stencil/merge.rb
CHANGED
@@ -84,17 +84,20 @@ class Stencil
|
|
84
84
|
def progressive(path, branches, push)
|
85
85
|
merger = branches.shift
|
86
86
|
mergee = branches.first
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
87
|
+
branches.each do |mergee|
|
88
|
+
if merger && mergee
|
89
|
+
ok = mergee[0..merger.length-1] == merger || merger == 'master'
|
90
|
+
unless merger.empty? || mergee.empty? || !ok
|
91
|
+
output = Cmd.run path, "git checkout #{mergee}"
|
92
|
+
Msg.error(output) if output.downcase.include?('error')
|
93
|
+
Msg.merging_x_into_y merger, mergee
|
94
|
+
output = Cmd.run path, "git merge #{merger}"
|
95
|
+
Msg.error(output) if output.downcase.include?('conflict')
|
96
|
+
Cmd.run(path, "git push origin #{mergee}") if push
|
97
|
+
end
|
95
98
|
end
|
96
|
-
progressive(path, branches, push)
|
97
99
|
end
|
100
|
+
progressive(path, branches, push) unless branches.empty?
|
98
101
|
end
|
99
102
|
end
|
100
103
|
end
|
data/require.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stencil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.5
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Winton Welsh
|
@@ -9,7 +10,7 @@ autorequire:
|
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
12
|
|
12
|
-
date:
|
13
|
+
date: 2011-08-18 00:00:00 -07:00
|
13
14
|
default_executable:
|
14
15
|
dependencies: []
|
15
16
|
|
@@ -46,21 +47,21 @@ rdoc_options: []
|
|
46
47
|
require_paths:
|
47
48
|
- lib
|
48
49
|
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
49
51
|
requirements:
|
50
52
|
- - ">="
|
51
53
|
- !ruby/object:Gem::Version
|
52
54
|
version: "0"
|
53
|
-
version:
|
54
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
55
57
|
requirements:
|
56
58
|
- - ">="
|
57
59
|
- !ruby/object:Gem::Version
|
58
60
|
version: "0"
|
59
|
-
version:
|
60
61
|
requirements: []
|
61
62
|
|
62
63
|
rubyforge_project:
|
63
|
-
rubygems_version: 1.
|
64
|
+
rubygems_version: 1.6.1
|
64
65
|
signing_key:
|
65
66
|
specification_version: 3
|
66
67
|
summary: Project template manager
|