dory 1.1.1 → 1.2.0

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: 659312d1fe7a5260a3d79f8a66858a14bc31fc60c6a7401e3b687237d51f4ba4
4
- data.tar.gz: aff69e2a2a6cc4b489de2ad0ea34fe82af138588bd8abe78987e444d66a7048c
3
+ metadata.gz: 549d83c4d45e42d8e003a9e330f557d9df1806253867bf142f91e0cf58d128f3
4
+ data.tar.gz: 39461444164f87187fc1c2b1ce68ef31bb7f0a7547ccf05a62569762957f061d
5
5
  SHA512:
6
- metadata.gz: a1f644b260ee0b79beb65ec308ab3cbaad934ae5d214bf60ba88fd0037f10bcb9e50d259a573a6344f91eca8d91fbf6f27902149390bab4da836f360e055b53c
7
- data.tar.gz: 49c3141b65dd1cc1e3a98bb4d23602eaa43f04d524c451a8cd1ad52709d1e88d841a69cb6dfde103f22724ea5fef5c9d8db2b8735bd9a46aa68a23d4bece626e
6
+ metadata.gz: 0c4b1ab22d751c3af99dab79bec56af36560abbfb2c23395574062a46fd4849605f201adb355e3a89a1a0dc74b2e3053ce64444cda99f7be1136c3c97fead0cb
7
+ data.tar.gz: 361888e0a5d391eab250fc86a720acbfed1a391f1dc8989bf754fee9270b96b7af58efec52d6bf7ff198284ad91c38d1644f03d8111dbd2d6b8f3c96090b9b3a
data/bin/dory CHANGED
@@ -141,6 +141,10 @@ class DoryBin < Thor
141
141
 
142
142
  private
143
143
 
144
+ def self.exit_on_failure?
145
+ true
146
+ end
147
+
144
148
  def exec_pull(services, _options)
145
149
  servs = services.empty? ? %w[proxy dns] : services
146
150
  servs = sanitize_services(servs)
data/lib/dory/proxy.rb CHANGED
@@ -9,7 +9,7 @@ module Dory
9
9
  return setting if setting
10
10
  certs_dir && !certs_dir.empty? \
11
11
  ? 'codekitchen/dinghy-http-proxy:2.5.10' \
12
- : 'freedomben/dory-http-proxy:2.5.9.1'
12
+ : 'freedomben/dory-http-proxy:2.6.2.2'
13
13
  end
14
14
 
15
15
  def self.container_name
@@ -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.1'
3
+ '1.2.0'
4
4
  end
5
5
 
6
6
  def self.date
7
- '2021-04-06'
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.1
4
+ version: 1.2.0
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: 2021-04-06 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
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.20'
33
+ version: '1.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.20'
40
+ version: '1.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ptools
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.3'
47
+ version: '1.4'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.3'
54
+ version: '1.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: activesupport
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -61,7 +61,7 @@ dependencies:
61
61
  version: '5.2'
62
62
  - - "<"
63
63
  - !ruby/object:Gem::Version
64
- version: '7.0'
64
+ version: '8.0'
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
@@ -71,21 +71,21 @@ dependencies:
71
71
  version: '5.2'
72
72
  - - "<"
73
73
  - !ruby/object:Gem::Version
74
- version: '7.0'
74
+ version: '8.0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rspec
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '3.8'
81
+ version: '3.11'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '3.8'
88
+ version: '3.11'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rake
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -106,42 +106,42 @@ dependencies:
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '10.0'
109
+ version: '11.1'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '10.0'
116
+ version: '11.1'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: codeclimate-test-reporter
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '0.6'
123
+ version: '1.0'
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '0.6'
130
+ version: '1.0'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: rubocop
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '0.58'
137
+ version: '1.36'
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '0.58'
144
+ version: '1.36'
145
145
  description: 'Dory lets you forget about IP addresses and port numbers while you are
146
146
  developing your application. Through the magic of local DNS and a reverse proxy,
147
147
  you can access your app at the domain of your choosing. For example, http://myapp.docker
@@ -174,7 +174,7 @@ homepage: https://github.com/FreedomBen/dory
174
174
  licenses:
175
175
  - MIT
176
176
  metadata: {}
177
- post_install_message:
177
+ post_install_message:
178
178
  rdoc_options: []
179
179
  require_paths:
180
180
  - lib
@@ -189,8 +189,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubygems_version: 3.0.1
193
- signing_key:
192
+ rubygems_version: 3.3.7
193
+ signing_key:
194
194
  specification_version: 4
195
195
  summary: Your development proxy for Docker
196
196
  test_files: []