git-runner 0.1.3 → 0.1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git-runner/branch.rb +6 -5
- data/lib/git-runner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d13be1c683410da35909d3e8c1d7fbe9c3b8303
|
4
|
+
data.tar.gz: d647f6bbe2b51f241eab19555a31eadd2a8d94b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8da9af3b157a3c08fa6d23c6d2ddfc9b9af9423a597674ff6a98702df08c21abbe1243d0a7a89db7e4b0faa1201c44cae70b81df5377d0002b6dd5de174443f
|
7
|
+
data.tar.gz: ce7859f4e0058105db57c2915009b16adaf9c7d739beb3652916477ae507b9b87ae21f2010bfb3dcc5ed8695049e2de0e544d02714e0a7847bb64b603895bd63
|
data/lib/git-runner/branch.rb
CHANGED
@@ -24,9 +24,6 @@ module GitRunner
|
|
24
24
|
|
25
25
|
private
|
26
26
|
def extract_instructions
|
27
|
-
# Check if the instructions file exists
|
28
|
-
return unless File.exist?(File.join(repository_path, Configuration.instruction_file))
|
29
|
-
|
30
27
|
# Use git to grep the current branch for instruction lines within the specific instruction file
|
31
28
|
output = Command.execute(
|
32
29
|
"cd #{repository_path}",
|
@@ -35,8 +32,12 @@ module GitRunner
|
|
35
32
|
|
36
33
|
# Process the output to generate instructions
|
37
34
|
output.split("\n").map do |line|
|
38
|
-
|
39
|
-
|
35
|
+
begin
|
36
|
+
Instruction.from_raw(line).tap do |instruction|
|
37
|
+
instruction.branch = self
|
38
|
+
end
|
39
|
+
|
40
|
+
rescue
|
40
41
|
end
|
41
42
|
end
|
42
43
|
end
|
data/lib/git-runner/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.3
|
4
|
+
version: 0.1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-02-
|
11
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: session
|