Legit-the-Git 0.0.1 → 0.0.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.
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "Legit-the-Git"
6
- s.version = "0.0.1"
6
+ s.version = "0.0.2"
7
7
 
8
8
  s.summary = "Git accurev bridge"
9
9
  s.description = "Git hooks to help keep accurev and git in sync"
@@ -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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Grayson Manley