mailcatcher 0.9.0.beta1 → 0.9.0.beta2

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: e94dc4df935cf6aeaee24bd395cc330bf80a40cbd1df7aed84d01f3cde54384f
4
- data.tar.gz: 529855d07ca1f476d343530827b8a5ac30c0c8cf308b5f88151a6d81e7317748
3
+ metadata.gz: 7361c3ba8c5adf33afeaddf271e24b2d9fd5aa0df4e5e80105420cb20c4b1d5e
4
+ data.tar.gz: 7c855d8ea9705bb789251a761412c658ab8897e4b88d81e4e2018cd0ab944d75
5
5
  SHA512:
6
- metadata.gz: 530be9dc5d8d1438a1d7fb658e473fbda989127fe66cf94c6e8837c865f14c281b3baa91bb063cc6fbf7c5eedd48723f547d6e4af3525b9547a2369c8d9bb390
7
- data.tar.gz: 0d9673baca52ad1c96b8d58370ef64f58ebfd7e54eb24500112a86a1efc370ca5d403ba9675740d8b1d4ce3fb80c5095694e5b5d01d297bbb68c882f9b7c565b
6
+ metadata.gz: f24b4205bb98eadd08e64331bfbe49b45f16f57ed3fda53589228e194cf7520af7acad0ff545578336b213f6779d47856d07f40c6129663292aa33edb59ae695
7
+ data.tar.gz: 69260563ed100eccf584e35a77cec18f1c236ec48edfc804942992b851d4e381dd4ca016ee8a7d917fb67f63e74a6530afb1030ad17539037fcad0e25b88e484
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- ,�e��$��o���[2;rJB��S�pLhF=]í���f�oֶ
2
- Xz�=m/�����y
3
- ����}� 8-�$G�P
1
+ �aw����USX�r��|����`�C���s�|xD#C\fҧoY��Y���
2
+ x��A'��Y[���Z8�����Dc^>Z} 3����p��9n��WO�T�ʵ
data/README.md CHANGED
@@ -50,6 +50,14 @@ MailCatcher v0.8.0
50
50
  --version Display the current version
51
51
  ```
52
52
 
53
+ ### Upgrading
54
+
55
+ Upgrading works the same as installation:
56
+
57
+ ```
58
+ gem install mailcatcher
59
+ ```
60
+
53
61
  ### Ruby
54
62
 
55
63
  If you have trouble with the setup commands, make sure you have [Ruby installed](https://www.ruby-lang.org/en/documentation/installation/):
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailCatcher
4
- VERSION = "0.9.0.beta1"
4
+ VERSION = "0.9.0.beta2"
5
5
  end
data/lib/mail_catcher.rb CHANGED
@@ -185,12 +185,18 @@ module MailCatcher extend self
185
185
  end
186
186
 
187
187
  # Let Thin set itself up inside our EventMachine loop
188
- # (Skinny/WebSockets just works on the inside)
188
+ # Faye connections are hijacked but continue to be supervised by thin
189
189
  rescue_port options[:http_port] do
190
- Thin::Server.start(options[:http_ip], options[:http_port], Web)
190
+ Thin::Server.start(options[:http_ip], options[:http_port], Web, signals: false)
191
191
  puts "==> #{http_url}"
192
192
  end
193
193
 
194
+ # Make sure we quit nicely when asked
195
+ # We need to handle outside the trap context, hence the timer
196
+ %w(INT TERM QUIT).each do |signal|
197
+ trap(signal) { EM.add_timer(0) { quit! } }
198
+ end
199
+
194
200
  # Open the web browser before detatching console
195
201
  if options[:browse]
196
202
  EventMachine.next_tick do
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailcatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.beta1
4
+ version: 0.9.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Cochran
@@ -29,7 +29,7 @@ cert_chain:
29
29
  AAMioxgB6J5QhXQ42OSWIzwHZIbSv3DV9Lf5sde50HIW5f9u5jn29TUGDhSWYKkh
30
30
  LDvy9dfwMMOdIZi75Q8SBBib84AuwhMHIlUv9FcHhh3dXsDDYkrVrpUAwCsG6yCm
31
31
  -----END CERTIFICATE-----
32
- date: 2022-07-04 00:00:00.000000000 Z
32
+ date: 2023-01-29 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: eventmachine
@@ -135,14 +135,14 @@ dependencies:
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.5.0
138
+ version: '1.8'
139
139
  type: :runtime
140
140
  prerelease: false
141
141
  version_requirements: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.5.0
145
+ version: '1.8'
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: capybara
148
148
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file