morio_bridge 0.1.3 → 0.1.4

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: 0f477ab2f932b4db901d05c72055bd8befe3b15476864d2cfa70cf40320dff77
4
- data.tar.gz: bc7f9ce405f3c8ef79abcf76764ee5a6d4474e938050c7a41a0ef15ab0f7806b
3
+ metadata.gz: 05c9a25b32cb8f21f3061e6458525cd13803a4a48d6a0789db61ad51772568b3
4
+ data.tar.gz: 92215a5a2b838648fcd913bd30c53dc0e241cd126cf796793c04c6bbd0cd1b02
5
5
  SHA512:
6
- metadata.gz: 6e0f33c203312e6377b45e403a41f7e9f8ecdce41e6b889b682542c5298b03cd67d7dedb20454448a0278ed2fa55ae12993bc836ebf890520ba6c0bcaa3aaf50
7
- data.tar.gz: 4fcc615513f55f015a2374701c6816cad4bf9f0394ea0e58c814b65d582d345b6a79c54608852ca376294968deb8403140049a9d7dd11e91747a81c9b6088191
6
+ metadata.gz: 3f32566c104cfe8ea87f6c3576ecb89cc24a973afe2ba6551e22b2d8fe893475db9dfad39a98b75959132116e863cda7392776631a31594db9507a10f2fd91ac
7
+ data.tar.gz: 4906cefa124da5039e0f96300759a290465608f606b2be54fa2d02002d51f7c0b141bf4b0c6f371f86b6de18e2ade242bd8049d7dd58352a3bb61653d77b5589
data/bin/post-install.sh CHANGED
@@ -42,19 +42,23 @@ PLATFORM="$2"
42
42
  ARCH="$3"
43
43
  OUTPUT=$HOME/.morio/bin/bridge_server.js
44
44
 
45
- # show the current directory
46
- echo "current directory: $(pwd)"
45
+ # Get the directory of the script (gem's bin/ directory)
46
+ SCRIPT_DIR="$(dirname "$(realpath "$0")")"
47
47
 
48
- # list the folders and files in the current directory
49
- echo "current directory contents:"
50
- ls -la
48
+ # Navigate up to the gem's root directory (e.g., /usr/local/bundle/gems/morio_bridge-0.1.0)
49
+ GEM_DIR="$(realpath "$SCRIPT_DIR/..")"
51
50
 
52
- # list the folders and files in the parent directory
53
- echo "parent directory contents:"
54
- ls -la ..
51
+ # log the gem and script directory
52
+ echo "gem directory: $GEM_DIR"
53
+ echo "script directory: $SCRIPT_DIR"
55
54
 
55
+ # list the folders and files in the gem directory
56
+ echo "gem directory contents:"
57
+ ls -la "$GEM_DIR"
56
58
 
57
- cd ../server
59
+
60
+
61
+ cd "$GEM_DIR/server"
58
62
 
59
63
  bun install
60
64
  bun build --target=bun index.ts --outfile "$OUTPUT"
data/morio_bridge.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "morio_bridge"
5
- spec.version = "0.1.3"
5
+ spec.version = "0.1.4"
6
6
  spec.authors = ["r2g"]
7
7
  spec.email = ["r2g.technology@gmail.com"]
8
8
  spec.summary = "A simple Ruby gem with a post-install hook."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morio_bridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - r2g