snail 2.2.3 → 2.3.0
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 +4 -4
- data/lib/snail/version.rb +1 -1
- data/lib/snail.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0cb8012a5c8c7f83efcd886d4e776c817109a71ec17517a6180ff9d45722e21
|
|
4
|
+
data.tar.gz: 25845b234bbe5d460cb84120420bd198adbb70a4d35ae823b40bfe189bfeb181
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b9d51afa14b9c2a0c5e43ef476b82b53de445b475c4984f093aa5d2e27f3e42e9c351a6e60b6fae843d648598d15d96f54e8239e6da752f7319bc3abb7a5793
|
|
7
|
+
data.tar.gz: ee6383815705e73e2a541b3feee75322d291b3290b6b51c203e973288fe9885c8306a7e2e0e60e3e81bff38e25ebb69ce44bd2c39454b3bf7008f062b2a2d05e
|
data/lib/snail/version.rb
CHANGED
data/lib/snail.rb
CHANGED
|
@@ -132,7 +132,7 @@ class Snail
|
|
|
132
132
|
"#{city} #{postal_code}" # Locally these may be on separate lines. The USPS prefers the city line above the country line, though.
|
|
133
133
|
when 'EC'
|
|
134
134
|
"#{postal_code} #{city}"
|
|
135
|
-
when 'HK', 'IQ', 'YE', 'QA', 'AL'
|
|
135
|
+
when 'HK', 'IQ', 'YE', 'QA', 'AL', 'BS'
|
|
136
136
|
"#{city}"
|
|
137
137
|
when 'AE'
|
|
138
138
|
"#{postal_code}\n#{city}"
|
|
@@ -148,6 +148,8 @@ class Snail
|
|
|
148
148
|
"SI-#{postal_code} #{city}"
|
|
149
149
|
when 'CZ'
|
|
150
150
|
"#{postal_code} #{region}\n#{city}"
|
|
151
|
+
when 'SG'
|
|
152
|
+
"#{country_line.titleize} #{postal_code}"
|
|
151
153
|
else
|
|
152
154
|
if Kernel.const_defined?('Rails')
|
|
153
155
|
Rails.logger.error "[Snail] Unknown Country: #{country}"
|
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.
|
|
4
|
+
version: 2.3.0
|
|
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: 2024-01-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -310,7 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
310
310
|
- !ruby/object:Gem::Version
|
|
311
311
|
version: '0'
|
|
312
312
|
requirements: []
|
|
313
|
-
rubygems_version: 3.0.3
|
|
313
|
+
rubygems_version: 3.0.3.1
|
|
314
314
|
signing_key:
|
|
315
315
|
specification_version: 4
|
|
316
316
|
summary: Easily format snail mail addresses for international delivery
|