Why? The recommended method (as detailed on the repo README)
is using `gem install mailcatcher` and then running `mailcatcher`.
With that I get:
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `require': cannot load such file -- rubyeventmachine (LoadError)
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:39:in `require'
from /usr/local/share/gems/gems/eventmachine-1.0.3/lib/eventmachine.rb:8:in `<top (required)>'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:39:in `require'
from /home/phil/.gem/ruby/gems/mailcatcher-0.6.1/lib/mail_catcher.rb:6:in `<top (required)>'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:39:in `require'
from ./bin/mailcatcher:3:in `<main>'
Thanks,
P.
···
On 2015-09-30 05:41, Hassan Schroeder wrote:
On Tue, Sep 29, 2015 at 12:28 PM, Philip Rhoades <phil@pricom.com.au> > wrote:
Sent test mails with:
swaks -p 1025
No idea what "swaks" is.
- which deliver OK
What is your definition of "deliver OK"? Because they shouldn't
be "delivered" anywhere besides locally to mailcatcher, kind of
by definition.
I can browse to the interface at:
localhost:1080
- but no mails are displayed . .
Also, it is a plain HTML interface ie not as pretty as the picture on GitHub
. . which is a bit suspicious . .
The interface I see is the same as the image on github, but I wouldn't
ever describe it as "pretty"
Can you post a screenshot of the interface you're seeing?
Why? The recommended method (as detailed on the repo README)
is using `gem install mailcatcher` and then running `mailcatcher`.
With that I get:
Unable to load the EventMachine C extension; To use the pure-ruby reactor,
require 'em/pure_ruby'
Unable to load the EventMachine C extension; To use the pure-ruby reactor,
require 'em/pure_ruby'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `require':
cannot load such file -- rubyeventmachine (LoadError)
I would try to solve that first, then.
I did try for some time with a few attempted Google solutions with no luck . .
Ruby version? OS? Using [rvm|rbenv|chruby]?
Fedora 22 x86_64
ruby-2.2.2-40.fc22.x86_64 - no rvm etc
Is that stack trace generated during initial gem installation, or when
you try to run it?
Just as I responded to your:
running `mailcatcher`
Thanks,
Phil.
···
On 2015-09-30 05:54, Hassan Schroeder wrote:
On Tue, Sep 29, 2015 at 12:46 PM, Philip Rhoades <phil@pricom.com.au> > wrote:
I did try for some time with a few attempted Google solutions with no luck .
Fedora 22 x86_64
ruby-2.2.2-40.fc22.x86_64 - no rvm etc
OK, I can't find a vagrant image to try this, but mailcatcher definitely
works fine on my Mac, installed as a gem.
The display issue is almost certainly due to messed-up request paths
for the CSS and JS; you could probably see that in the network tab of
whatever browser inspection tool you're using.
I'll worry about that later . .
I would make sure you're removed any detritus from the original gem
install and try that again with the verbose flag. It doesn't make sense
to me that it installs without complaint but won't run.
I installed on a bare-bones Fedora 23 Docker image and made a little more progress - the straight gem install works but after sending a test email with swaks, going to the web interface (with links - no X) still shows no mails . .
Thanks anyway,
Phil.
···
On 2015-09-30 06:47, Hassan Schroeder wrote:
On Tue, Sep 29, 2015 at 1:02 PM, Philip Rhoades <phil@pricom.com.au> > wrote:
The display issue is almost certainly due to messed-up request paths
for the CSS and JS; you could probably see that in the network tab of
whatever browser inspection tool you're using.
I'll worry about that later . .
Well, no. Mailcatcher requires JavaScript; I just tried disabling it
and no, the captured mail list does *not* appear in the interface.
I installed on a bare-bones Fedora 23 Docker image and made a little more
progress - the straight gem install works but after sending a test email
with swaks, going to the web interface (with links - no X) still shows no
mails . .
Uh, see above. Does `links` execute JavaScript in non-GUI mode?
BTW, here's the command line I used to send a successful message
captured by mailcatcher using the swaks script:
Without the `--to` I get prompted for an email address, without the
`--server` it tries to connect to sendmail on example.com (given an
address of 'user@example.com').
On Tue, Sep 29, 2015 at 2:35 PM, Philip Rhoades <phil@pricom.com.au> > wrote:
The display issue is almost certainly due to messed-up request paths
for the CSS and JS; you could probably see that in the network tab of
whatever browser inspection tool you're using.
I'll worry about that later . .
Well, no. Mailcatcher requires JavaScript; I just tried disabling it
and no, the captured mail list does *not* appear in the interface.
I installed on a bare-bones Fedora 23 Docker image and made a little more
progress - the straight gem install works but after sending a test email
with swaks, going to the web interface (with links - no X) still shows no
mails . .
Uh, see above. Does `links` execute JavaScript in non-GUI mode?
BTW, here's the command line I used to send a successful message
captured by mailcatcher using the swaks script:
Without the `--to` I get prompted for an email address, without the
`--server` it tries to connect to sendmail on example.com (given an
address of 'user@example.com').
OK, I tried again on a full Fedora 22 virtual machine with X and that does indeed work - so it looks like my workstation has some conflicts or other problems somewhere . .
Rubymine all the way. I've tried several others, both paid for and not and
they all fall short. Apart from editing, I mainly love it because it has a
faster debugging cycle than any others that I've used.
I've been using Vim for over 10 years. I've recently gave RubyMine a try
and ... I love it! JetBrains's IDEs are really great. I still use Vim for
small scripts.
Subject: Re: hello sorry for that question
Date: Wed 30 Sep 15 01:29:34PM +0200
EMACS!!!!!
Carlo
--
* Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci
sarebbe
* di parlare tanto di amore e di rettitudine? (Chuang-Tzu)
Subject: Re: hello sorry for that question
Date: Wed 30 Sep 15 01:29:34PM +0200
--
* Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
* di parlare tanto di amore e di rettitudine? (Chuang-Tzu)
I've been using Vim for over 10 years. I've recently gave RubyMine a try
and ... I love it! JetBrains's IDEs are really great. I still use Vim for
small scripts.
Subject: Re: hello sorry for that question
Date: Wed 30 Sep 15 01:29:34PM +0200
EMACS!!!!!
Carlo
--
* Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
* di parlare tanto di amore e di rettitudine? (Chuang-Tzu)
I use Geany & SCITE, mainly because I work in other languages as well as Ruby, also I am visually impaired, and use the custom palettes in both.
···
On 30/09/2015 12:05 PM, maxim hedrovich wrote:
sorry guys < u are rly awesome,
can i ask u what text editor u are using
cause im rly dissapointing
No virus found in this message.
Checked by AVG - www.avg.com <http://www.avg.com>
Version: 2015.0.6140 / Virus Database: 4419/10732 - Release Date: 09/30/15
Am 30.09.2015 um 13:05 schrieb maxim hedrovich:
> sorry guys < u are rly awesome,
> can i ask u what text editor u are using
> cause im rly dissapointing
mostly RubyMine and vim.
I would like to know why people use an IDE? How does this improve
development in ruby?
In comparison with Java, which is almost impossible to use without an IDE,
it's refreshing to be able to program in Ruby using *just* vim (+ vim-ruby
plugin) and the console.