requestjs-rails 0.0.6 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/importmap.rb +1 -0
- data/lib/requestjs/engine.rb +3 -7
- data/lib/requestjs/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24f3702ff02a882e27c6694c7ecdcb908055ff75fcc636f3e429192a17dbc80b
|
4
|
+
data.tar.gz: a89e1130d35dcd74bc9f4b3317e6a6fb0ce3ca28861d46700e818dce82e9b709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e004986d5fc3a2bcc3196ad690a9f1a776ccba8fda8b8648d5c9cffe1456bf47e9baf53d414e7f55d59115a71a318014bba7c091d48d9158d814695b4458c67b
|
7
|
+
data.tar.gz: 6e38b179684ed39ac51084f981f532b632ea8f976ed4272ab00699cc5c3948d8377fa56bb18d48b71fd1305172e5eb55d4d75a309e7a043b6cf3750782a18056
|
data/config/importmap.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pin "@rails/request.js", to: "requestjs.js"
|
data/lib/requestjs/engine.rb
CHANGED
@@ -2,16 +2,12 @@ module Requestjs
|
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
initializer "requestjs.assets" do
|
4
4
|
if Rails.application.config.respond_to?(:assets)
|
5
|
-
Rails.application.config.assets.precompile += %w( rails-requestjs )
|
5
|
+
Rails.application.config.assets.precompile += %w( rails-requestjs.js requestjs.js )
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
|
-
initializer "requestjs.importmap" do
|
10
|
-
|
11
|
-
Rails.application.importmap.draw do
|
12
|
-
pin "@rails/request.js", to: "rails-requestjs"
|
13
|
-
end
|
14
|
-
end
|
9
|
+
initializer "requestjs.importmap", before: "importmap" do |app|
|
10
|
+
app.config.importmap.paths << Engine.root.join("config/importmap.rb")
|
15
11
|
end
|
16
12
|
end
|
17
13
|
end
|
data/lib/requestjs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: requestjs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcelo Lauxen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- Rakefile
|
36
36
|
- app/assets/javascripts/rails-requestjs.js
|
37
37
|
- app/assets/javascripts/requestjs.js
|
38
|
+
- config/importmap.rb
|
38
39
|
- lib/install/requestjs_with_asset_pipeline.rb
|
39
40
|
- lib/install/requestjs_with_webpacker.rb
|
40
41
|
- lib/requestjs-rails.rb
|