isorun 0.1.0.pre → 0.1.1.pre

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: 10d7a6ef709f41f79e3d275798dce186b8995d26125cae584b347f0f725edf3b
4
- data.tar.gz: 9cdc0d15515aed35aa9f80308a1b596d6438acca762f26eefb415a601728db58
3
+ metadata.gz: f76d6baf2ceba897ed13f617eced257f3639bf362c84fa7b30e1021624ca4fc0
4
+ data.tar.gz: 6a3bba72bb13df3a6b39c409be0c6aa53fa1e73478565b363df53dcf000210b8
5
5
  SHA512:
6
- metadata.gz: 2bbdcdbb8d2d2e1634a81027b5a67760392b99cdba2f47501072e317eb8e406db425830c0769ca424b97c547b4e06a33dee7eea514472c48ed343ed9635fc716
7
- data.tar.gz: 5dcbf18e9a2e22cca929a106b1a378b0fad43fb4c0e7e2c98123ebd969dc4d14e682c9d986c2423c3b17bb343e3a76d06c2fe7162cf49417dcb16683b688d30c
6
+ metadata.gz: 1e5587ed76629cc10c560d64899ac41819576407b0f48793b3341e9ad4ea96b462a783bf53ccc767098ee7575d685fcb62c8e2521305abdda52d6f4206c57999
7
+ data.tar.gz: '09e43067f518aa8863b0146b14d7bed14bbd49c345fba39b11493c2b79a42dd00be51c964141c274b27d5853daa82ca353bb9f735ca852ee1bb65066df7d9529'
@@ -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"
@@ -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: ruby
6
6
  authors:
7
7
  - Hannes Moser