swiss-village-directory 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +38 -0
- data/.rubocop_todo.yml +1 -1
- data/.ruby-version +1 -1
- data/README.md +6 -0
- data/lib/swiss_village_directory/repository.rb +1 -1
- data/lib/swiss_village_directory/version.rb +1 -1
- data/swiss-village-directory.gemspec +2 -2
- metadata +11 -12
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eb08f26e48149668f5d9efed1e5fba238efad0b58f1834b7e429e857ad16bad
|
4
|
+
data.tar.gz: d71dc31a7054edeb3436c358844ea139e39ddc6443a5ebb7612771319b19e0dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc89ac09112b5830d09a3b53d527292a87d55e376a72ba08347c363e5413f5d49aaf187b4f909f4661f90622c4ed680f85b4871e470df8897e8bd1a8644b941e
|
7
|
+
data.tar.gz: 69c0291682b558a2777c4754f283d41c1d69a0a1555b4eb8208280c27c692a3638e2b4c694c4b87f0bae95cfa4f6ce65e18ed603a4d9402479f4f9cf9143d531
|
@@ -0,0 +1,38 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ "master" ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ "master" ]
|
8
|
+
|
9
|
+
permissions:
|
10
|
+
contents: read
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
lint:
|
14
|
+
runs-on: ubuntu-22.04
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v3
|
17
|
+
- name: Set up Ruby
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: '2.7'
|
21
|
+
bundler-cache: true
|
22
|
+
- name: Run rubocop
|
23
|
+
run: bundle exec rubocop
|
24
|
+
|
25
|
+
test:
|
26
|
+
runs-on: ubuntu-22.04
|
27
|
+
strategy:
|
28
|
+
matrix:
|
29
|
+
ruby-version: ['2.7', '3.0', '3.1']
|
30
|
+
steps:
|
31
|
+
- uses: actions/checkout@v3
|
32
|
+
- name: Set up Ruby
|
33
|
+
uses: ruby/setup-ruby@v1
|
34
|
+
with:
|
35
|
+
ruby-version: ${{ matrix.ruby-version }}
|
36
|
+
bundler-cache: true
|
37
|
+
- name: Run tests
|
38
|
+
run: bundle exec rspec
|
data/.rubocop_todo.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.8
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ module SwissVillageDirectory
|
|
21
21
|
'Sprache' => :language
|
22
22
|
}
|
23
23
|
|
24
|
-
villages_hashes = CSV.open(filename, options).map do |row|
|
24
|
+
villages_hashes = CSV.open(filename, 'r', **options).map do |row|
|
25
25
|
row.to_h.transform_keys { |k| source_key_mapping[k] }
|
26
26
|
end
|
27
27
|
|
@@ -17,9 +17,9 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.required_ruby_version = '>= 2.
|
20
|
+
spec.required_ruby_version = '>= 2.7.0'
|
21
21
|
|
22
|
-
spec.add_development_dependency 'bundler', '~> 1
|
22
|
+
spec.add_development_dependency 'bundler', '~> 2.1'
|
23
23
|
spec.add_development_dependency 'pry', '~> 0.12'
|
24
24
|
spec.add_development_dependency 'rake', '~> 12.0'
|
25
25
|
spec.add_development_dependency 'rspec', '~> 3.8'
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swiss-village-directory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josua Schmid
|
8
8
|
- Simon Huber
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-06-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1
|
20
|
+
version: '2.1'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1
|
27
|
+
version: '2.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: pry
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0.17'
|
98
|
-
description:
|
98
|
+
description:
|
99
99
|
email:
|
100
100
|
- josua.schmid@renuo.ch
|
101
101
|
- simon.huber@renuo.ch
|
@@ -103,12 +103,12 @@ executables: []
|
|
103
103
|
extensions: []
|
104
104
|
extra_rdoc_files: []
|
105
105
|
files:
|
106
|
+
- ".github/workflows/ci.yml"
|
106
107
|
- ".gitignore"
|
107
108
|
- ".rspec"
|
108
109
|
- ".rubocop.yml"
|
109
110
|
- ".rubocop_todo.yml"
|
110
111
|
- ".ruby-version"
|
111
|
-
- ".travis.yml"
|
112
112
|
- CODE_OF_CONDUCT.md
|
113
113
|
- CONTRIBUTING.md
|
114
114
|
- Gemfile
|
@@ -128,7 +128,7 @@ homepage: https://github.com/renuo/swiss-village-directory
|
|
128
128
|
licenses:
|
129
129
|
- MIT
|
130
130
|
metadata: {}
|
131
|
-
post_install_message:
|
131
|
+
post_install_message:
|
132
132
|
rdoc_options: []
|
133
133
|
require_paths:
|
134
134
|
- lib
|
@@ -136,16 +136,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
136
|
requirements:
|
137
137
|
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: 2.
|
139
|
+
version: 2.7.0
|
140
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
|
147
|
-
|
148
|
-
signing_key:
|
146
|
+
rubygems_version: 3.1.6
|
147
|
+
signing_key:
|
149
148
|
specification_version: 4
|
150
149
|
summary: This gem provides a data set of all swiss villages taken out of the "Ortschaftenverzeichnis"
|
151
150
|
(https://data.geo.admin.ch/ch.swisstopo-vd.ortschaftenverzeichnis_plz/readme.txt)
|