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.
- checksums.yaml +5 -5
- data/assets/DE.yml +1 -1
- data/lib/snail.rb +44 -49
- data/lib/snail/constants.rb +503 -507
- data/lib/snail/initializable.rb +3 -6
- data/lib/snail/version.rb +1 -1
- metadata +3 -4
data/lib/snail/initializable.rb
CHANGED
@@ -1,13 +1,10 @@
|
|
1
1
|
class Snail
|
2
2
|
module Initializable
|
3
|
-
def initialize(attrs = {}
|
3
|
+
def initialize(attrs = {})
|
4
4
|
attrs.each do |k, v|
|
5
5
|
m = "#{k}="
|
6
|
-
|
7
|
-
|
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
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.
|
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:
|
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
|
-
|
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
|