pumi 0.22.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: 81c3ddf02c20b32afcad34b8ef94dd02cebad4f283a18d114f4a968633da27e9
4
- data.tar.gz: a6202348cb45e09ebc2604345fa9168ae4f0036f2758272ea01c6295c82a8677
3
+ metadata.gz: 6c1c24285018ae5715ea61b871581ca1d08a20007d2ec24b53c12024b8b735d5
4
+ data.tar.gz: 36dbbd11a62002b2cb0d31171994392d37ea9cfee4305240c81f11368e5d18f5
5
5
  SHA512:
6
- metadata.gz: ab2ee88b4941d886d16e974662a691cfcd7bc15b34a4d635ec525aa63f973831b75029846b86881f729609bd09a2315a3e0769a61b6093527f5cdee393fe8097
7
- data.tar.gz: 3b3e112dd395f758fe386b0feea0616a7c81abb802b352e4a03b3e384f03e3c761818610b54eeb021a4dd1656c8332ea6e002b7fb76e8aef61853f97a5715740
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,26 @@
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
+
3
24
  ## [0.22.0](https://github.com/dwilkie/pumi/compare/v0.21.0...v0.22.0) (2023-11-08)
4
25
 
5
26
 
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/lib/pumi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pumi
2
- VERSION = "0.22.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.22.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-11-08 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: []