jets 1.8.0 → 1.8.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: 22ccf0e1b4f1fe6841677f5e80a47d28420176db2b89d0e66852d71841feac32
4
- data.tar.gz: 0dff68b46ad8f254a1fc8ffe71d95d52b58cc21b1ccd4cf78ec0e62c212d4ed6
3
+ metadata.gz: 392758ceb7059c9bafdf874fea4a33fde73429b4c299384fda7fa05659b9b14c
4
+ data.tar.gz: 123640b28ca8b42c222fbbc6f3ba2612334ced89e4f61d238f87de505a7f9f1e
5
5
  SHA512:
6
- metadata.gz: 3facb23a28890cea9a9627808198e7499975ad1874ffb4371fa14a757ff45b3f74e1daa853d51ca966c170450ee7e2b0d6e48a3dea621aad62936cf8f1b98312
7
- data.tar.gz: 46369c376727ebc86de017043ff079abbd077f2a1c090193ad0cebd728528e3e2794df003b1d9c8667cd333dec8880673cb92e60d8eeee929790f88c4f3978c5
6
+ metadata.gz: c05ae5fd7e8f207271fc5e6ee80311d9646d73e754390813ca394e0c0d87e552197c7346e41dd7fe00c588969da8abf15afefb0dfd1e9afb4ed34b0dde95c825
7
+ data.tar.gz: 70b11656832c0f9da372deac022ee1e1226fe4751b676e561eb52615d85bb4d063ab3f44d96ed59698bed2481e48ec892ba6b25785a24a6c34f9ff2be0d7769f
@@ -3,6 +3,10 @@
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.8.1]
7
+ - #194 fix jets eager load, order by path length
8
+ - #193 jets new fails during jets webpacker:install
9
+
6
10
  ## [1.8.0]
7
11
  - #191 Email Support via ActionMailer
8
12
  - #192 S3 Event Support
@@ -150,7 +150,12 @@ class Jets::Booter
150
150
  # Eager load jet's lib and classes
151
151
  def eager_load_jets
152
152
  lib_jets = File.expand_path(".", File.dirname(__FILE__))
153
- Dir.glob("#{lib_jets}/**/*.rb").select do |path|
153
+
154
+ # Sort by path length because systems return Dir.glob in different order
155
+ # Sometimes it returns longer paths first which messed up eager loading.
156
+ paths = Dir.glob("#{lib_jets}/**/*.rb")
157
+ paths = paths.sort_by { |p| p.size }
158
+ paths.select do |path|
154
159
  next if !File.file?(path)
155
160
  next if skip_eager_load_paths?(path)
156
161
 
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "1.8.0"
2
+ VERSION = "1.8.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-13 00:00:00.000000000 Z
11
+ date: 2019-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer