mgit 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mgit/commands/grep.rb +3 -1
- data/lib/mgit/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: ff636b044f30882e8550777fddc2801c60ab1ff1
|
4
|
+
data.tar.gz: 9144a02cbbec80343fd3b728ddbeaa74374318e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1213de1265ff3e5a917953241112a5d0700500091460e4d5dd8d1322e1f586de00d55f8e1a3f9016c71706a84da29d30dd6823eb59838778a56f58db43ac8035
|
7
|
+
data.tar.gz: dd78a111c0a5ce55530ae72afa410b3abef8bb28e52a829100b5d66cf009f2b95fa89215bee28d663cdfd350d693ecdfe90a93837e8a9bff78c66bcc5c2a889c
|
data/lib/mgit/commands/grep.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'shellwords'
|
2
|
+
|
1
3
|
module MGit
|
2
4
|
class GrepCommand < Command
|
3
5
|
def execute(args)
|
@@ -5,7 +7,7 @@ module MGit
|
|
5
7
|
|
6
8
|
Registry.each do |repo|
|
7
9
|
pinfo "Looking for pattern '#{ptrn}' in repository #{repo.name}..."
|
8
|
-
System.git("grep #{ptrn}", chdir: repo.path, print_stdout: true)
|
10
|
+
System.git("grep '#{Shellwords.escape(ptrn)}'", chdir: repo.path, print_stdout: true)
|
9
11
|
end
|
10
12
|
end
|
11
13
|
|
data/lib/mgit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mgit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FlavourSys Technology GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|