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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/jets.rb +11 -0
- data/lib/jets/commands/templates/webpacker/app/javascript/src/jets/crud.js +1 -1
- data/lib/jets/turbo.rb +2 -1
- data/lib/jets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fc3ca7da86351828ec41f1be86c2dea242532e3d4193ad30a78c7c0830ec6f4
|
4
|
+
data.tar.gz: 630d11376a6fcc4110006fe6cbb9d133bc8c47e772fd5e5ca9ce3fc2cae57e82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70b29cb7d36769f47e5a8ee81026657c251994f2b4bb0e8b88d2b1dda253725a2f4e5bfe8e65bb31d5bafe29c9500431c8e4975a7908909ef3a1c3fe008da989
|
7
|
+
data.tar.gz: 28e1b7fdf30acb21a06b691f6e3db55755202862d86a829686842f09f167848c81e629d71f5de76b9bd33079fc13db40ca162e29ed7a7b5a27e67d2207667c51
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/jets.rb
CHANGED
@@ -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 =
|
39
|
+
var method = $("input[name=_method]");
|
40
40
|
|
41
41
|
if (method.attr("value") != "put") {
|
42
42
|
return true;
|
data/lib/jets/turbo.rb
CHANGED
@@ -37,7 +37,8 @@ module Jets
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def config_ru_contains?(value)
|
40
|
-
|
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)
|
data/lib/jets/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|