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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a864d92e6cb5a13926592e78db2a4ca1a0892131
4
- data.tar.gz: b8e77522a483f293d4fe5bfe8acba45a88c3a620
3
+ metadata.gz: ff636b044f30882e8550777fddc2801c60ab1ff1
4
+ data.tar.gz: 9144a02cbbec80343fd3b728ddbeaa74374318e2
5
5
  SHA512:
6
- metadata.gz: ff6fed45af97d221ea5760f480ca10e5cd55bbd23b6a650e9e1b4f2c3b5a18116caf1be8fab15fa1696c86de27b3604f2a9844b1d00e5fdf00f2269025bd8180
7
- data.tar.gz: 3252a3ccfe20945ab5c2e6c2f040150afa9603aef41793b24a882ad5dbb0023779b720c375960e1931abacb58628c79707a177c8573fcac00da99990f43298f1
6
+ metadata.gz: 1213de1265ff3e5a917953241112a5d0700500091460e4d5dd8d1322e1f586de00d55f8e1a3f9016c71706a84da29d30dd6823eb59838778a56f58db43ac8035
7
+ data.tar.gz: dd78a111c0a5ce55530ae72afa410b3abef8bb28e52a829100b5d66cf009f2b95fa89215bee28d663cdfd350d693ecdfe90a93837e8a9bff78c66bcc5c2a889c
@@ -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
@@ -1,3 +1,3 @@
1
1
  module MGit
2
- VERSION = '0.4.11'
2
+ VERSION = '0.4.12'
3
3
  end
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.11
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-08-18 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize