Skip to content

Commit

Permalink
Add abbreviations for Canadian provinces and territories
Browse files Browse the repository at this point in the history
  • Loading branch information
tcd committed Jul 9, 2020
1 parent 5024fe7 commit 634112a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
17 changes: 14 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
<!-- ## master (unreleased) -->

## 0.9.2 (2020-07-24)
## 0.10.0 (2020-07-09)

### Added

- Add abbreviations for Canadian provinces and territories as valid values for element `156` (*State or Province Code*).

### Changed

- Fix incorrect changelog dates.


## 0.9.2 (2020-06-24)

### Changed

- Update allowed values for elements `I10` and `I11`


## 0.9.1 (2020-07-23)
## 0.9.1 (2020-06-23)

### Fixed

- Fix incorrect element names in `TXI` segment.


## 0.9.0 (2020-07-03)
## 0.9.0 (2020-06-03)

### Added

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[travis-ci]: https://travis-ci.org/tcd/eddy
[coveralls]: https://coveralls.io/github/tcd/eddy?branch=master
[license]: https://github.com/tcd/eddy/blob/master/LICENSE.txt
[docs]: https://www.rubydoc.info/gems/eddy/0.9.2
[docs]: https://www.rubydoc.info/gems/eddy/0.10.0

## Installation

Expand Down
17 changes: 16 additions & 1 deletion lib/definitions/elements/manual/156.state_or_province_code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module Elements
#
# ### Notes:
#
# - FIXME: Currently only accepts states in the USA.
# - FIXME: Currently only accepts states in the USA and Canada.
class E156 < Eddy::Models::Element::ID

# @param val [String] (nil)
Expand All @@ -33,6 +33,7 @@ def initialize(val: nil, req: nil, ref: nil)
# @return [Array<String>]
def code_list()
return [
# United States
"AL",
"AK",
"AZ",
Expand Down Expand Up @@ -84,6 +85,20 @@ def code_list()
"WV",
"WI",
"WY",
# Canada
"AB",
"BC",
"MB",
"NB",
"NL",
"NS",
"NT",
"NU",
"ON",
"PE",
"QC",
"SK",
"YT",
]
end

Expand Down
2 changes: 1 addition & 1 deletion lib/eddy/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Eddy
VERSION = "0.9.2".freeze()
VERSION = "0.10.0".freeze()
end

0 comments on commit 634112a

Please sign in to comment.