Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add post_city to returned data, bump version #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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