opal-webpack-loader 0.6.3 → 0.6.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9b54a6d72b3aafc8740ff6fed7e5d45f4c74de4e7dd3ace44cf837049c6c06b
|
4
|
+
data.tar.gz: a8bdc45777a51e6d3b8f3f973402b2565afe697f587337842ad8189fb576b13f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 967e207065beb55ff6b556f5654740fc1a5765daaaf30f98d29d9bf7372ecfe0114e5c7e8dcad8d56d045232322bb670b2d2410e744bbac6cc2f787e8d645c58
|
7
|
+
data.tar.gz: 7c1a492488d09e5846133b0c886c6de73f07da36e8a22702dcc1fe4a54ca48ca45135e361eecffa9c8c1b72cc18aecd7fc8e8035fb25a7a46df6b390e32f942f
|
@@ -81,6 +81,7 @@ module OpalWebpackLoader
|
|
81
81
|
create_common_directories
|
82
82
|
install_common_things
|
83
83
|
create_file_from_template('initializer.rb.erb', 'owl_init.rb', { opal_directory: @opal_directory })
|
84
|
+
create_file_from_template('app_loader.rb.erb', 'app_loader.rb', {})
|
84
85
|
add_gem
|
85
86
|
print_message
|
86
87
|
puts "Make sure to require the owl initializer, e.g. `require './owl_init'`, in your projects startup file."
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
# change OWL_ENV to the projects name env, like MY_PROJECT_ENV
|
3
|
+
env_name = 'OWL_ENV'
|
4
|
+
if ENV[env_name] && ENV[env_name] == 'test'
|
5
|
+
Bundler.require(:default, :test)
|
6
|
+
elsif ENV[env_name] && ENV[env_name] == 'production'
|
7
|
+
Bundler.require(:default, :production)
|
8
|
+
else
|
9
|
+
Bundler.require(:default, :development)
|
10
|
+
end
|
11
|
+
require './owl_init'
|
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.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
@@ -154,6 +154,7 @@ files:
|
|
154
154
|
- lib/opal-webpack-loader/manifest.rb
|
155
155
|
- lib/opal-webpack-loader/rails_view_helper.rb
|
156
156
|
- lib/opal-webpack-loader/templates/Procfile.erb
|
157
|
+
- lib/opal-webpack-loader/templates/app_loader.rb.erb
|
157
158
|
- lib/opal-webpack-loader/templates/application.js.erb
|
158
159
|
- lib/opal-webpack-loader/templates/application_common.js.erb
|
159
160
|
- lib/opal-webpack-loader/templates/application_debug.js.erb
|
@@ -168,7 +169,6 @@ files:
|
|
168
169
|
- lib/opal-webpack-loader/version.rb
|
169
170
|
- lib/opal-webpack-loader/view_helper.rb
|
170
171
|
- spec/fixtures/flattering/Gemfile
|
171
|
-
- spec/fixtures/flattering/app_loader.rb
|
172
172
|
- spec/fixtures/flattering/config.ru
|
173
173
|
- spec/installer_spec.rb
|
174
174
|
- spec/owl_spec.rb
|
@@ -199,7 +199,6 @@ summary: Bundle assets with webpack, resolve and compile opal ruby files and imp
|
|
199
199
|
them in the bundle.
|
200
200
|
test_files:
|
201
201
|
- spec/fixtures/flattering/Gemfile
|
202
|
-
- spec/fixtures/flattering/app_loader.rb
|
203
202
|
- spec/fixtures/flattering/config.ru
|
204
203
|
- spec/installer_spec.rb
|
205
204
|
- spec/owl_spec.rb
|
@@ -1,9 +0,0 @@
|
|
1
|
-
require 'bundler/setup'
|
2
|
-
if ENV['FLATTERING_ENV'] && ENV['FLATTERING_ENV'] == 'test'
|
3
|
-
Bundler.require(:default, :test)
|
4
|
-
elsif ENV['FLATTERING_ENV'] && ENV['FLATTERING_ENV'] == 'production'
|
5
|
-
Bundler.require(:default, :production)
|
6
|
-
else
|
7
|
-
Bundler.require(:default, :development)
|
8
|
-
end
|
9
|
-
require './owl_init'
|