dory 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dory/proxy.rb +1 -1
- data/lib/dory/resolv/linux.rb +1 -1
- data/lib/dory/shell.rb +1 -5
- data/lib/dory/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d01285b0664679cec22a681a03f5549c6ec356da
|
4
|
+
data.tar.gz: bed49d308c34623e9bb4271d9ae7a8358c7ee080
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d027b5ff82b40885ae9634cdccfa2a1332c933cd921bdff776478d6fad155c42bc9f686be7e6b4904e9c419af545a2f4b61895abdee9bad48f5e7d729ed751d3
|
7
|
+
data.tar.gz: 9ab478060ba21bfed250f721ec6472977d5a1e02a84796f26f0cfbdfed6f4b147412f2d37d0106700f10efa2c8ca6f1c62818a27f151dc0f6de84b4c89644c69
|
data/lib/dory/proxy.rb
CHANGED
data/lib/dory/resolv/linux.rb
CHANGED
@@ -51,7 +51,7 @@ module Dory
|
|
51
51
|
prev_conts = self.resolv_file_contents
|
52
52
|
unless self.contents_has_our_nameserver?(prev_conts)
|
53
53
|
if prev_conts =~ /nameserver/
|
54
|
-
prev_conts.sub!(
|
54
|
+
prev_conts.sub!(/nameserver/, "#{self.nameserver_contents}\nnameserver")
|
55
55
|
else
|
56
56
|
prev_conts = "#{prev_conts}\n#{self.nameserver_contents}"
|
57
57
|
end
|
data/lib/dory/shell.rb
CHANGED
@@ -13,12 +13,8 @@ module Dory
|
|
13
13
|
end
|
14
14
|
|
15
15
|
module Bash
|
16
|
-
def self.escape_double_quotes(str)
|
17
|
-
str.gsub('"', '\\"')
|
18
|
-
end
|
19
|
-
|
20
16
|
def self.run_command(command)
|
21
|
-
stdout = `bash -c "#{
|
17
|
+
stdout = `bash -c "#{command}"`
|
22
18
|
OpenStruct.new({
|
23
19
|
success?: $?.exitstatus == 0,
|
24
20
|
exitstatus: $?.exitstatus,
|
data/lib/dory/version.rb
CHANGED