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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7197ad0ee10519041959da9d8bb15c46ca0cf8d9beaecfab20c622860f958986
4
- data.tar.gz: cc9609ff3a0a1a734ca9e5fc730f8817827340cbefbe7fb3173377fd651e540e
3
+ metadata.gz: 24f3702ff02a882e27c6694c7ecdcb908055ff75fcc636f3e429192a17dbc80b
4
+ data.tar.gz: a89e1130d35dcd74bc9f4b3317e6a6fb0ce3ca28861d46700e818dce82e9b709
5
5
  SHA512:
6
- metadata.gz: 24cd14d2019382171aa3b90432ce64b1eae3b480c185971ba5ed296c3e13ad83e2e2204ee0295dacfe3ff0662cf46c8e041ae8611ef1db388f36611a41a077a4
7
- data.tar.gz: db70051cd27a70fc4267e120c3856ec867c0a0d7be59036cec43384d89238a899dbd21ab9a86c1f04bfd43b2311c7578d8f399c943e089e6bb086ca121629b3f
6
+ metadata.gz: e004986d5fc3a2bcc3196ad690a9f1a776ccba8fda8b8648d5c9cffe1456bf47e9baf53d414e7f55d59115a71a318014bba7c091d48d9158d814695b4458c67b
7
+ data.tar.gz: 6e38b179684ed39ac51084f981f532b632ea8f976ed4272ab00699cc5c3948d8377fa56bb18d48b71fd1305172e5eb55d4d75a309e7a043b6cf3750782a18056
@@ -0,0 +1 @@
1
+ pin "@rails/request.js", to: "requestjs.js"
@@ -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
- if Rails.application.respond_to?(:importmap)
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
@@ -1,3 +1,3 @@
1
1
  module Requestjs
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.8"
3
3
  end
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.6
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: 2021-12-20 00:00:00.000000000 Z
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