patchr 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/patchr +3 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.2
|
data/bin/patchr
CHANGED
|
@@ -51,8 +51,9 @@ elsif command == "view"
|
|
|
51
51
|
`mate #{patch_file}`
|
|
52
52
|
elsif command == "apply"
|
|
53
53
|
ticket_id = args[0]
|
|
54
|
-
|
|
54
|
+
|
|
55
55
|
puts "applying issue #{ticket_id}"
|
|
56
|
+
attachment = find_attachment(ticket_id)
|
|
56
57
|
|
|
57
58
|
# Create local branch and run tests
|
|
58
59
|
puts "Applying #{attachment.filename} of issue #{ticket_id}"
|
|
@@ -61,7 +62,7 @@ elsif command == "apply"
|
|
|
61
62
|
`git checkout -b #{ticket_id}-#{attachment.filename}`
|
|
62
63
|
patch_file = retrieve_patch_file(ticket_id, attachment)
|
|
63
64
|
`git apply #{patch_file}`
|
|
64
|
-
|
|
65
|
+
puts "patch apply start running tests"
|
|
65
66
|
else
|
|
66
67
|
if command.blank?
|
|
67
68
|
puts "No command given"
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: 0.1.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.1.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Jeroen van Dijk
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-05-
|
|
17
|
+
date: 2010-05-15 00:00:00 +02:00
|
|
18
18
|
default_executable: patchr
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|