jets 1.9.5 → 1.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3ed5ff5bfb02a21946fc4513d2333a2e55d0b9c52590c9fa0e48045ec6c381f
4
- data.tar.gz: 327a1da000d2c9809660013fd56c09500a1b9e7fba2f66899e95bbe28555aec4
3
+ metadata.gz: 3fc3ca7da86351828ec41f1be86c2dea242532e3d4193ad30a78c7c0830ec6f4
4
+ data.tar.gz: 630d11376a6fcc4110006fe6cbb9d133bc8c47e772fd5e5ca9ce3fc2cae57e82
5
5
  SHA512:
6
- metadata.gz: ccd7a65c865cc779e7b9ac6c225f8b72a2e8851982e8d39df12cbb55fda1214b07539b44382b3ea89b80de990693197dff51508e6ac627a11f76315dbd091151
7
- data.tar.gz: f251be5286cd83550de243741a1105ffb79228b15623813f4dd11ed31e9df3670c408336200445e830bfc01d38d41b0acd11a224c9980c81ac0953180b16d4cf
6
+ metadata.gz: 70b29cb7d36769f47e5a8ee81026657c251994f2b4bb0e8b88d2b1dda253725a2f4e5bfe8e65bb31d5bafe29c9500431c8e4975a7908909ef3a1c3fe008da989
7
+ data.tar.gz: 28e1b7fdf30acb21a06b691f6e3db55755202862d86a829686842f09f167848c81e629d71f5de76b9bd33079fc13db40ca162e29ed7a7b5a27e67d2207667c51
@@ -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/).
5
5
 
6
+ ## [1.9.6]
7
+ - #268 Fix starter crud.js due to core-js module
8
+ - #269 Bundler.setup to fix namespace autovivification
9
+
6
10
  ## [1.9.5]
7
11
  - #266 replace classify with camelize
8
12
 
@@ -10,6 +10,17 @@ require "jets/camelizer"
10
10
  require "jets/version"
11
11
  require "memoist"
12
12
  require "rainbow/ext/string"
13
+
14
+ # Looks like for zeitwerk module autovivification to work `bundle exec` must be called.
15
+ # We run Bundle.setup initially which is what `bundle exec does.
16
+ # This allows zeitwork module autovivification to work even if the user has not called jets with `bundle exec jets`.
17
+ # We check for Afterburner mode since in that mode jets is a standalone tool.
18
+ #
19
+ require "jets/turbo"
20
+ if Jets::Turbo.new.jets?
21
+ require "bundler/setup"
22
+ Bundler.setup # Same as Bundler.setup(:default)
23
+ end
13
24
  require "zeitwerk"
14
25
 
15
26
  module Jets
@@ -36,7 +36,7 @@ $(function() {
36
36
  var submit = $(e.target);
37
37
  var form = submit.closest('form');
38
38
  var url = form.attr("action");
39
- var method = form.find("input[name=_method]");
39
+ var method = $("input[name=_method]");
40
40
 
41
41
  if (method.attr("value") != "put") {
42
42
  return true;
@@ -37,7 +37,8 @@ module Jets
37
37
  end
38
38
 
39
39
  def config_ru_contains?(value)
40
- config_ru = "#{Dir.pwd}/config.ru"
40
+ root = ENV["JETS_ROOT"] || Dir.pwd # Jets.root is not yet available
41
+ config_ru = "#{root}/config.ru"
41
42
  return false unless File.exist?(config_ru)
42
43
 
43
44
  lines = ::IO.readlines(config_ru)
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "1.9.5"
2
+ VERSION = "1.9.6"
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.9.5
4
+ version: 1.9.6
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-05-27 00:00:00.000000000 Z
11
+ date: 2019-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer