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

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: f6ba42c88d6b859550c970a2093723eefa763e74d14c49b0b63ff5154d1ff003
4
- data.tar.gz: 401bf887c7f8efba03285e4c79708df1a57dfb05a579ea7301612d54cd6448e0
3
+ metadata.gz: 6d5f237885b1f9a3a9baea5e88a0ecd7fd72c3888d536c934976b42e03d5c508
4
+ data.tar.gz: 226171288be05614237e3dbe6723243339617ade138a2a9c41894b3dcef80d15
5
5
  SHA512:
6
- metadata.gz: 984acc2e6755a5290a099a8125fbeda42c21e2f53355b0ca94521e437e2e0f23283bc0ceed35c0fea59635d321645a36ab8a5c0eb8bc9f39b429f65b99419896
7
- data.tar.gz: 7b09a4686edae82becb6fc1acc003ee16af5dc608bf926a22b5db4139f1c5dfd70b9e7b7a4b7ec83992d3cdf23ea9f7a1ea2324fbd5fe05c288ed8fd702129b8
6
+ metadata.gz: 6733ea647f1ac656d44ff7441b6b4cf88f497b89facc60ce3dec521230aa39bd8ba2f64fb69786a32d8d6bcfee73ee4546bdbf079060770f8b7ca822782bf445
7
+ data.tar.gz: 21dc57e56c467f1d5389454fe50b1e85466fdf92e045d999e975868ee0234de14372d818c4217046adba61f58b093faaaa69cc5bee7fd073c34f742d35183c40
@@ -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-darwin
6
6
  authors:
7
7
  - Hannes Moser