diff --git a/.ruby-version b/.ruby-version index 30f69e8..be94e6f 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.5.9 +3.2.2 diff --git a/Gemfile.lock b/Gemfile.lock index 4046a02..03b6ac5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,36 +8,50 @@ PATH GEM remote: http://rubygems.org/ specs: - activesupport (6.1.7.3) + activesupport (7.1.2) + base64 + bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) minitest (>= 5.1) + mutex_m tzinfo (~> 2.0) - zeitwerk (~> 2.3) - addressable (2.8.4) + addressable (2.8.5) public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) + base64 (0.2.0) + bigdecimal (3.1.4) concurrent-ruby (1.2.2) + connection_pool (2.4.1) crack (0.4.5) rexml diff-lcs (1.5.0) + drb (2.2.0) + ruby2_keywords hashdiff (1.0.1) httparty (0.21.0) mini_mime (>= 1.0.0) multi_xml (>= 0.5.2) - i18n (1.12.0) + i18n (1.14.1) concurrent-ruby (~> 1.0) - mini_mime (1.1.2) - minitest (5.15.0) + json (2.7.0) + language_server-protocol (3.17.0.3) + mini_mime (1.1.5) + minitest (5.20.0) multi_xml (0.6.0) + mutex_m (0.2.0) parallel (1.23.0) - parser (3.2.2.0) + parser (3.2.2.4) ast (~> 2.4.1) - public_suffix (4.0.7) + racc + public_suffix (5.0.4) + racc (1.7.3) rainbow (3.1.1) - rake (13.0.6) - regexp_parser (2.8.0) - rexml (3.2.5) + rake (13.1.0) + regexp_parser (2.8.2) + rexml (3.2.6) rspec (3.12.0) rspec-core (~> 3.12.0) rspec-expectations (~> 3.12.0) @@ -47,33 +61,35 @@ GEM rspec-expectations (3.12.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-mocks (3.12.5) + rspec-mocks (3.12.6) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-support (3.12.0) - rubocop (1.28.2) + rspec-support (3.12.1) + rubocop (1.58.0) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.1.0.0) + parser (>= 3.2.2.4) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.17.0, < 2.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.17.0) - parser (>= 3.1.1.0) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) ruby-progressbar (1.13.0) + ruby2_keywords (0.0.5) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.4.2) - webmock (3.18.1) + unicode-display_width (2.5.0) + webmock (3.19.1) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) - zeitwerk (2.6.7) PLATFORMS - ruby + arm64-darwin-22 DEPENDENCIES rake @@ -83,4 +99,4 @@ DEPENDENCIES webmock BUNDLED WITH - 1.17.3 + 2.4.10 diff --git a/VERSION b/VERSION index 0ea3a94..3eefcb9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.0 +1.0.0 diff --git a/lib/ruby-postcodeanywhere.rb b/lib/ruby-postcodeanywhere.rb index 7e35954..a44efee 100644 --- a/lib/ruby-postcodeanywhere.rb +++ b/lib/ruby-postcodeanywhere.rb @@ -73,7 +73,7 @@ def fetch_by_parts(options = {}) end def fetch(id) - options = { id: id } + options = { id: } options.merge!(license_information) data = PostcodeSearch.get(ADDRESS_FETCH, { query: options })