snail 2.2.3 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/snail/version.rb +1 -1
  3. data/lib/snail.rb +3 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f19d56cbe8024958d5dffab42559e45514554c3f9dddfddcfff643ff8144b026
4
- data.tar.gz: 2bd285f154e25407a20c1910d0d2796ff1b219b1b454213402cca2b63d207f64
3
+ metadata.gz: d0cb8012a5c8c7f83efcd886d4e776c817109a71ec17517a6180ff9d45722e21
4
+ data.tar.gz: 25845b234bbe5d460cb84120420bd198adbb70a4d35ae823b40bfe189bfeb181
5
5
  SHA512:
6
- metadata.gz: 111fa30f8a1b7a1bcedc910640035612234503fb3c5f96a5ec2ca0eaab3b9953679234f2f0e273a34bf91bdbf1893193a5f217e3d6080d5eeb6854d164991c54
7
- data.tar.gz: 0fe491fda518ad2755120af50a429e94efb87938cfee526b90b86fdcba5df698c27d3dd904b9e7b0abd1c19670b8999074121c2b1b79a32e56730ee001021102
6
+ metadata.gz: 2b9d51afa14b9c2a0c5e43ef476b82b53de445b475c4984f093aa5d2e27f3e42e9c351a6e60b6fae843d648598d15d96f54e8239e6da752f7319bc3abb7a5793
7
+ data.tar.gz: ee6383815705e73e2a541b3feee75322d291b3290b6b51c203e973288fe9885c8306a7e2e0e60e3e81bff38e25ebb69ce44bd2c39454b3bf7008f062b2a2d05e
data/lib/snail/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Snail
2
- VERSION = '2.2.3'.freeze
2
+ VERSION = '2.3.0'.freeze
3
3
  end
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.2.3
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: 2021-02-03 00:00:00.000000000 Z
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