regio 0.3.2 → 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 +5 -0
- data/Dockerfile +13 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +3 -3
- data/README.md +19 -3
- data/docker-compose.yaml +7 -0
- data/lib/regio/version.rb +1 -1
- metadata +11 -7
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
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
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
|
@@ -42,7 +42,7 @@ GEM
|
|
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.48.
|
45
|
+
rubocop (1.48.1)
|
46
46
|
json (~> 2.3)
|
47
47
|
parallel (~> 1.10)
|
48
48
|
parser (>= 3.2.0.0)
|
@@ -86,7 +86,7 @@ DEPENDENCIES
|
|
86
86
|
rake (~> 13.0.6)
|
87
87
|
regio!
|
88
88
|
rspec (~> 3.12.0)
|
89
|
-
rubocop (~> 1.48.
|
89
|
+
rubocop (~> 1.48.1)
|
90
90
|
rubocop-performance (~> 1.16.0)
|
91
91
|
rubocop-rspec (~> 2.19.0)
|
92
92
|
simplecov (~> 0.22.0)
|
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
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-03-
|
11
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -66,15 +66,18 @@ executables: []
|
|
66
66
|
extensions: []
|
67
67
|
extra_rdoc_files: []
|
68
68
|
files:
|
69
|
+
- ".dockerignore"
|
69
70
|
- ".editorconfig"
|
70
71
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
71
72
|
- ".github/dependabot.yml"
|
72
|
-
- ".github/workflows/checks.
|
73
|
+
- ".github/workflows/checks.yaml"
|
74
|
+
- ".github/workflows/release.yaml"
|
73
75
|
- ".gitignore"
|
74
76
|
- ".rspec"
|
75
77
|
- ".rubocop.yml"
|
76
78
|
- CHANGELOG.md
|
77
79
|
- CODE_OF_CONDUCT.md
|
80
|
+
- Dockerfile
|
78
81
|
- Gemfile
|
79
82
|
- Gemfile.lock
|
80
83
|
- LICENSE.txt
|
@@ -82,6 +85,7 @@ files:
|
|
82
85
|
- Rakefile
|
83
86
|
- bin/console
|
84
87
|
- bin/setup
|
88
|
+
- docker-compose.yaml
|
85
89
|
- lib/regio.rb
|
86
90
|
- lib/regio/configuration.rb
|
87
91
|
- lib/regio/core.rb
|
@@ -103,7 +107,7 @@ metadata:
|
|
103
107
|
source_code_uri: https://github.com/tab/regio
|
104
108
|
changelog_uri: https://github.com/tab/regio/blob/master/CHANGELOG.md
|
105
109
|
rubygems_mfa_required: 'true'
|
106
|
-
post_install_message:
|
110
|
+
post_install_message:
|
107
111
|
rdoc_options: []
|
108
112
|
require_paths:
|
109
113
|
- lib
|
@@ -118,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
122
|
- !ruby/object:Gem::Version
|
119
123
|
version: '0'
|
120
124
|
requirements: []
|
121
|
-
rubygems_version: 3.3.
|
122
|
-
signing_key:
|
125
|
+
rubygems_version: 3.3.26
|
126
|
+
signing_key:
|
123
127
|
specification_version: 4
|
124
128
|
summary: Regio geocoding API
|
125
129
|
test_files: []
|