pumi 0.22.0 → 0.24.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: 81c3ddf02c20b32afcad34b8ef94dd02cebad4f283a18d114f4a968633da27e9
4
- data.tar.gz: a6202348cb45e09ebc2604345fa9168ae4f0036f2758272ea01c6295c82a8677
3
+ metadata.gz: ff9cc72e644e3dcc8693e8d273f26e56083305209ef902aba211436b982e79a2
4
+ data.tar.gz: d2b76f1da09ca0e8a9800c7fae842543e4f36fb7f91a389834a0c6a364c1a657
5
5
  SHA512:
6
- metadata.gz: ab2ee88b4941d886d16e974662a691cfcd7bc15b34a4d635ec525aa63f973831b75029846b86881f729609bd09a2315a3e0769a61b6093527f5cdee393fe8097
7
- data.tar.gz: 3b3e112dd395f758fe386b0feea0616a7c81abb802b352e4a03b3e384f03e3c761818610b54eeb021a4dd1656c8332ea6e002b7fb76e8aef61853f97a5715740
6
+ metadata.gz: f28e874fe2571890558f50ca1b47e8ba238bc293164edbb296d6c025381858ca3e9df051a0492a99c75c3853120b0feed3e356c5f6ab0b914c0fed175e977c27
7
+ data.tar.gz: e134d415e538f809a17c7722290aca118676508ef3ed9851e58d7f2d8f7dc2a20f623a60fad10d64b87839c850e1950fff5c83ab28dfdf7e5dbf24a0ff782f0c
@@ -6,3 +6,4 @@ COPY entrypoint.sh /entrypoint.sh
6
6
 
7
7
  # Code file to execute when the docker container starts up (`entrypoint.sh`)
8
8
  ENTRYPOINT ["/entrypoint.sh"]
9
+ CMD [ "fetch-data" ]
@@ -1,17 +1,5 @@
1
1
  name: Fetch Data
2
2
  description: Fetches the latest data
3
- inputs:
4
- num_provinces:
5
- description: Number of provinces to fetch
6
- required: true
7
- default: 25
8
- url:
9
- description: URL to fetch the data
10
- required: true
11
- default: 'http://db.ncdd.gov.kh/gazetteer/province/downloadprovince.castle?pv=${province_code}'
12
3
  runs:
13
4
  using: docker
14
5
  image: Dockerfile
15
- args:
16
- - ${{ inputs.num_provinces }}
17
- - ${{ inputs.url }}
@@ -3,14 +3,17 @@
3
3
  set -e
4
4
  set -o pipefail
5
5
 
6
- PLACEHOLDER='${province_code}'
6
+ if [ "$1" = 'fetch-data' ]; then
7
+ URL="https://db.ncdd.gov.kh/gazetteer/province/downloadprovince.castle?pv=PROVINCE_CODE"
8
+ PLACEHOLDER="PROVINCE_CODE"
9
+ NUM_PROVINCES="25"
7
10
 
8
- num_provinces=$1
9
- url=$2
10
-
11
- for province_code in `seq 1 $num_provinces`
12
- do
13
- province_url=$(echo $url | sed -e s/$PLACEHOLDER/$province_code/g)
14
- curl -s $province_url > "tmp/p$province_code.xls"
15
- ssconvert "tmp/p$province_code.xls" "tmp/p$province_code.csv"
16
- done
11
+ for province_code in `seq 1 $NUM_PROVINCES`
12
+ do
13
+ province_url=$(echo $URL | sed -e s/$PLACEHOLDER/$province_code/g)
14
+ curl -k -s $province_url > "tmp/p$province_code.xls"
15
+ ssconvert "tmp/p$province_code.xls" "tmp/p$province_code.csv"
16
+ done
17
+ else
18
+ exec "$@"
19
+ fi
@@ -9,12 +9,10 @@ jobs:
9
9
  release-please:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: google-github-actions/release-please-action@v3
12
+ - uses: google-github-actions/release-please-action@v4
13
13
  id: release
14
14
  with:
15
- release-type: ruby
16
- bump-minor-pre-major: true
17
- version-file: "lib/pumi/version.rb"
15
+ token: ${{ secrets.PUMI_PERSONAL_ACCESS_TOKEN }}
18
16
 
19
17
  - uses: actions/checkout@v4
20
18
  if: ${{ steps.release.outputs.release_created }}
@@ -23,7 +23,7 @@ jobs:
23
23
  run: ./bin/parse_data
24
24
 
25
25
  - name: Create Pull Request
26
- uses: peter-evans/create-pull-request@v5
26
+ uses: peter-evans/create-pull-request@v6
27
27
  with:
28
28
  token: ${{ secrets.REPO_TOKEN }}
29
29
  commit-message: "feat: Update data"
@@ -32,7 +32,7 @@ jobs:
32
32
  base: "master"
33
33
 
34
34
  - name: Upload Data
35
- uses: actions/upload-artifact@v3
35
+ uses: actions/upload-artifact@v4
36
36
  with:
37
37
  name: data_files
38
38
  path: tmp
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.24.0"
3
+ }
data/.tool-versions CHANGED
@@ -1,2 +1,2 @@
1
1
  ruby 3.2.2
2
- nodejs 18.15.0
2
+ nodejs 18.19.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.24.0](https://github.com/dwilkie/pumi/compare/v0.23.2...v0.24.0) (2024-04-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * Update data ([#75](https://github.com/dwilkie/pumi/issues/75)) ([f7c2cbb](https://github.com/dwilkie/pumi/commit/f7c2cbba14b1ac62065f3569ab5f08cabcc2aaa2))
9
+
10
+ ## [0.23.2](https://github.com/dwilkie/pumi/compare/v0.23.1...v0.23.2) (2024-01-30)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Specify version-file in release-please config ([272e793](https://github.com/dwilkie/pumi/commit/272e793fe42074a9339ed905599b97609e73e2e5))
16
+
17
+ ## [0.23.1](https://github.com/dwilkie/pumi/compare/v0.23.0...v0.23.1) (2024-01-30)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * Fetch action ([#71](https://github.com/dwilkie/pumi/issues/71)) ([7d0e4d0](https://github.com/dwilkie/pumi/commit/7d0e4d04f1d43010e0bc43ef3a47263ec2525cee))
23
+
24
+ ## [0.23.0](https://github.com/dwilkie/pumi/compare/v0.22.0...v0.23.0) (2024-01-22)
25
+
26
+
27
+ ### Features
28
+
29
+ * Update data ([9e39dff](https://github.com/dwilkie/pumi/commit/9e39dffc4a3a229b72668cb04eda4b1c932e04f6))
30
+
3
31
  ## [0.22.0](https://github.com/dwilkie/pumi/compare/v0.21.0...v0.22.0) (2023-11-08)
4
32
 
5
33
 
data/data/districts.yml CHANGED
@@ -801,7 +801,7 @@ districts:
801
801
  latin: Srok
802
802
  en: District
803
803
  links:
804
- wikipedia: https://en.wikipedia.org/wiki/Aoral
804
+ wikipedia: https://en.wikipedia.org/wiki/Aural_District
805
805
  geodata:
806
806
  lat: '11.777897450000001'
807
807
  long: '104.01083834230268'
data/data/villages.yml CHANGED
@@ -108018,7 +108018,7 @@ villages:
108018
108018
  en: Village
108019
108019
  '22040403':
108020
108020
  name:
108021
- km: ពុល
108021
+ km: ពុរ
108022
108022
  latin: Pul
108023
108023
  administrative_unit:
108024
108024
  km: ភូមិ
data/lib/pumi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pumi
2
- VERSION = "0.22.0".freeze
2
+ VERSION = "0.24.0".freeze
3
3
  end
@@ -0,0 +1,16 @@
1
+ {
2
+ "bootstrap-sha": "9e39dffc4a3a229b72668cb04eda4b1c932e04f6",
3
+ "include-component-in-tag": false,
4
+ "version-file": "lib/pumi/version.rb",
5
+ "packages": {
6
+ ".": {
7
+ "changelog-path": "CHANGELOG.md",
8
+ "release-type": "ruby",
9
+ "bump-minor-pre-major": true,
10
+ "bump-patch-for-minor-pre-major": false,
11
+ "draft": false,
12
+ "prerelease": false
13
+ }
14
+ },
15
+ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
16
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pumi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Wilkie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-08 00:00:00.000000000 Z
11
+ date: 2024-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -292,6 +292,7 @@ files:
292
292
  - ".github/workflows/release.yml"
293
293
  - ".github/workflows/update_data.yml"
294
294
  - ".gitignore"
295
+ - ".release-please-manifest.json"
295
296
  - ".rspec"
296
297
  - ".rubocop.yml"
297
298
  - ".tool-versions"
@@ -349,6 +350,7 @@ files:
349
350
  - pumi.jpg
350
351
  - pumi_ui_en.png
351
352
  - pumi_ui_km.png
353
+ - release-please-config.json
352
354
  - tmp/.keep
353
355
  homepage: https://github.com/dwilkie/pumi
354
356
  licenses: []