Skip to content

Commit

Permalink
Prepare for v1.0.0.beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Mar 10, 2017
1 parent d1f23f8 commit d0deef3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,8 @@
# Hanami::Mailer
Mail for Ruby applications

## v1.0.0.beta2 (unreleased)

## v1.0.0.beta1 - 2017-02-14
### Added
- [Luca Guidi] Official support for Ruby: MRI 2.4
Expand Down
15 changes: 9 additions & 6 deletions lib/hanami/mailer.rb
Expand Up @@ -4,6 +4,9 @@
require 'hanami/mailer/dsl'
require 'mail'

# Hanami
#
# @since 0.1.0
module Hanami
# Hanami::Mailer
#
Expand Down Expand Up @@ -260,7 +263,7 @@ def deliver
def prepare
end

# @private
# @api private
# @since 0.1.0
def method_missing(m)
@locals.fetch(m) { super }
Expand All @@ -269,7 +272,7 @@ def method_missing(m)
# @since 0.1.0
attr_reader :mail

# @private
# @api private
# @since 0.1.0
attr_reader :charset

Expand All @@ -295,7 +298,7 @@ def build
# rubocop:enable Metrics/MethodLength
# rubocop:enable Metrics/AbcSize

# @private
# @api private
# @since 0.1.0
def __dsl(method_name)
case result = self.class.__send__(method_name)
Expand All @@ -306,7 +309,7 @@ def __dsl(method_name)
end
end

# @private
# @api private
# @since 0.1.0
def __part(format)
return unless __part?(format)
Expand All @@ -317,14 +320,14 @@ def __part(format)
end
end

# @private
# @api private
# @since 0.1.0
def __part?(format)
@format == format ||
(!@format && !self.class.templates(format).nil?)
end

# @private
# @api private
# @since 0.4.0
def respond_to_missing?(m, _include_all)
@locals.key?(m)
Expand Down
2 changes: 1 addition & 1 deletion lib/hanami/mailer/version.rb
@@ -1,6 +1,6 @@
module Hanami
module Mailer
# @since 0.1.0
VERSION = '1.0.0.beta1'.freeze
VERSION = '1.0.0.beta2'.freeze
end
end
2 changes: 1 addition & 1 deletion test/version_test.rb
Expand Up @@ -2,6 +2,6 @@

describe Hanami::Mailer::VERSION do
it 'returns current version' do
Hanami::Mailer::VERSION.must_equal '1.0.0.beta1'
Hanami::Mailer::VERSION.must_equal '1.0.0.beta2'
end
end

0 comments on commit d0deef3

Please sign in to comment.