opal-webpack-loader 0.6.1 → 0.6.2

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: 5672a877b6ca466410a9bee1da91def498da0ca53ac5f8d8748f967a9712479b
4
- data.tar.gz: 27aabbb8f2e7f8bb7a0e895e34f7ad33f871eb2f7fac8ad04e8d0166c4cd7b7a
3
+ metadata.gz: b4bf1d7b0296e9501cb443b54db1a4e9b39441811626a5bb41a155a759a997b9
4
+ data.tar.gz: 960c13472d5bf0e49149c8287444d1800643704bc5301b1ce41c4fd08042c0a0
5
5
  SHA512:
6
- metadata.gz: c6b3b91f6711df267441402cbb773027f7fff58557a215c22a6768daebc77095909eca0c17133ec2f326b7b0ed0402c01363b76cc775a3710f30fb9f529df898
7
- data.tar.gz: 7f795596a4d52556e1c8756286bcc94a4e45606f80b428d2a3c1721bf50f441fa3ef56ae4b5a25e0d05dc1b3d912e63839c1a1d9f99fb5832fa8b2808bce56bb
6
+ metadata.gz: 54cd86e6deaad0104c92ab01a3f456623c7e00fd115bb2ba8b440b053a3bc82da3b354cb3b475e6820668fa64d3c5b7887c25c4b5771e3b6cc9091c41a13bce4
7
+ data.tar.gz: 62b0b5297ad241cd87109577d956eafb0ab82f63457fa658842e3697eac3a8ed38dfcdc789c0df8f0c71a0dd749f532eac52032b7f849e360ec5689967230aac
@@ -80,7 +80,7 @@ module OpalWebpackLoader
80
80
  create_directory(@styles_directory)
81
81
  create_common_directories
82
82
  install_common_things
83
- create_file_from_template('initializer.rb.erb', 'owl_init.rb', {})
83
+ create_file_from_template('initializer.rb.erb', 'owl_init.rb', { opal_directory: @opal_directory })
84
84
  add_gem
85
85
  print_message
86
86
  puts "Make sure to require the owl initializer, e.g. `require './owl_init'`, in your projects startup file."
@@ -123,7 +123,8 @@ module OpalWebpackLoader
123
123
  create_directory(@styles_directory)
124
124
  create_common_directories
125
125
  install_common_things
126
- create_file_from_template('initializer.rb.erb', File.join('config', 'initializers', 'opal_webpack_loader.rb'), {})
126
+ create_file_from_template('initializer.rb.erb', File.join('config', 'initializers', 'opal_webpack_loader.rb'),
127
+ { opal_directory: @opal_directory })
127
128
  add_gem
128
129
  print_message
129
130
  end
@@ -12,7 +12,7 @@
12
12
  import './application_common.js';
13
13
 
14
14
  // import and load opal ruby files
15
- import init_app from '<%= opal_dir %>/<%= opal_name %>_loader.rb';
15
+ import init_app from '<%= opal_name %>_loader.rb';
16
16
  init_app();
17
17
  Opal.load('<%= opal_name %>_loader');
18
18
 
@@ -12,7 +12,7 @@
12
12
  import './application_common.js';
13
13
 
14
14
  // import and load opal ruby files
15
- import init_app from '<%= opal_dir %>/<%= opal_name %>_loader.rb';
15
+ import init_app from '<%= opal_name %>_loader.rb';
16
16
  init_app();
17
17
  Opal.load('<%= opal_name %>_loader');
18
18
 
@@ -1,7 +1,9 @@
1
+ Opal.append_path(File.realdirpath(<%= opal_directory %>))
2
+
1
3
  env = defined?(Rails) ? Rails.env : 'development'
2
4
 
3
5
  if env != 'development'
4
- OpalWebpackLoader.client_asset_path = '' # the full path is in the manifest already, like: /packs/website_packs-97fd9c2b7e7bdb112fc1.js
6
+ OpalWebpackLoader.client_asset_path = '' # the full path is in the manifest already, like: /assets/application-97fd9c2b7e7bdb112fc1.js
5
7
  OpalWebpackLoader.manifest_path = 'public/assets/manifest.json'
6
8
  OpalWebpackLoader.use_manifest = true
7
9
  else
@@ -1,3 +1,3 @@
1
1
  module OpalWebpackLoader
2
- VERSION="0.6.1"
2
+ VERSION="0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-webpack-loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann