jets 1.4.2 → 1.4.3

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: 2da53de9bc1b25884e71b48341b06a1730e948d64dd498a8447b0007c351e6ff
4
- data.tar.gz: 1946239ac14061a49427551c34e194050edeff8fa5a3ccc67679b6d5f9790ce5
3
+ metadata.gz: 8c7b4bf4a3af04ba9de3ddafc8e8483303c50eca8cddc28cb70830eb941bde6a
4
+ data.tar.gz: 38a3ee6c6fabd939ae3f4ab76639363c3cce222ff85f080cffb7f4652bc3a9e7
5
5
  SHA512:
6
- metadata.gz: d1c4b44501539f490fc51a223847863adc24882e990b8ed600b07ae520326ea80b2adf169f4b65e452545cc1fbf59da3c7d6f010c6891902d8e383fb6e7c7630
7
- data.tar.gz: 97912bfac0e5fb6a1176439f9d36745f8278104fec34874f0d53468c3f0d8452bd9c8bfe90e9002abe451d42b33c381d98a9d7517e970ff20bcc17067d0c4d81
6
+ metadata.gz: 30b7009d55779a5aa79d4d72b760dc1cfaba6b363112ae30c4e4504df145f6e3acd075a93ddccc9608a5d0f0549c5dbe5ac925e21cbdeb07f907c79135649d1a
7
+ data.tar.gz: 3981e12eb19f182d874915b17510c31fe03b5107bbc35d8ee1c097e15d5e534e9ddbf95ecd16c3ae8720f645faa6e649fec3d913535d0d48edf13f12355b95e7
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [1.4.3]
7
+ - fix webpacker:compile on jets build and allow jets deploy to work standalone
8
+
6
9
  ## [1.4.2]
7
10
  - fix webpacker:compile on jets build
8
11
 
data/Gemfile.lock CHANGED
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- jets (1.4.2)
14
+ jets (1.4.3)
15
15
  actionpack (>= 5.2.1)
16
16
  actionview (>= 5.2.1)
17
17
  activerecord (>= 5.2.1)
@@ -1,5 +1,4 @@
1
1
  require "action_view"
2
- require "bundler"
3
2
  require "colorize"
4
3
  require "fileutils"
5
4
  require "net/http"
@@ -178,10 +177,7 @@ class Jets::Builders
178
177
  end
179
178
 
180
179
  headline "Compling assets in current project directory"
181
- # Thanks: https://stackoverflow.com/questions/4195735/get-list-of-gems-being-used-by-a-bundler-project
182
- require "bundler/setup"
183
- webpacker_loaded = Gem.loaded_specs.keys.include?("webpacker")
184
- return unless webpacker_loaded
180
+ return unless webpacker_included?
185
181
 
186
182
  sh("yarn install")
187
183
  webpack_command = File.exist?("#{Jets.root}bin/webpack") ?
@@ -190,6 +186,18 @@ class Jets::Builders
190
186
  sh "JETS_ENV=#{Jets.env} #{webpack_command}"
191
187
  end
192
188
 
189
+ def webpacker_included?
190
+ # Old code, leaving around for now:
191
+ # Thanks: https://stackoverflow.com/questions/4195735/get-list-of-gems-being-used-by-a-bundler-project
192
+ # webpacker_loaded = Gem.loaded_specs.keys.include?("webpacker")
193
+ # return unless webpacker_loaded
194
+
195
+ # Checking this way because when using jets standalone for Afterburner mode we don't want to run into
196
+ # bundler gem collisions. TODO: figure out the a better way to handle the collisions.
197
+ lines = IO.readlines("#{Jets.root}Gemfile")
198
+ lines.detect { |l| l =~ /webpacker/ }
199
+ end
200
+
193
201
  # This happens in the current app directory not the tmp code for simplicity
194
202
  # This is because the node likely been set up correctly there.
195
203
  def compile_rails_assets
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "1.4.2"
2
+ VERSION = "1.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen