regio 0.3.3 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 101516d05b35e0fff2042405c0ecf84645faaf29e02180f591491ea43399ce24
4
- data.tar.gz: 65c2d011cf4a8bf8461a0f7b903737ea97841952a564d7ad2a57047aef0318eb
3
+ metadata.gz: 5a9bbd528d63d830ee197a403654829cbb95fef80d1cc8afb58e57fbdea7286c
4
+ data.tar.gz: 8be43d4a1d96dc95a18e626b59418b745aa2fba800ea9438724bfbd61aac5499
5
5
  SHA512:
6
- metadata.gz: 4f19196f30c9b1193ca3484a9b67363dfacdab5d8d082bea500a9239917f6dcc506c139589008246422294deebb423c40e98f88f5ea07c0ca2e94184880fe87c
7
- data.tar.gz: af5daee5578cc5b18e4462dc0a6e9aa08e4d3fe01488fe1ad91b660b384e9677c63fc343e0040e7037b68c070e76b08f8e7e679d6ca39537c3251262ce430cd3
6
+ metadata.gz: c6dfb09a96874bd78dd972de49b9d53096fe9ee7c6e4ce5fb5344a407cacc6ef2c9ca6575d3c3a3df4e546dbcf871fdacab46a6947fcc02a096c8e0a19ebc7d9
7
+ data.tar.gz: 07eb7dac2559d1821ceb005c55262d94e9391d115e265ad3c88684c2780e194612357206a1c9ecba61626cbc6c957bcbb317ea73c9aa294033227b1a8856a85a
@@ -6,26 +6,44 @@ concurrency:
6
6
  group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
7
7
  cancel-in-progress: true
8
8
  jobs:
9
+ rspec-legacy:
10
+ name: RSpec with legacy ruby ${{matrix.ruby}}
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/ruby_${{matrix.ruby}}.gemfile
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ ruby: ['2.4', '2.5', '2.6', '2.7']
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{matrix.ruby}}
23
+ bundler-cache: true
24
+ - name: Test with RSpec
25
+ run: bundle exec rspec
9
26
  rspec:
10
27
  name: RSpec with ruby ${{matrix.ruby}}
11
28
  runs-on: ubuntu-latest
29
+ needs: rubocop
12
30
  strategy:
13
31
  fail-fast: false
14
32
  matrix:
15
- ruby: ['2.6', '2.7', '3.0', '3.1', head]
33
+ ruby: ['3.0', '3.1', '3.2']
16
34
  steps:
17
- - uses: actions/checkout@v3
35
+ - uses: actions/checkout@v4
18
36
  - uses: ruby/setup-ruby@v1
19
37
  with:
20
38
  ruby-version: ${{matrix.ruby}}
21
39
  bundler-cache: true
22
40
  - name: Test with RSpec
23
- run: COVERAGE=true bundle exec rspec
41
+ run: bundle exec rspec
24
42
  rubocop:
25
43
  name: RuboCop
26
44
  runs-on: ubuntu-latest
27
45
  steps:
28
- - uses: actions/checkout@v3
46
+ - uses: actions/checkout@v4
29
47
  - uses: ruby/setup-ruby@v1
30
48
  with:
31
49
  ruby-version: 3.1.3
@@ -3,11 +3,56 @@ on:
3
3
  release:
4
4
  types: [ released ]
5
5
  jobs:
6
+ rubocop:
7
+ name: RuboCop
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 3.1.3
14
+ bundler-cache: true
15
+ - name: Check with RuboCop
16
+ run: bundle exec rubocop
17
+ rspec-legacy:
18
+ name: RSpec with legacy ruby ${{matrix.ruby}}
19
+ runs-on: ubuntu-latest
20
+ env:
21
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/ruby_${{matrix.ruby}}.gemfile
22
+ strategy:
23
+ fail-fast: false
24
+ matrix:
25
+ ruby: ['2.4', '2.5', '2.6', '2.7']
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+ - uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{matrix.ruby}}
31
+ bundler-cache: true
32
+ - name: Test with RSpec
33
+ run: bundle exec rspec
34
+ rspec:
35
+ name: RSpec with ruby ${{matrix.ruby}}
36
+ runs-on: ubuntu-latest
37
+ needs: rubocop
38
+ strategy:
39
+ fail-fast: false
40
+ matrix:
41
+ ruby: ['3.0', '3.1', '3.2']
42
+ steps:
43
+ - uses: actions/checkout@v4
44
+ - uses: ruby/setup-ruby@v1
45
+ with:
46
+ ruby-version: ${{matrix.ruby}}
47
+ bundler-cache: true
48
+ - name: Test with RSpec
49
+ run: bundle exec rspec
6
50
  build-and-push:
7
51
  name: Build and push gem
8
52
  runs-on: ubuntu-latest
53
+ needs: rspec
9
54
  steps:
10
- - uses: actions/checkout@v3
55
+ - uses: actions/checkout@v4
11
56
  - uses: ruby/setup-ruby@v1
12
57
  with:
13
58
  ruby-version: 3.1.3
data/.rubocop.yml CHANGED
@@ -5,7 +5,7 @@ require:
5
5
  AllCops:
6
6
  NewCops: enable
7
7
  SuggestExtensions: false
8
- TargetRubyVersion: 2.6
8
+ TargetRubyVersion: 2.4
9
9
 
10
10
  RSpec/NestedGroups:
11
11
  Enabled: true
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Change log
2
2
 
3
+ ## v0.3.5 (03.06.2024)
4
+
5
+ * 3 minor enhancements:
6
+ * Update end-of-life ruby versions
7
+ * Bump actions/checkout from 3 to 4
8
+ * Update gems
9
+
10
+ ## v0.3.4 (06.07.2023)
11
+
12
+ * 2 minor enhancements:
13
+ * Add `ads_adr_id` into default options
14
+ * Set ruby 2.4 as minimum ruby version
15
+
3
16
  ## v0.3.3 (21.03.2023)
4
17
 
5
18
  * 1 minor enhancement:
data/Gemfile CHANGED
@@ -7,13 +7,19 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
7
  gemspec
8
8
 
9
9
  group :development, :test do
10
- gem 'rspec', '~> 3.12.0'
11
- gem 'rubocop', '~> 1.48.1'
12
- gem 'rubocop-performance', '~> 1.16.0'
13
- gem 'rubocop-rspec', '~> 2.19.0'
10
+ gem 'rspec', '~> 3.13.0'
11
+
12
+ gem 'rubocop', '~> 1.64.1'
13
+ gem 'rubocop-performance', '~> 1.21.0'
14
+ gem 'rubocop-rspec', '~> 2.30.0'
15
+ end
16
+
17
+ group :development do
18
+ gem 'bundler', '~> 2.3.0'
19
+ gem 'rake', '~> 13.0.6'
14
20
  end
15
21
 
16
22
  group :test do
17
23
  gem 'simplecov', '~> 0.22.0'
18
- gem 'webmock', '~> 3.18.1'
24
+ gem 'webmock', '~> 3.23.1'
19
25
  end
data/Gemfile.lock CHANGED
@@ -1,67 +1,80 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- regio (0.3.3)
4
+ regio (0.3.5)
5
5
  httparty (>= 0.20, < 0.22)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- addressable (2.8.1)
10
+ addressable (2.8.6)
11
11
  public_suffix (>= 2.0.2, < 6.0)
12
12
  ast (2.4.2)
13
- crack (0.4.5)
13
+ bigdecimal (3.1.8)
14
+ crack (1.0.0)
15
+ bigdecimal
14
16
  rexml
15
- diff-lcs (1.5.0)
17
+ diff-lcs (1.5.1)
16
18
  docile (1.4.0)
17
- hashdiff (1.0.1)
19
+ hashdiff (1.1.0)
18
20
  httparty (0.21.0)
19
21
  mini_mime (>= 1.0.0)
20
22
  multi_xml (>= 0.5.2)
21
- json (2.6.3)
22
- mini_mime (1.1.2)
23
+ json (2.7.2)
24
+ language_server-protocol (3.17.0.3)
25
+ mini_mime (1.1.5)
23
26
  multi_xml (0.6.0)
24
- parallel (1.22.1)
25
- parser (3.2.1.1)
27
+ parallel (1.24.0)
28
+ parser (3.3.2.0)
26
29
  ast (~> 2.4.1)
27
- public_suffix (5.0.1)
30
+ racc
31
+ public_suffix (5.0.5)
32
+ racc (1.8.0)
28
33
  rainbow (3.1.1)
29
34
  rake (13.0.6)
30
- regexp_parser (2.7.0)
31
- rexml (3.2.5)
32
- rspec (3.12.0)
33
- rspec-core (~> 3.12.0)
34
- rspec-expectations (~> 3.12.0)
35
- rspec-mocks (~> 3.12.0)
36
- rspec-core (3.12.1)
37
- rspec-support (~> 3.12.0)
38
- rspec-expectations (3.12.2)
35
+ regexp_parser (2.9.2)
36
+ rexml (3.2.8)
37
+ strscan (>= 3.0.9)
38
+ rspec (3.13.0)
39
+ rspec-core (~> 3.13.0)
40
+ rspec-expectations (~> 3.13.0)
41
+ rspec-mocks (~> 3.13.0)
42
+ rspec-core (3.13.0)
43
+ rspec-support (~> 3.13.0)
44
+ rspec-expectations (3.13.0)
39
45
  diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.12.0)
41
- rspec-mocks (3.12.3)
46
+ rspec-support (~> 3.13.0)
47
+ rspec-mocks (3.13.1)
42
48
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.12.0)
44
- rspec-support (3.12.0)
45
- rubocop (1.48.1)
49
+ rspec-support (~> 3.13.0)
50
+ rspec-support (3.13.1)
51
+ rubocop (1.64.1)
46
52
  json (~> 2.3)
53
+ language_server-protocol (>= 3.17.0)
47
54
  parallel (~> 1.10)
48
- parser (>= 3.2.0.0)
55
+ parser (>= 3.3.0.2)
49
56
  rainbow (>= 2.2.2, < 4.0)
50
57
  regexp_parser (>= 1.8, < 3.0)
51
58
  rexml (>= 3.2.5, < 4.0)
52
- rubocop-ast (>= 1.26.0, < 2.0)
59
+ rubocop-ast (>= 1.31.1, < 2.0)
53
60
  ruby-progressbar (~> 1.7)
54
61
  unicode-display_width (>= 2.4.0, < 3.0)
55
- rubocop-ast (1.27.0)
56
- parser (>= 3.2.1.0)
57
- rubocop-capybara (2.17.1)
62
+ rubocop-ast (1.31.3)
63
+ parser (>= 3.3.1.0)
64
+ rubocop-capybara (2.20.0)
58
65
  rubocop (~> 1.41)
59
- rubocop-performance (1.16.0)
60
- rubocop (>= 1.7.0, < 2.0)
61
- rubocop-ast (>= 0.4.0)
62
- rubocop-rspec (2.19.0)
63
- rubocop (~> 1.33)
66
+ rubocop-factory_bot (2.25.1)
67
+ rubocop (~> 1.41)
68
+ rubocop-performance (1.21.0)
69
+ rubocop (>= 1.48.1, < 2.0)
70
+ rubocop-ast (>= 1.31.1, < 2.0)
71
+ rubocop-rspec (2.30.0)
72
+ rubocop (~> 1.40)
64
73
  rubocop-capybara (~> 2.17)
74
+ rubocop-factory_bot (~> 2.22)
75
+ rubocop-rspec_rails (~> 2.28)
76
+ rubocop-rspec_rails (2.28.3)
77
+ rubocop (~> 1.40)
65
78
  ruby-progressbar (1.13.0)
66
79
  simplecov (0.22.0)
67
80
  docile (~> 1.1)
@@ -69,8 +82,9 @@ GEM
69
82
  simplecov_json_formatter (~> 0.1)
70
83
  simplecov-html (0.12.3)
71
84
  simplecov_json_formatter (0.1.4)
72
- unicode-display_width (2.4.2)
73
- webmock (3.18.1)
85
+ strscan (3.1.0)
86
+ unicode-display_width (2.5.0)
87
+ webmock (3.23.1)
74
88
  addressable (>= 2.8.0)
75
89
  crack (>= 0.3.2)
76
90
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -85,12 +99,12 @@ DEPENDENCIES
85
99
  bundler (~> 2.3.0)
86
100
  rake (~> 13.0.6)
87
101
  regio!
88
- rspec (~> 3.12.0)
89
- rubocop (~> 1.48.1)
90
- rubocop-performance (~> 1.16.0)
91
- rubocop-rspec (~> 2.19.0)
102
+ rspec (~> 3.13.0)
103
+ rubocop (~> 1.64.1)
104
+ rubocop-performance (~> 1.21.0)
105
+ rubocop-rspec (~> 2.30.0)
92
106
  simplecov (~> 0.22.0)
93
- webmock (~> 3.18.1)
107
+ webmock (~> 3.23.1)
94
108
 
95
109
  BUNDLED WITH
96
- 2.3.7
110
+ 2.3.26
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Regio
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/regio.svg)](https://badge.fury.io/rb/regio)
4
+ [![Release](https://github.com/tab/regio/actions/workflows/release.yaml/badge.svg?event=release)](https://github.com/tab/regio/actions/workflows/release.yaml)
4
5
 
5
6
  [Regio geocoding API](https://api.regio.ee/documentation/#docs/geocode) lets you search for addresses from complete Estonian address database.
6
7
 
@@ -11,7 +12,7 @@
11
12
  Add this line to your application's Gemfile:
12
13
 
13
14
  ```ruby
14
- gem 'regio', '~> 0.3.3'
15
+ gem 'regio', '~> 0.3.5'
15
16
  ```
16
17
 
17
18
  And then execute:
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ gemspec path: '../'
8
+
9
+ group :development, :test do
10
+ gem 'rspec', '~> 3.12.0'
11
+ end
12
+
13
+ group :development do
14
+ gem 'bundler', '~> 2.3.0'
15
+ gem 'rake', '~> 13.0.6'
16
+ end
17
+
18
+ group :test do
19
+ gem 'simplecov', '~> 0.18.0'
20
+ gem 'webmock', '~> 3.18.1'
21
+ end
@@ -0,0 +1,59 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ regio (0.3.5)
5
+ httparty (>= 0.20, < 0.22)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.8.4)
11
+ public_suffix (>= 2.0.2, < 6.0)
12
+ crack (0.4.5)
13
+ rexml
14
+ diff-lcs (1.5.0)
15
+ docile (1.3.5)
16
+ hashdiff (1.0.1)
17
+ httparty (0.21.0)
18
+ mini_mime (>= 1.0.0)
19
+ multi_xml (>= 0.5.2)
20
+ mini_mime (1.1.2)
21
+ multi_xml (0.6.0)
22
+ public_suffix (4.0.7)
23
+ rake (13.0.6)
24
+ rexml (3.2.5)
25
+ rspec (3.12.0)
26
+ rspec-core (~> 3.12.0)
27
+ rspec-expectations (~> 3.12.0)
28
+ rspec-mocks (~> 3.12.0)
29
+ rspec-core (3.12.2)
30
+ rspec-support (~> 3.12.0)
31
+ rspec-expectations (3.12.3)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.12.0)
34
+ rspec-mocks (3.12.5)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.12.0)
37
+ rspec-support (3.12.1)
38
+ simplecov (0.18.5)
39
+ docile (~> 1.1)
40
+ simplecov-html (~> 0.11)
41
+ simplecov-html (0.12.3)
42
+ webmock (3.18.1)
43
+ addressable (>= 2.8.0)
44
+ crack (>= 0.3.2)
45
+ hashdiff (>= 0.4.0, < 2.0.0)
46
+
47
+ PLATFORMS
48
+ x86_64-linux-musl
49
+
50
+ DEPENDENCIES
51
+ bundler (~> 2.3.0)
52
+ rake (~> 13.0.6)
53
+ regio!
54
+ rspec (~> 3.12.0)
55
+ simplecov (~> 0.18.0)
56
+ webmock (~> 3.18.1)
57
+
58
+ BUNDLED WITH
59
+ 2.3.26
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ gemspec path: '../'
8
+
9
+ group :development, :test do
10
+ gem 'rspec', '~> 3.12.0'
11
+ end
12
+
13
+ group :development do
14
+ gem 'bundler', '~> 2.3.0'
15
+ gem 'rake', '~> 13.0.6'
16
+ end
17
+
18
+ group :test do
19
+ gem 'simplecov', '~> 0.18.0'
20
+ gem 'webmock', '~> 3.18.1'
21
+ end
@@ -0,0 +1,59 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ regio (0.3.5)
5
+ httparty (>= 0.20, < 0.22)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.8.4)
11
+ public_suffix (>= 2.0.2, < 6.0)
12
+ crack (0.4.5)
13
+ rexml
14
+ diff-lcs (1.5.0)
15
+ docile (1.4.0)
16
+ hashdiff (1.0.1)
17
+ httparty (0.21.0)
18
+ mini_mime (>= 1.0.0)
19
+ multi_xml (>= 0.5.2)
20
+ mini_mime (1.1.2)
21
+ multi_xml (0.6.0)
22
+ public_suffix (4.0.7)
23
+ rake (13.0.6)
24
+ rexml (3.2.5)
25
+ rspec (3.12.0)
26
+ rspec-core (~> 3.12.0)
27
+ rspec-expectations (~> 3.12.0)
28
+ rspec-mocks (~> 3.12.0)
29
+ rspec-core (3.12.2)
30
+ rspec-support (~> 3.12.0)
31
+ rspec-expectations (3.12.3)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.12.0)
34
+ rspec-mocks (3.12.5)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.12.0)
37
+ rspec-support (3.12.1)
38
+ simplecov (0.18.5)
39
+ docile (~> 1.1)
40
+ simplecov-html (~> 0.11)
41
+ simplecov-html (0.12.3)
42
+ webmock (3.18.1)
43
+ addressable (>= 2.8.0)
44
+ crack (>= 0.3.2)
45
+ hashdiff (>= 0.4.0, < 2.0.0)
46
+
47
+ PLATFORMS
48
+ x86_64-linux-musl
49
+
50
+ DEPENDENCIES
51
+ bundler (~> 2.3.0)
52
+ rake (~> 13.0.6)
53
+ regio!
54
+ rspec (~> 3.12.0)
55
+ simplecov (~> 0.18.0)
56
+ webmock (~> 3.18.1)
57
+
58
+ BUNDLED WITH
59
+ 2.3.26
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ gemspec path: '../'
8
+
9
+ group :development, :test do
10
+ gem 'rspec', '~> 3.12.0'
11
+ end
12
+
13
+ group :development do
14
+ gem 'bundler', '~> 2.3.0'
15
+ gem 'rake', '~> 13.0.6'
16
+ end
17
+
18
+ group :test do
19
+ gem 'simplecov', '~> 0.18.0'
20
+ gem 'webmock', '~> 3.18.1'
21
+ end
@@ -0,0 +1,59 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ regio (0.3.5)
5
+ httparty (>= 0.20, < 0.22)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.8.4)
11
+ public_suffix (>= 2.0.2, < 6.0)
12
+ crack (0.4.5)
13
+ rexml
14
+ diff-lcs (1.5.0)
15
+ docile (1.4.0)
16
+ hashdiff (1.0.1)
17
+ httparty (0.21.0)
18
+ mini_mime (>= 1.0.0)
19
+ multi_xml (>= 0.5.2)
20
+ mini_mime (1.1.2)
21
+ multi_xml (0.6.0)
22
+ public_suffix (5.0.1)
23
+ rake (13.0.6)
24
+ rexml (3.2.5)
25
+ rspec (3.12.0)
26
+ rspec-core (~> 3.12.0)
27
+ rspec-expectations (~> 3.12.0)
28
+ rspec-mocks (~> 3.12.0)
29
+ rspec-core (3.12.2)
30
+ rspec-support (~> 3.12.0)
31
+ rspec-expectations (3.12.3)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.12.0)
34
+ rspec-mocks (3.12.5)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.12.0)
37
+ rspec-support (3.12.1)
38
+ simplecov (0.18.5)
39
+ docile (~> 1.1)
40
+ simplecov-html (~> 0.11)
41
+ simplecov-html (0.12.3)
42
+ webmock (3.18.1)
43
+ addressable (>= 2.8.0)
44
+ crack (>= 0.3.2)
45
+ hashdiff (>= 0.4.0, < 2.0.0)
46
+
47
+ PLATFORMS
48
+ x86_64-linux-musl
49
+
50
+ DEPENDENCIES
51
+ bundler (~> 2.3.0)
52
+ rake (~> 13.0.6)
53
+ regio!
54
+ rspec (~> 3.12.0)
55
+ simplecov (~> 0.18.0)
56
+ webmock (~> 3.18.1)
57
+
58
+ BUNDLED WITH
59
+ 2.3.26
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ gemspec path: '../'
8
+
9
+ group :development, :test do
10
+ gem 'rspec', '~> 3.12.0'
11
+ end
12
+
13
+ group :development do
14
+ gem 'bundler', '~> 2.3.0'
15
+ gem 'rake', '~> 13.0.6'
16
+ end
17
+
18
+ group :test do
19
+ gem 'simplecov', '~> 0.18.0'
20
+ gem 'webmock', '~> 3.18.1'
21
+ end
@@ -0,0 +1,63 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ regio (0.3.5)
5
+ httparty (>= 0.20, < 0.22)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.8.4)
11
+ public_suffix (>= 2.0.2, < 6.0)
12
+ crack (0.4.5)
13
+ rexml
14
+ diff-lcs (1.5.0)
15
+ docile (1.4.0)
16
+ hashdiff (1.0.1)
17
+ httparty (0.21.0)
18
+ mini_mime (>= 1.0.0)
19
+ multi_xml (>= 0.5.2)
20
+ mini_mime (1.1.2)
21
+ multi_xml (0.6.0)
22
+ public_suffix (5.0.1)
23
+ rake (13.0.6)
24
+ rexml (3.2.5)
25
+ rspec (3.12.0)
26
+ rspec-core (~> 3.12.0)
27
+ rspec-expectations (~> 3.12.0)
28
+ rspec-mocks (~> 3.12.0)
29
+ rspec-core (3.12.2)
30
+ rspec-support (~> 3.12.0)
31
+ rspec-expectations (3.12.3)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.12.0)
34
+ rspec-mocks (3.12.5)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.12.0)
37
+ rspec-support (3.12.1)
38
+ simplecov (0.18.5)
39
+ docile (~> 1.1)
40
+ simplecov-html (~> 0.11)
41
+ simplecov-html (0.12.3)
42
+ webmock (3.18.1)
43
+ addressable (>= 2.8.0)
44
+ crack (>= 0.3.2)
45
+ hashdiff (>= 0.4.0, < 2.0.0)
46
+
47
+ PLATFORMS
48
+ aarch64-linux-musl
49
+ arm64-darwin-21
50
+ x86_64-darwin-21
51
+ x86_64-linux
52
+ x86_64-linux-musl
53
+
54
+ DEPENDENCIES
55
+ bundler (~> 2.3.0)
56
+ rake (~> 13.0.6)
57
+ regio!
58
+ rspec (~> 3.12.0)
59
+ simplecov (~> 0.18.0)
60
+ webmock (~> 3.18.1)
61
+
62
+ BUNDLED WITH
63
+ 2.3.26
data/lib/regio/core.rb CHANGED
@@ -45,6 +45,7 @@ module Regio
45
45
 
46
46
  def default_hash_for(result)
47
47
  {
48
+ ads_adr_id: result[:ads_adr_id],
48
49
  regio_id: result[:id],
49
50
  title: result[:address],
50
51
  valid: result[:is_valid],
data/lib/regio/geocode.rb CHANGED
@@ -23,7 +23,7 @@ module Regio
23
23
  country: 'ee',
24
24
  apikey: Configuration.api_key,
25
25
  address_format: 'long_address',
26
- details: 'id,address,postcode,type,components,geometry,is_valid,is_complete',
26
+ details: 'id,address,ads_adr_id,postcode,type,components,geometry,is_valid,is_complete',
27
27
  output_format: 'json',
28
28
  limit: 25
29
29
  }
@@ -22,7 +22,7 @@ module Regio
22
22
  {
23
23
  apikey: Configuration.api_key,
24
24
  address_format: 'long_address',
25
- details: 'id,address,postcode,type,components,geometry,is_valid,is_complete',
25
+ details: 'id,address,ads_adr_id,postcode,type,components,geometry,is_valid,is_complete',
26
26
  output_format: 'json',
27
27
  limit: 25
28
28
  }
data/lib/regio/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Regio
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.5'
5
5
  end
data/regio.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.homepage = 'https://github.com/tab/regio'
16
16
  spec.license = 'MIT'
17
17
 
18
- spec.required_ruby_version = '>= 2.6'
18
+ spec.required_ruby_version = '>= 2.4'
19
19
 
20
20
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
21
21
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -39,8 +39,5 @@ Gem::Specification.new do |spec|
39
39
 
40
40
  spec.add_dependency 'httparty', '>= 0.20', '< 0.22'
41
41
 
42
- spec.add_development_dependency 'bundler', '~> 2.3.0'
43
- spec.add_development_dependency 'rake', '~> 13.0.6'
44
-
45
42
  spec.metadata['rubygems_mfa_required'] = 'true'
46
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - tab
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-21 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -30,34 +30,6 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0.22'
33
- - !ruby/object:Gem::Dependency
34
- name: bundler
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: 2.3.0
40
- type: :development
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: 2.3.0
47
- - !ruby/object:Gem::Dependency
48
- name: rake
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: 13.0.6
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: 13.0.6
61
33
  description: Regio geocoding API lets you search for addresses from complete Estonian
62
34
  address database
63
35
  email:
@@ -85,7 +57,15 @@ files:
85
57
  - Rakefile
86
58
  - bin/console
87
59
  - bin/setup
88
- - docker-compose.yaml
60
+ - compose.yaml
61
+ - gemfiles/ruby_2.4.gemfile
62
+ - gemfiles/ruby_2.4.gemfile.lock
63
+ - gemfiles/ruby_2.5.gemfile
64
+ - gemfiles/ruby_2.5.gemfile.lock
65
+ - gemfiles/ruby_2.6.gemfile
66
+ - gemfiles/ruby_2.6.gemfile.lock
67
+ - gemfiles/ruby_2.7.gemfile
68
+ - gemfiles/ruby_2.7.gemfile.lock
89
69
  - lib/regio.rb
90
70
  - lib/regio/configuration.rb
91
71
  - lib/regio/core.rb
@@ -115,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
95
  requirements:
116
96
  - - ">="
117
97
  - !ruby/object:Gem::Version
118
- version: '2.6'
98
+ version: '2.4'
119
99
  required_rubygems_version: !ruby/object:Gem::Requirement
120
100
  requirements:
121
101
  - - ">="
File without changes