dory 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dory/resolv/linux.rb +1 -1
- data/lib/dory/resolv/macos.rb +1 -1
- data/lib/dory/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 957594fff3a1fe33b79f720e22ff0877818829ccd515cf3f4f61ef78bab59608
|
4
|
+
data.tar.gz: 863764ffd64719706b2c30b77e5c153c6acc48dab8dd2086d75e32d22f674612
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a397e3fde108c0c04f26832b3eb45152e3d8c627780964c7813bdea3d83b15d8ff7551d2f22c91bed277937db7fca53d070aa76026dc19926bd35485f718a4f7
|
7
|
+
data.tar.gz: f447712fa5f8e6c1d393917dba12a69af729a3d2b33028c1a58e675c40bfe4ab85f47e9985c2d9f81823b4990f009c77223e62b88958f341785d5f106233724c
|
data/lib/dory/resolv/linux.rb
CHANGED
@@ -74,7 +74,7 @@ module Dory
|
|
74
74
|
def self.write_to_file(contents)
|
75
75
|
# have to use this hack cuz we don't run as root :-(
|
76
76
|
puts "Requesting sudo to write to #{self.resolv_file}".green
|
77
|
-
Bash.run_command("echo -e '#{contents}' | sudo tee #{Shellwords.escape(self.resolv_file)} >/dev/null")
|
77
|
+
Bash.run_command("echo -e '#{contents}' | sudo /usr/bin/tee #{Shellwords.escape(self.resolv_file)} >/dev/null")
|
78
78
|
end
|
79
79
|
|
80
80
|
def self.resolv_file_contents
|
data/lib/dory/resolv/macos.rb
CHANGED
@@ -63,7 +63,7 @@ module Dory
|
|
63
63
|
end
|
64
64
|
self.resolv_files.each do |filename|
|
65
65
|
puts "Requesting sudo to write to #{filename}".green
|
66
|
-
Bash.run_command("echo -e '#{self.resolv_contents}' | sudo tee #{Shellwords.escape(filename)} >/dev/null")
|
66
|
+
Bash.run_command("echo -e '#{self.resolv_contents}' | sudo /usr/bin/tee #{Shellwords.escape(filename)} >/dev/null")
|
67
67
|
end
|
68
68
|
rescue DinghyError => e
|
69
69
|
puts e.message.red
|
data/lib/dory/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Porter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|