opal-webpack-compile-server 0.1.7 → 0.1.8

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: 54e439405fbcc81a490de07aef240342e032e428e6346aa5b9e2c11676524397
4
- data.tar.gz: 2dea3e815f292aa37fe6219b9769ff275d200198a625afe46864747f4bc3e75d
3
+ metadata.gz: 1f10204478ac16013896bb31b3265c4043375f6908c569528d1c6eaf4108e8a6
4
+ data.tar.gz: 8f7329ae99710fc800cf433c2d021605b2022e0aa64476f5ec72b381e5e3c153
5
5
  SHA512:
6
- metadata.gz: 91f77ea37ad165967d0509e4880060225d7346cac1324295484339589d30211bc22c5bdb5a5006a50ebea14af1ee29bb37d0486c7afc7c2f0d801111efaf15c2
7
- data.tar.gz: c55a5d607954613fb160819396f15559d6cc5bf53e910d7f5be1138b9e65326c17a0129faab1a142ac253e116e383be9cf02605d8e5410b52dfeeed0042266e0
6
+ metadata.gz: 97e50430b4a2eb40611216dc89a1528154c08f6585add8c8bff501d3ddceec2c13b2e1931ad0e771b159589f78270f7794aa1eaa13d1587fcdd88aee34140939
7
+ data.tar.gz: ab8700778bd6dc64b06073975a301047114296c29f7b5010dd04c170996acb5d1cf7bf0fbf429ce04aec2e374eedc3e0919affd2f33d2f2b30221a99d1344980
@@ -74,9 +74,15 @@ module OpalWebpackCompileServer
74
74
  end
75
75
 
76
76
  def self.get_load_paths
77
- load_paths = %x{
78
- bundle exec rails runner "puts (Rails.configuration.respond_to?(:assets) ? (Rails.configuration.assets.paths + Opal.paths).uniq : Opal.paths)"
79
- }
77
+ load_paths = if File.exist?('bin/rails')
78
+ %x{
79
+ bundle exec rails runner "puts (Rails.configuration.respond_to?(:assets) ? (Rails.configuration.assets.paths + Opal.paths).uniq : Opal.paths)"
80
+ }
81
+ else
82
+ %x{
83
+ bundle exec ruby -e 'require "bundler/setup"; Bundler.require; puts Opal.paths'
84
+ }
85
+ end
80
86
  if $? == 0
81
87
  load_path_lines = load_paths.split("\n")
82
88
  load_path_lines.pop if load_path_lines.last == ''
@@ -95,7 +101,7 @@ module OpalWebpackCompileServer
95
101
  File.write(OpalWebpackCompileServer::OWL_LP_CACHE, Oj.dump(cache_obj))
96
102
  load_path_lines
97
103
  else
98
- puts 'Error getting load paths!'
104
+ raise 'Error getting load paths!'
99
105
  exit(2)
100
106
  end
101
107
  end
@@ -1,3 +1,3 @@
1
1
  module OpalWebpackCompileServer
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-webpack-compile-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
11
+ date: 2018-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine