Skip to content

Commit

Permalink
Add post_city to returned data, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
mareklipka committed Feb 28, 2023
1 parent ae14d37 commit d97e50f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/gus_bir1/response/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def parse_dane(hash)
search_result.type_desc = type_info(search_result)
search_result.silos_desc = silos_info(search_result)
search_result.report = report_info(search_result)
search_result.post_city = hash['MiejscowoscPoczty']
search_result
end

Expand Down
2 changes: 1 addition & 1 deletion lib/gus_bir1/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module GusBir1
VERSION = '1.2.0'
VERSION = '1.2.1'
end
6 changes: 4 additions & 2 deletions test/gus_bir1_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def setup
report: 'PublDaneRaportPrawna',
street_number: '208',
house_number: nil,
street_address: "ul. Test-Krucza 208"
street_address: "ul. Test-Krucza 208",
post_city: 'Warszawa'
}

@psp_hash = {
Expand All @@ -46,7 +47,8 @@ def setup
report: 'PublDaneRaportPrawna',
street_number: '15',
house_number: nil,
street_address: "ul. Test-Krucza 15"
street_address: "ul. Test-Krucza 15",
post_city: 'Wrocław'
}
end

Expand Down

0 comments on commit d97e50f

Please sign in to comment.