isorun 0.1.0.pre-x86_64-linux → 0.1.1.pre-x86_64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cc68f577d99bfd8223095b62ee554d7feb224e7509f87c2941c1c6a26dc437e
4
- data.tar.gz: dcd6232870f55c04db9cc2caa754bf92d4aa84057182f73a95e0613f7f467657
3
+ metadata.gz: 42664c6e5b6ee8842b03a07891fbfda3961f171b9f6b7563556503d8c5aea340
4
+ data.tar.gz: ec7de0e6e7488007de099035d76e3f815744cb8e7f741305d43c4a64a9fd66a0
5
5
  SHA512:
6
- metadata.gz: 6f027689bc2ed2be4769cc4df7e9d2adf794f9e3e62546ee6678e57a2608682ceddf36f19ba2ea8dc6a4a4e0ddfd6525427921ad9482a7feb0b409d66c2cd451
7
- data.tar.gz: 83613b98a938a5abd2113ed12dad879216ccadadb2b012d7f2cead5a68b1a79dba0c6b4832c75d5da26571de60585ce114147937028a6b0beca99d14b632ad6e
6
+ metadata.gz: 1c3d0e9458000edc83dc1a18dd6b5e278e5e1e686713c99dec080f4fa6d8542beca75e5bf2bf9f808a0d50ca44039883ac458517cc734d2868ec5967b8e4b148
7
+ data.tar.gz: d6d25d9972a3c959fde5b82b05a41b37d124ea13b2f8789f7f99857e2dd086adcfdffdc2360cfd546288b46376058e0b6c810f34ece6def690be98209045d34c
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "isorun"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  edition = "2021"
5
5
  authors = ["Hannes Moser <box@hannesmoser.at>"]
6
6
  homepage = "https://github.com/eliias/isorun"
Binary file
Binary file
Binary file
@@ -6,7 +6,8 @@ module Isorun
6
6
  if Rails.env.development?
7
7
  Rails.root.join("app", "assets", "builds", "#{bundle_id}-server.js").to_s
8
8
  else
9
- javascript_path("#{bundle_id}-server")
9
+ asset = ActionController::Base.helpers.asset_path("#{bundle_id}-server")
10
+ asset_path(asset)
10
11
  end
11
12
  }
12
13
 
@@ -14,8 +15,16 @@ module Isorun
14
15
  if Rails.env.development?
15
16
  Rails.root.join("app", "assets", "builds", "#{bundle_id}.js").to_s
16
17
  else
17
- javascript_path(bundle_id)
18
+ asset = ActionController::Base.helpers.asset_path(bundle_id)
19
+ asset_path(asset)
18
20
  end
19
21
  }
20
22
  end
23
+
24
+ private
25
+
26
+ def asset_path(asset)
27
+ asset_path = Rails.application.assets_manifest.assets["#{asset}.js"]
28
+ "#{Rails.application.assets_manifest.directory}/#{asset_path}"
29
+ end
21
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Isorun
4
- VERSION = "0.1.0.pre"
4
+ VERSION = "0.1.1.pre"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isorun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre
4
+ version: 0.1.1.pre
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Hannes Moser