regio 0.3.2 → 0.3.3

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: 33db1ff3f8b85f69b9dd9a305ec77e9fbf5f4f7f127ed5286a5b1ad5a1abd83a
4
- data.tar.gz: 860d8377889cbf7893d5868a5e73af61748057e9f77a4cd6854453d752e476bd
3
+ metadata.gz: 101516d05b35e0fff2042405c0ecf84645faaf29e02180f591491ea43399ce24
4
+ data.tar.gz: 65c2d011cf4a8bf8461a0f7b903737ea97841952a564d7ad2a57047aef0318eb
5
5
  SHA512:
6
- metadata.gz: a68c78729907b94fb0fd6fab2a33ac53b1b8bdc661ab33cacd3b70d93f4c94712a64ba8b7c108df4d4c48e35df2ab0f8f967ac26b94fe955318ea37bccf4bcd9
7
- data.tar.gz: f3794cb61072a66c2ecbae6f9dcb30fcb07e1b7de3950c8a48a4ccde17c3002e26a969ffa24588057d65da023f885af12c7d3f5e430fe812bd0868c393d1a466
6
+ metadata.gz: 4f19196f30c9b1193ca3484a9b67363dfacdab5d8d082bea500a9239917f6dcc506c139589008246422294deebb423c40e98f88f5ea07c0ca2e94184880fe87c
7
+ data.tar.gz: af5daee5578cc5b18e4462dc0a6e9aa08e4d3fe01488fe1ad91b660b384e9677c63fc343e0040e7037b68c070e76b08f8e7e679d6ca39537c3251262ce430cd3
data/.dockerignore ADDED
@@ -0,0 +1,13 @@
1
+ **/.git
2
+ **/.idea
3
+ /.github
4
+ /docs
5
+ /log
6
+ /tmp
7
+ /.dockerignore
8
+ /.editorconfig
9
+ /.gitattributes
10
+ /.gitignore
11
+ /docker-compose.yaml
12
+ /Dockerfile
13
+ /README.md
@@ -28,7 +28,7 @@ jobs:
28
28
  - uses: actions/checkout@v3
29
29
  - uses: ruby/setup-ruby@v1
30
30
  with:
31
- ruby-version: 3.1.2
31
+ ruby-version: 3.1.3
32
32
  bundler-cache: true
33
33
  - name: Check with RuboCop
34
34
  run: bundle exec rubocop
@@ -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,10 @@
1
1
  # Change log
2
2
 
3
+ ## v0.3.3 (21.03.2023)
4
+
5
+ * 1 minor enhancement:
6
+ * Development in docker
7
+
3
8
  ## v0.3.2 (10.03.2023)
4
9
 
5
10
  * 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
@@ -8,7 +8,7 @@ gemspec
8
8
 
9
9
  group :development, :test do
10
10
  gem 'rspec', '~> 3.12.0'
11
- gem 'rubocop', '~> 1.48.0'
11
+ gem 'rubocop', '~> 1.48.1'
12
12
  gem 'rubocop-performance', '~> 1.16.0'
13
13
  gem 'rubocop-rspec', '~> 2.19.0'
14
14
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- regio (0.3.2)
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.0)
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.0)
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.2'
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
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
149
+ Build docker container with compose:
150
150
 
151
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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
 
@@ -0,0 +1,7 @@
1
+ services:
2
+ regio:
3
+ build: .
4
+ tty: true
5
+ stdin_open: true
6
+ volumes:
7
+ - .:/package
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.2'
4
+ VERSION = '0.3.3'
5
5
  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.2
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-10 00:00:00.000000000 Z
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.yml"
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.7
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: []