snail 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,10 @@
1
1
  class Snail
2
2
  module Initializable
3
- def initialize(attrs = {}, &block)
3
+ def initialize(attrs = {})
4
4
  attrs.each do |k, v|
5
5
  m = "#{k}="
6
- if respond_to? m
7
- self.send(m, v)
8
- else
9
- raise UnknownAttribute.new(k)
10
- end
6
+ raise UnknownAttribute, k unless respond_to? m
7
+ send(m, v)
11
8
  end
12
9
  yield self if block_given?
13
10
  end
data/lib/snail/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Snail
2
- VERSION = '2.2.2'
2
+ VERSION = '2.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snail
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lance Ivy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-29 00:00:00.000000000 Z
11
+ date: 2021-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -310,8 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
310
310
  - !ruby/object:Gem::Version
311
311
  version: '0'
312
312
  requirements: []
313
- rubyforge_project:
314
- rubygems_version: 2.5.1
313
+ rubygems_version: 3.0.3
315
314
  signing_key:
316
315
  specification_version: 4
317
316
  summary: Easily format snail mail addresses for international delivery