pumi 0.21.0 → 0.23.2
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 +1 -1
- data/.release-please-manifest.json +3 -0
- data/.tool-versions +1 -1
- data/CHANGELOG.md +28 -0
- data/data/districts.yml +2 -2
- 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: 6c1c24285018ae5715ea61b871581ca1d08a20007d2ec24b53c12024b8b735d5
|
|
4
|
+
data.tar.gz: 36dbbd11a62002b2cb0d31171994392d37ea9cfee4305240c81f11368e5d18f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0139c6913fef7cb86b18294ae9d08880cf7381c616c5e4b5b9daf2a586dfb90fc8fea5f5b877f455ff78c1383b45b25a7e17ae1dd9cf974c5d514d06bbfaed69'
|
|
7
|
+
data.tar.gz: 4ed6a5bc98428c5efda3e727f586d6af643b01ffe1747019807e80a8b7b72e2a6c153188ddf39b5fa0dda4e3aa925b4907924e67f6a29a832b91366d02db3761
|
|
@@ -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 }}
|
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.23.2](https://github.com/dwilkie/pumi/compare/v0.23.1...v0.23.2) (2024-01-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Specify version-file in release-please config ([272e793](https://github.com/dwilkie/pumi/commit/272e793fe42074a9339ed905599b97609e73e2e5))
|
|
9
|
+
|
|
10
|
+
## [0.23.1](https://github.com/dwilkie/pumi/compare/v0.23.0...v0.23.1) (2024-01-30)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* Fetch action ([#71](https://github.com/dwilkie/pumi/issues/71)) ([7d0e4d0](https://github.com/dwilkie/pumi/commit/7d0e4d04f1d43010e0bc43ef3a47263ec2525cee))
|
|
16
|
+
|
|
17
|
+
## [0.23.0](https://github.com/dwilkie/pumi/compare/v0.22.0...v0.23.0) (2024-01-22)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* Update data ([9e39dff](https://github.com/dwilkie/pumi/commit/9e39dffc4a3a229b72668cb04eda4b1c932e04f6))
|
|
23
|
+
|
|
24
|
+
## [0.22.0](https://github.com/dwilkie/pumi/compare/v0.21.0...v0.22.0) (2023-11-08)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* Update data ([12c00a1](https://github.com/dwilkie/pumi/commit/12c00a1993ec0aa378c6e8bf8aabde4d755383dd))
|
|
30
|
+
|
|
3
31
|
## [0.21.0](https://github.com/dwilkie/pumi/compare/v0.20.2...v0.21.0) (2023-10-06)
|
|
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/
|
|
804
|
+
wikipedia: https://en.wikipedia.org/wiki/Aural_District
|
|
805
805
|
geodata:
|
|
806
806
|
lat: '11.777897450000001'
|
|
807
807
|
long: '104.01083834230268'
|
|
@@ -1887,7 +1887,7 @@ districts:
|
|
|
1887
1887
|
'1210':
|
|
1888
1888
|
name:
|
|
1889
1889
|
km: ជ្រោយចង្វារ
|
|
1890
|
-
latin:
|
|
1890
|
+
latin: Chrouy Changvar
|
|
1891
1891
|
administrative_unit:
|
|
1892
1892
|
km: ខណ្ឌ
|
|
1893
1893
|
latin: Khan
|
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.23.2
|
|
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-01-30 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: []
|