regio 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.dockerignore +13 -0
- data/.github/workflows/{checks.yml → checks.yaml} +1 -1
- data/.github/workflows/release.yaml +25 -0
- data/CHANGELOG.md +10 -0
- data/Dockerfile +13 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +23 -20
- data/README.md +19 -3
- data/docker-compose.yaml +7 -0
- data/lib/regio/version.rb +1 -1
- data/regio.gemspec +0 -6
- metadata +11 -91
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 101516d05b35e0fff2042405c0ecf84645faaf29e02180f591491ea43399ce24
|
|
4
|
+
data.tar.gz: 65c2d011cf4a8bf8461a0f7b903737ea97841952a564d7ad2a57047aef0318eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f19196f30c9b1193ca3484a9b67363dfacdab5d8d082bea500a9239917f6dcc506c139589008246422294deebb423c40e98f88f5ea07c0ca2e94184880fe87c
|
|
7
|
+
data.tar.gz: af5daee5578cc5b18e4462dc0a6e9aa08e4d3fe01488fe1ad91b660b384e9677c63fc343e0040e7037b68c070e76b08f8e7e679d6ca39537c3251262ce430cd3
|
data/.dockerignore
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [ released ]
|
|
5
|
+
jobs:
|
|
6
|
+
build-and-push:
|
|
7
|
+
name: Build and push gem
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v3
|
|
11
|
+
- uses: ruby/setup-ruby@v1
|
|
12
|
+
with:
|
|
13
|
+
ruby-version: 3.1.3
|
|
14
|
+
bundler-cache: true
|
|
15
|
+
- name: Setup credentials
|
|
16
|
+
run: |
|
|
17
|
+
mkdir -p $HOME/.gem
|
|
18
|
+
touch $HOME/.gem/credentials
|
|
19
|
+
chmod 0600 $HOME/.gem/credentials
|
|
20
|
+
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
|
|
21
|
+
env:
|
|
22
|
+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
|
23
|
+
- name: Release gem
|
|
24
|
+
run: |
|
|
25
|
+
bundle exec rake release
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Change log
|
|
2
2
|
|
|
3
|
+
## v0.3.3 (21.03.2023)
|
|
4
|
+
|
|
5
|
+
* 1 minor enhancement:
|
|
6
|
+
* Development in docker
|
|
7
|
+
|
|
8
|
+
## v0.3.2 (10.03.2023)
|
|
9
|
+
|
|
10
|
+
* 1 minor enhancement:
|
|
11
|
+
* Move gem's development and test dependencies into Gemfile
|
|
12
|
+
|
|
3
13
|
## v0.3.1 (28.02.2023)
|
|
4
14
|
|
|
5
15
|
* 1 minor enhancement:
|
data/Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
FROM ruby:3.1.3-alpine3.17
|
|
2
|
+
|
|
3
|
+
WORKDIR /package
|
|
4
|
+
|
|
5
|
+
COPY . .
|
|
6
|
+
|
|
7
|
+
RUN apk add --update-cache --no-cache --virtual .build-deps g++ make \
|
|
8
|
+
&& apk add --update-cache --no-cache gcompat git openssh-client \
|
|
9
|
+
&& bundle install --jobs $(nproc) --retry 3 \
|
|
10
|
+
&& rm -rf /usr/local/bundle/cache/*.gem \
|
|
11
|
+
&& find /usr/local/bundle/gems/ -name "*.c" -delete \
|
|
12
|
+
&& find /usr/local/bundle/gems/ -name "*.o" -delete \
|
|
13
|
+
&& apk --purge del .build-deps
|
data/Gemfile
CHANGED
|
@@ -5,3 +5,15 @@ source 'https://rubygems.org'
|
|
|
5
5
|
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
6
6
|
|
|
7
7
|
gemspec
|
|
8
|
+
|
|
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'
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
group :test do
|
|
17
|
+
gem 'simplecov', '~> 0.22.0'
|
|
18
|
+
gem 'webmock', '~> 3.18.1'
|
|
19
|
+
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
regio (0.3.
|
|
4
|
+
regio (0.3.3)
|
|
5
5
|
httparty (>= 0.20, < 0.22)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -22,51 +22,54 @@ GEM
|
|
|
22
22
|
mini_mime (1.1.2)
|
|
23
23
|
multi_xml (0.6.0)
|
|
24
24
|
parallel (1.22.1)
|
|
25
|
-
parser (3.1.
|
|
25
|
+
parser (3.2.1.1)
|
|
26
26
|
ast (~> 2.4.1)
|
|
27
|
-
public_suffix (5.0.
|
|
27
|
+
public_suffix (5.0.1)
|
|
28
28
|
rainbow (3.1.1)
|
|
29
29
|
rake (13.0.6)
|
|
30
|
-
regexp_parser (2.
|
|
30
|
+
regexp_parser (2.7.0)
|
|
31
31
|
rexml (3.2.5)
|
|
32
32
|
rspec (3.12.0)
|
|
33
33
|
rspec-core (~> 3.12.0)
|
|
34
34
|
rspec-expectations (~> 3.12.0)
|
|
35
35
|
rspec-mocks (~> 3.12.0)
|
|
36
|
-
rspec-core (3.12.
|
|
36
|
+
rspec-core (3.12.1)
|
|
37
37
|
rspec-support (~> 3.12.0)
|
|
38
|
-
rspec-expectations (3.12.
|
|
38
|
+
rspec-expectations (3.12.2)
|
|
39
39
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
40
40
|
rspec-support (~> 3.12.0)
|
|
41
|
-
rspec-mocks (3.12.
|
|
41
|
+
rspec-mocks (3.12.3)
|
|
42
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
43
43
|
rspec-support (~> 3.12.0)
|
|
44
44
|
rspec-support (3.12.0)
|
|
45
|
-
rubocop (1.
|
|
45
|
+
rubocop (1.48.1)
|
|
46
46
|
json (~> 2.3)
|
|
47
47
|
parallel (~> 1.10)
|
|
48
|
-
parser (>= 3.
|
|
48
|
+
parser (>= 3.2.0.0)
|
|
49
49
|
rainbow (>= 2.2.2, < 4.0)
|
|
50
50
|
regexp_parser (>= 1.8, < 3.0)
|
|
51
51
|
rexml (>= 3.2.5, < 4.0)
|
|
52
|
-
rubocop-ast (>= 1.
|
|
52
|
+
rubocop-ast (>= 1.26.0, < 2.0)
|
|
53
53
|
ruby-progressbar (~> 1.7)
|
|
54
|
-
unicode-display_width (>=
|
|
55
|
-
rubocop-ast (1.
|
|
56
|
-
parser (>= 3.
|
|
57
|
-
rubocop-
|
|
54
|
+
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)
|
|
58
|
+
rubocop (~> 1.41)
|
|
59
|
+
rubocop-performance (1.16.0)
|
|
58
60
|
rubocop (>= 1.7.0, < 2.0)
|
|
59
61
|
rubocop-ast (>= 0.4.0)
|
|
60
|
-
rubocop-rspec (2.
|
|
62
|
+
rubocop-rspec (2.19.0)
|
|
61
63
|
rubocop (~> 1.33)
|
|
62
|
-
|
|
64
|
+
rubocop-capybara (~> 2.17)
|
|
65
|
+
ruby-progressbar (1.13.0)
|
|
63
66
|
simplecov (0.22.0)
|
|
64
67
|
docile (~> 1.1)
|
|
65
68
|
simplecov-html (~> 0.11)
|
|
66
69
|
simplecov_json_formatter (~> 0.1)
|
|
67
70
|
simplecov-html (0.12.3)
|
|
68
71
|
simplecov_json_formatter (0.1.4)
|
|
69
|
-
unicode-display_width (2.
|
|
72
|
+
unicode-display_width (2.4.2)
|
|
70
73
|
webmock (3.18.1)
|
|
71
74
|
addressable (>= 2.8.0)
|
|
72
75
|
crack (>= 0.3.2)
|
|
@@ -83,9 +86,9 @@ DEPENDENCIES
|
|
|
83
86
|
rake (~> 13.0.6)
|
|
84
87
|
regio!
|
|
85
88
|
rspec (~> 3.12.0)
|
|
86
|
-
rubocop (~> 1.
|
|
87
|
-
rubocop-performance (~> 1.
|
|
88
|
-
rubocop-rspec (~> 2.
|
|
89
|
+
rubocop (~> 1.48.1)
|
|
90
|
+
rubocop-performance (~> 1.16.0)
|
|
91
|
+
rubocop-rspec (~> 2.19.0)
|
|
89
92
|
simplecov (~> 0.22.0)
|
|
90
93
|
webmock (~> 3.18.1)
|
|
91
94
|
|
data/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
Add this line to your application's Gemfile:
|
|
12
12
|
|
|
13
13
|
```ruby
|
|
14
|
-
gem 'regio', '~> 0.3.
|
|
14
|
+
gem 'regio', '~> 0.3.3'
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
And then execute:
|
|
@@ -146,9 +146,25 @@ Check Regio [routing and directions](https://api.regio.ee/documentation/#docs/ro
|
|
|
146
146
|
|
|
147
147
|
## Development
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
Build docker container with compose:
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
```bash
|
|
152
|
+
docker-compose build
|
|
153
|
+
docker-compose up
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Access to the container:
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
docker-compose exec regio sh
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Run rspec or rubocop checks:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
/package # bundle exec rubocop
|
|
166
|
+
/package # bundle exec rspec
|
|
167
|
+
```
|
|
152
168
|
|
|
153
169
|
## Contributing
|
|
154
170
|
|
data/docker-compose.yaml
ADDED
data/lib/regio/version.rb
CHANGED
data/regio.gemspec
CHANGED
|
@@ -41,12 +41,6 @@ Gem::Specification.new do |spec|
|
|
|
41
41
|
|
|
42
42
|
spec.add_development_dependency 'bundler', '~> 2.3.0'
|
|
43
43
|
spec.add_development_dependency 'rake', '~> 13.0.6'
|
|
44
|
-
spec.add_development_dependency 'rspec', '~> 3.12.0'
|
|
45
|
-
spec.add_development_dependency 'rubocop', '~> 1.36'
|
|
46
|
-
spec.add_development_dependency 'rubocop-performance', '~> 1.15'
|
|
47
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 2.16.0'
|
|
48
|
-
spec.add_development_dependency 'simplecov', '~> 0.22.0'
|
|
49
|
-
spec.add_development_dependency 'webmock', '~> 3.18.1'
|
|
50
44
|
|
|
51
45
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
52
46
|
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.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tab
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -58,90 +58,6 @@ dependencies:
|
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: 13.0.6
|
|
61
|
-
- !ruby/object:Gem::Dependency
|
|
62
|
-
name: rspec
|
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
|
64
|
-
requirements:
|
|
65
|
-
- - "~>"
|
|
66
|
-
- !ruby/object:Gem::Version
|
|
67
|
-
version: 3.12.0
|
|
68
|
-
type: :development
|
|
69
|
-
prerelease: false
|
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
71
|
-
requirements:
|
|
72
|
-
- - "~>"
|
|
73
|
-
- !ruby/object:Gem::Version
|
|
74
|
-
version: 3.12.0
|
|
75
|
-
- !ruby/object:Gem::Dependency
|
|
76
|
-
name: rubocop
|
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
|
78
|
-
requirements:
|
|
79
|
-
- - "~>"
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: '1.36'
|
|
82
|
-
type: :development
|
|
83
|
-
prerelease: false
|
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
-
requirements:
|
|
86
|
-
- - "~>"
|
|
87
|
-
- !ruby/object:Gem::Version
|
|
88
|
-
version: '1.36'
|
|
89
|
-
- !ruby/object:Gem::Dependency
|
|
90
|
-
name: rubocop-performance
|
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
|
92
|
-
requirements:
|
|
93
|
-
- - "~>"
|
|
94
|
-
- !ruby/object:Gem::Version
|
|
95
|
-
version: '1.15'
|
|
96
|
-
type: :development
|
|
97
|
-
prerelease: false
|
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
99
|
-
requirements:
|
|
100
|
-
- - "~>"
|
|
101
|
-
- !ruby/object:Gem::Version
|
|
102
|
-
version: '1.15'
|
|
103
|
-
- !ruby/object:Gem::Dependency
|
|
104
|
-
name: rubocop-rspec
|
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
|
106
|
-
requirements:
|
|
107
|
-
- - "~>"
|
|
108
|
-
- !ruby/object:Gem::Version
|
|
109
|
-
version: 2.16.0
|
|
110
|
-
type: :development
|
|
111
|
-
prerelease: false
|
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
113
|
-
requirements:
|
|
114
|
-
- - "~>"
|
|
115
|
-
- !ruby/object:Gem::Version
|
|
116
|
-
version: 2.16.0
|
|
117
|
-
- !ruby/object:Gem::Dependency
|
|
118
|
-
name: simplecov
|
|
119
|
-
requirement: !ruby/object:Gem::Requirement
|
|
120
|
-
requirements:
|
|
121
|
-
- - "~>"
|
|
122
|
-
- !ruby/object:Gem::Version
|
|
123
|
-
version: 0.22.0
|
|
124
|
-
type: :development
|
|
125
|
-
prerelease: false
|
|
126
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
127
|
-
requirements:
|
|
128
|
-
- - "~>"
|
|
129
|
-
- !ruby/object:Gem::Version
|
|
130
|
-
version: 0.22.0
|
|
131
|
-
- !ruby/object:Gem::Dependency
|
|
132
|
-
name: webmock
|
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
|
134
|
-
requirements:
|
|
135
|
-
- - "~>"
|
|
136
|
-
- !ruby/object:Gem::Version
|
|
137
|
-
version: 3.18.1
|
|
138
|
-
type: :development
|
|
139
|
-
prerelease: false
|
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
141
|
-
requirements:
|
|
142
|
-
- - "~>"
|
|
143
|
-
- !ruby/object:Gem::Version
|
|
144
|
-
version: 3.18.1
|
|
145
61
|
description: Regio geocoding API lets you search for addresses from complete Estonian
|
|
146
62
|
address database
|
|
147
63
|
email:
|
|
@@ -150,15 +66,18 @@ executables: []
|
|
|
150
66
|
extensions: []
|
|
151
67
|
extra_rdoc_files: []
|
|
152
68
|
files:
|
|
69
|
+
- ".dockerignore"
|
|
153
70
|
- ".editorconfig"
|
|
154
71
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
|
155
72
|
- ".github/dependabot.yml"
|
|
156
|
-
- ".github/workflows/checks.
|
|
73
|
+
- ".github/workflows/checks.yaml"
|
|
74
|
+
- ".github/workflows/release.yaml"
|
|
157
75
|
- ".gitignore"
|
|
158
76
|
- ".rspec"
|
|
159
77
|
- ".rubocop.yml"
|
|
160
78
|
- CHANGELOG.md
|
|
161
79
|
- CODE_OF_CONDUCT.md
|
|
80
|
+
- Dockerfile
|
|
162
81
|
- Gemfile
|
|
163
82
|
- Gemfile.lock
|
|
164
83
|
- LICENSE.txt
|
|
@@ -166,6 +85,7 @@ files:
|
|
|
166
85
|
- Rakefile
|
|
167
86
|
- bin/console
|
|
168
87
|
- bin/setup
|
|
88
|
+
- docker-compose.yaml
|
|
169
89
|
- lib/regio.rb
|
|
170
90
|
- lib/regio/configuration.rb
|
|
171
91
|
- lib/regio/core.rb
|
|
@@ -187,7 +107,7 @@ metadata:
|
|
|
187
107
|
source_code_uri: https://github.com/tab/regio
|
|
188
108
|
changelog_uri: https://github.com/tab/regio/blob/master/CHANGELOG.md
|
|
189
109
|
rubygems_mfa_required: 'true'
|
|
190
|
-
post_install_message:
|
|
110
|
+
post_install_message:
|
|
191
111
|
rdoc_options: []
|
|
192
112
|
require_paths:
|
|
193
113
|
- lib
|
|
@@ -202,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
202
122
|
- !ruby/object:Gem::Version
|
|
203
123
|
version: '0'
|
|
204
124
|
requirements: []
|
|
205
|
-
rubygems_version: 3.3.
|
|
206
|
-
signing_key:
|
|
125
|
+
rubygems_version: 3.3.26
|
|
126
|
+
signing_key:
|
|
207
127
|
specification_version: 4
|
|
208
128
|
summary: Regio geocoding API
|
|
209
129
|
test_files: []
|