opal-webpack-loader 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opal-webpack-loader.rb +11 -15
- data/lib/opal-webpack-loader/compile_server.rb +1 -1
- data/lib/opal-webpack-loader/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70df1e4c0186c1e9fb33fbff1cfbbb25d0cfc1f91a9c2b4a2c979433b423f6b7
|
4
|
+
data.tar.gz: b432080fa9e5ce27f9f57978626a4e750561c984a72aeb4a746b611b8b24ae7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 521275d8cf04af784988f329ebfcbad9538181b5a44ecbfe6b6d16f6635d32dd7cfca9616821630c20263f170cb71d2fd39373a1069bc7067d78654bb05c5249
|
7
|
+
data.tar.gz: a902e118fc909dba6484729e54d00adbb86dbcf8220d517ebac592046fb80c8330f2ad8ad1f76c3154d256148b1db1ab6871f8a4de981d518cde7223e56e5ed4
|
data/lib/opal-webpack-loader.rb
CHANGED
@@ -32,19 +32,15 @@ OpalWebpackLoader.client_asset_path = '/assets'
|
|
32
32
|
npm = `which npm`.chop
|
33
33
|
|
34
34
|
if npm != ''
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
if
|
39
|
-
|
40
|
-
|
41
|
-
|
35
|
+
bind_dir = `npm bin`
|
36
|
+
owl_npm_version = `#{bin_dir}/opal-webpack-loader-npm-version`
|
37
|
+
|
38
|
+
if owl_npm_version.chop != OpalWebpackLoader::VERSION
|
39
|
+
raise "opal-webpack-loader: Incorrect version of npm package found or npm package not installed.\n" +
|
40
|
+
"Please install the npm package for opal-webpack-loader:\n" +
|
41
|
+
"\twith npm:\tnpm install opal-webpack-loader@#{OpalWebpackLoader::VERSION} --save-dev\n" +
|
42
|
+
"\tor with yarn:\tyarn add opal-webpack-loader@#{OpalWebpackLoader::VERSION} --dev\n"
|
42
43
|
end
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
raise "opal-webpack-loader: Incorrect version of npm package found or npm package not installed.\n" +
|
47
|
-
"Please install the npm package for opal-webpack-loader:\n" +
|
48
|
-
"\twith npm:\tnpm install opal-webpack-loader@#{OpalWebpackLoader::VERSION} --save-dev\n" +
|
49
|
-
"\twith yarn:\tyarn add opal-webpack-loader@#{OpalWebpackLoader::VERSION} --dev\n"
|
50
|
-
end
|
44
|
+
else
|
45
|
+
puts "opal-webpack-loader: Unable to check npm package version. Please check your npm installation."
|
46
|
+
end
|
@@ -84,7 +84,7 @@ module OpalWebpackCompileServer
|
|
84
84
|
}
|
85
85
|
else
|
86
86
|
%x{
|
87
|
-
bundle exec ruby -e 'require "bundler/setup"; Bundler.require; puts Opal.paths'
|
87
|
+
bundle exec ruby -e 'require "bundler/setup"; Bundler.require; set :run, false if defined? Sinatra; puts Opal.paths'
|
88
88
|
}
|
89
89
|
end
|
90
90
|
if $? == 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-webpack-loader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
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-12-
|
11
|
+
date: 2018-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|