dory 1.1.0 → 1.1.2

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
  SHA256:
3
- metadata.gz: fb28a336f3e54a040327c42f065870e7607e8fb57d00a2778f99451b5ce261f4
4
- data.tar.gz: 6cc76d4eb6616392daad1fff9122371d16d4cdc23dac3449d42f33f0106f8a4d
3
+ metadata.gz: 4a4d74d8be89216d01bff9abf28ac2835b08efa4502089b63da4ecc60dd16d63
4
+ data.tar.gz: d19508f6bc476dac87ea5bfb78eb1e22e56124cb3bc0307f6b2d1cf4a3e092a0
5
5
  SHA512:
6
- metadata.gz: f0e192446e0730bfddfc2304b684b297afa81e6356902ba0ffa2ec77f2dd1fd352cf9cde9f47ad6bd26ef7a315f547ea933b8d6f5ef7a6f1cc8bef96f4d2b33e
7
- data.tar.gz: d3289c42819a80fd4d0d2d99acccc43cd55e6a21ae79dbfbacbd41ab242692b6b451444e1b5c3de91d0c161807cc9a176fbbcef73b876f92495a6438df00bdaa
6
+ metadata.gz: a9628ba3c66d893af62c62e020dec602251aa6ce1b83ece68d2666c1982240dbdced5895e35c61bdd0cf8468fa5b7cbec9e6e5a1ccdf0cbcb8a6765025f9fb29
7
+ data.tar.gz: c73488d8413dc178ef668d87eff60d96657e35c9f182fac4205332453ff736be4287d54b4498549a0f2c2f6c0c5baac5cfb1f7f079b60533a3826af25ef4d236
data/lib/dory/config.rb CHANGED
@@ -41,8 +41,6 @@ module Dory
41
41
  domains: # array of domains that will be resolved to the specified address
42
42
  - domain: docker # you can set '#' for a wilcard
43
43
  address: 127.0.0.1 # return for queries against the domain
44
- - domain: dev
45
- address: 127.0.0.1
46
44
  container_name: dory_dnsmasq
47
45
  port: 53 # port to listen for dns requests on. must be 53 on linux. can be anything that's open on macos
48
46
  # kill_others: kill processes bound to the port we need (see previous setting 'port')
@@ -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 /usr/bin/tee #{Shellwords.escape(self.resolv_file)} >/dev/null")
77
+ Bash.run_command("echo -e '#{Bash.escape_single_quotes(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/shell.rb CHANGED
@@ -13,6 +13,11 @@ module Dory
13
13
  end
14
14
 
15
15
  module Bash
16
+ def self.escape_single_quotes(str)
17
+ # Using this technique here: https://stackoverflow.com/a/1315213/2062384
18
+ str.gsub("'", "'\\\\''")
19
+ end
20
+
16
21
  def self.escape_double_quotes(str)
17
22
  str.gsub('"', '\\"')
18
23
  end
data/lib/dory/version.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  module Dory
2
2
  def self.version
3
- '1.1.0'
3
+ '1.1.2'
4
4
  end
5
5
 
6
6
  def self.date
7
- '2019-08-13'
7
+ '2022-09-21'
8
8
  end
9
9
  end
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.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Porter
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-13 00:00:00.000000000 Z
11
+ date: 2022-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -56,16 +56,22 @@ dependencies:
56
56
  name: activesupport
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '5.2'
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '7.0'
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - "~>"
69
+ - - ">="
67
70
  - !ruby/object:Gem::Version
68
71
  version: '5.2'
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '7.0'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: rspec
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +92,14 @@ dependencies:
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: '12.3'
95
+ version: '13.0'
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: '12.3'
102
+ version: '13.0'
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: byebug
99
105
  requirement: !ruby/object:Gem::Requirement
@@ -168,7 +174,7 @@ homepage: https://github.com/FreedomBen/dory
168
174
  licenses:
169
175
  - MIT
170
176
  metadata: {}
171
- post_install_message:
177
+ post_install_message:
172
178
  rdoc_options: []
173
179
  require_paths:
174
180
  - lib
@@ -183,9 +189,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
189
  - !ruby/object:Gem::Version
184
190
  version: '0'
185
191
  requirements: []
186
- rubyforge_project:
187
- rubygems_version: 2.7.6
188
- signing_key:
192
+ rubygems_version: 3.3.7
193
+ signing_key:
189
194
  specification_version: 4
190
195
  summary: Your development proxy for Docker
191
196
  test_files: []