Legit-the-Git 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/legit-the-git.gemspec +1 -1
- data/lib/accuhook/command.rb +5 -4
- metadata +3 -3
data/legit-the-git.gemspec
CHANGED
data/lib/accuhook/command.rb
CHANGED
@@ -8,18 +8,18 @@ module AccuHook
|
|
8
8
|
|
9
9
|
def add(file_path)
|
10
10
|
if File.directory?(file_path) # Recursively add directory (`accurev add -x -R {Dir}`)
|
11
|
-
execute("add -x -R #{file_path}")
|
11
|
+
execute("add -x -R \"#{file_path}\"")
|
12
12
|
else # Add single file (`accurev add {File}`)
|
13
|
-
execute("add #{file_path}")
|
13
|
+
execute("add \"#{file_path}\"")
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
17
|
def keep(file_path, message)
|
18
|
-
execute("keep -c #{message} #{file_path}")
|
18
|
+
execute("keep -c \"#{message}\" \"#{file_path}\"")
|
19
19
|
end
|
20
20
|
|
21
21
|
def defunct(file_path, message)
|
22
|
-
execute("defunct -c #{@last_commit_message} #{diff.a_path}")
|
22
|
+
execute("defunct -c \"#{@last_commit_message}\" \"#{diff.a_path}\"")
|
23
23
|
end
|
24
24
|
|
25
25
|
private
|
@@ -27,6 +27,7 @@ module AccuHook
|
|
27
27
|
args = Shellwords.split(command)
|
28
28
|
escaped_args = args.map {|arg| Shellwords.escape(arg)}
|
29
29
|
sub_command = Shellwords.join(escaped_args)
|
30
|
+
#puts "Running accurev #{sub_command}"
|
30
31
|
system("accurev #{sub_command}")
|
31
32
|
end
|
32
33
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Legit-the-Git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Grayson Manley
|