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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47e3de8dc59fca8c77ec96cce2a2d981360ffc59a1d5b3081d5b38ac9e872abc
4
- data.tar.gz: 74ee8b8d003d7d4f7da72f2b778a6f6eca2d74188231b56eefdc2de45b1f0bbf
3
+ metadata.gz: 70df1e4c0186c1e9fb33fbff1cfbbb25d0cfc1f91a9c2b4a2c979433b423f6b7
4
+ data.tar.gz: b432080fa9e5ce27f9f57978626a4e750561c984a72aeb4a746b611b8b24ae7c
5
5
  SHA512:
6
- metadata.gz: 2fe218979c2f394a314e49a5c10beb6fcdd016928eba20fb0f7b5bf50ea6523ecccbbfe98aae2b44b506ab660749843a3c998e7ce70873784f959326e5bd3ef3
7
- data.tar.gz: e49f7d2c1171b2e0b7c314424706fc020927126a91a69b9472ea13d887b838a308e360a2670ca3eda50605a8d0073709edd7abf3fdb9b7d4e206a363f0da3b0e
6
+ metadata.gz: 521275d8cf04af784988f329ebfcbad9538181b5a44ecbfe6b6d16f6635d32dd7cfca9616821630c20263f170cb71d2fd39373a1069bc7067d78654bb05c5249
7
+ data.tar.gz: a902e118fc909dba6484729e54d00adbb86dbcf8220d517ebac592046fb80c8330f2ad8ad1f76c3154d256148b1db1ab6871f8a4de981d518cde7223e56e5ed4
@@ -32,19 +32,15 @@ OpalWebpackLoader.client_asset_path = '/assets'
32
32
  npm = `which npm`.chop
33
33
 
34
34
  if npm != ''
35
- owl_version = `#{npm} view opal-webpack-loader version`
36
- else
37
- yarn = `which yarn`.chop
38
- if yarn != ''
39
- owl_version = `#{yarn} -s info opal-webpack-loader version`
40
- else
41
- raise 'opal-webpack-loader: Could not find npm or yarn! Please install npm or yarn'
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
- end
44
-
45
- if owl_version.chop != OpalWebpackLoader::VERSION
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
@@ -1,3 +1,3 @@
1
1
  module OpalWebpackLoader
2
- VERSION="0.4.0"
2
+ VERSION="0.4.1"
3
3
  end
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.0
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-19 00:00:00.000000000 Z
11
+ date: 2018-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal