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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fec870afd721f5e9497b0d95e07fa4f8e7763dbc0d1d731d2e8c5cd9b73f8bbf
4
- data.tar.gz: f5177a9d88aad3fec18cb5dc689fe703d8fadebc7b299333a53987f45f56d09a
3
+ metadata.gz: 6c1c24285018ae5715ea61b871581ca1d08a20007d2ec24b53c12024b8b735d5
4
+ data.tar.gz: 36dbbd11a62002b2cb0d31171994392d37ea9cfee4305240c81f11368e5d18f5
5
5
  SHA512:
6
- metadata.gz: 516e0b65a0ec6f3dc1fd85994e8006bb73f7512057e0830493289c993fcba1a36b99f986568680e95b80c4623ba79ea37adfc66111918b1da6deef0407babbeb
7
- data.tar.gz: 2d03b95d0ab96fb4626d508eb549600243c916b4f3504c452f225d976fb21d073fffb6db7c8f78b27885c9e435186255ea72308cde798bd277c8e307122a9415
6
+ metadata.gz: '0139c6913fef7cb86b18294ae9d08880cf7381c616c5e4b5b9daf2a586dfb90fc8fea5f5b877f455ff78c1383b45b25a7e17ae1dd9cf974c5d514d06bbfaed69'
7
+ data.tar.gz: 4ed6a5bc98428c5efda3e727f586d6af643b01ffe1747019807e80a8b7b72e2a6c153188ddf39b5fa0dda4e3aa925b4907924e67f6a29a832b91366d02db3761
@@ -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 }}
@@ -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.23.2"
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.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/Aoral
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: Chraoy Chongvar
1890
+ latin: Chrouy Changvar
1891
1891
  administrative_unit:
1892
1892
  km: ខណ្ឌ
1893
1893
  latin: Khan
data/lib/pumi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pumi
2
- VERSION = "0.21.0".freeze
2
+ VERSION = "0.23.2".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.21.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: 2023-10-06 00:00:00.000000000 Z
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: []