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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31c5a5cb5930d286da819d6378577793493ebf647b3107768bd647be4a595740
4
- data.tar.gz: 6d2e2823fd7b125d20d7535d125a716c083a3271fe08ffc27cf210f2919d474e
3
+ metadata.gz: 4eb08f26e48149668f5d9efed1e5fba238efad0b58f1834b7e429e857ad16bad
4
+ data.tar.gz: d71dc31a7054edeb3436c358844ea139e39ddc6443a5ebb7612771319b19e0dc
5
5
  SHA512:
6
- metadata.gz: bc8056b24dbaa2d173655f988d6b1af7ce977605e3315c2096040c8ee22678ed75ac409f10aa3941945b14d3028040e7c9ff3a3cc9d3cdbb3e64e20a817b52d4
7
- data.tar.gz: d1dda94d93562080a80c0426fd31a93ae19dcf9d2bee0184fc0b1cb2cf3c17c56825922e2262fa0b9667b2f5b9d524b3d08905bb1ef624e5dc0d3f843bf3f6e7
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
@@ -8,7 +8,7 @@
8
8
 
9
9
  # Offense count: 1
10
10
  Metrics/AbcSize:
11
- Max: 17
11
+ Max: 20
12
12
 
13
13
  # Offense count: 1
14
14
  # Configuration parameters: CountComments, ExcludedMethods.
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.7.8
data/README.md CHANGED
@@ -35,6 +35,12 @@ Or install it yourself as:
35
35
 
36
36
  ## Usage
37
37
 
38
+ Require the library
39
+
40
+ ```ruby
41
+ require 'swiss_village_directory'
42
+ ```
43
+
38
44
  Find by attributes:
39
45
 
40
46
  ```ruby
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module SwissVillageDirectory
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.4.0'.freeze
3
3
  end
@@ -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.5.0'
20
+ spec.required_ruby_version = '>= 2.7.0'
21
21
 
22
- spec.add_development_dependency 'bundler', '~> 1.17'
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.3.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: 2019-09-11 00:00:00.000000000 Z
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.17'
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.17'
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.5.0
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
- rubyforge_project:
147
- rubygems_version: 2.7.6
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)
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.5
5
- - 2.6
6
- cache: bundler
7
- script: bin/check