pumi 0.22.0 → 0.24.0
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/.github/actions/fetch_data/Dockerfile +1 -0
- data/.github/actions/fetch_data/action.yml +0 -12
- data/.github/actions/fetch_data/entrypoint.sh +13 -10
- data/.github/workflows/release.yml +2 -4
- data/.github/workflows/update_data.yml +2 -2
- data/.release-please-manifest.json +3 -0
- data/.tool-versions +1 -1
- data/CHANGELOG.md +28 -0
- data/data/districts.yml +1 -1
- data/data/villages.yml +1 -1
- data/lib/pumi/version.rb +1 -1
- data/release-please-config.json +16 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff9cc72e644e3dcc8693e8d273f26e56083305209ef902aba211436b982e79a2
|
|
4
|
+
data.tar.gz: d2b76f1da09ca0e8a9800c7fae842543e4f36fb7f91a389834a0c6a364c1a657
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f28e874fe2571890558f50ca1b47e8ba238bc293164edbb296d6c025381858ca3e9df051a0492a99c75c3853120b0feed3e356c5f6ab0b914c0fed175e977c27
|
|
7
|
+
data.tar.gz: e134d415e538f809a17c7722290aca118676508ef3ed9851e58d7f2d8f7dc2a20f623a60fad10d64b87839c850e1950fff5c83ab28dfdf7e5dbf24a0ff782f0c
|
|
@@ -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
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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@
|
|
12
|
+
- uses: google-github-actions/release-please-action@v4
|
|
13
13
|
id: release
|
|
14
14
|
with:
|
|
15
|
-
|
|
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@
|
|
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@
|
|
35
|
+
uses: actions/upload-artifact@v4
|
|
36
36
|
with:
|
|
37
37
|
name: data_files
|
|
38
38
|
path: tmp
|
data/.tool-versions
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
ruby 3.2.2
|
|
2
|
-
nodejs 18.
|
|
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
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
|
@@ -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.
|
|
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:
|
|
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: []
|