README.md in goatmail-1.1.1 vs README.md in goatmail-1.2.0

- old
+ new

@@ -37,10 +37,12 @@ mount Goatmail::App, at: "/inbox" end end ``` +If you use the Rails 5, Please use a combination with the Sinatra 2.0 later version. + ## Padrino Setup Then set the delivery method and mount app in `config/apps.rb` ```ruby @@ -56,10 +58,23 @@ Padrino.mount('Goatmail::App').to('/inbox') end Padrino.mount('SampleProject::App', :app_file => Padrino.root('app/app.rb')).to('/') ``` +If an exception occurs that "Gem Load Error is: undefined method 'version' for Padrino:Module", please try this: + +```ruby +# Gemfile +gem 'goatmail', :group => :development, :require => false + +# config/boot.rb +Padrino.before_load do + require 'goatmail' +end +``` + + ## Sinatra Sample ```ruby # app.rb module Sample @@ -81,11 +96,13 @@ # config.ru map '/' do run Sample::App.new end -map '/inbox' do - run Goatmail::App.new +if ENV['RACK_ENV'] == 'development' + map '/inbox' do + run Goatmail::App.new + end end ``` See: [Sample Applications](https://github.com/tyabe/goatmail_sample)