ae_skip_asset_pipeline 0.3.0 → 0.8.0

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: a74a60a685e3481ef8a5e5e3d395602f7822db9d0fa805e8357c435425823ecd
4
- data.tar.gz: ac711aa1326855309527760e3d06a1c8bca533849dafa8bd944de7e646be9f4e
3
+ metadata.gz: '03089c31c9c7cf35698eb19da148755b0ad82f1032317da423d88c4e192f8029'
4
+ data.tar.gz: 47c1b3bc587e15104fe57de1ebf0fcb302952f3cd5bb92f0ded20905854c851f
5
5
  SHA512:
6
- metadata.gz: f647e91aaf518d8ce7667e138ad8b0e370159b39130b416e69bcd4c38d926837ff5b29333f99b42ccb991897b1ec27f7d2e3025367aa29c8a6c41cc55b585da9
7
- data.tar.gz: 7d8e8cc97e5bf852d1d023946fd64cb963079480fc2fca554ef6ba41d8f1236e6e4c154bb59446904cfd1198d3fedee511c138dcf48f88cf5fefb5388af50f11
6
+ metadata.gz: be3bd7c216ce8416e85c6ccd582852543b8165aebacabacccdaecab21dbaf762f613c0865f7d6d68b5933f9baf480c109bf3bd1123ebdd795dd74a54c320ed07
7
+ data.tar.gz: eca0dce57235892f49063d057148c85656002ff6f5f4bf5437db9e0498a17e5b85559a40d4a2e7c1cb92eed7df14c5ffec02c5fea075bf89b3df7301b771b009
@@ -1,12 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'action_view'
3
+ require 'active_support'
4
4
  require 'ae_skip_asset_pipeline/version'
5
5
 
6
6
  module AeSkipAssetPipeline
7
7
  mattr_accessor :enabled
8
8
 
9
9
  module AssetPipelineMethods
10
+ def javascript_pack_tag(*args)
11
+ super unless AeSkipAssetPipeline.enabled
12
+ end
13
+
10
14
  def javascript_packs_with_chunks_tag(*args)
11
15
  super unless AeSkipAssetPipeline.enabled
12
16
  end
@@ -15,6 +19,10 @@ module AeSkipAssetPipeline
15
19
  super unless AeSkipAssetPipeline.enabled
16
20
  end
17
21
 
22
+ def stylesheet_pack_tag(*args)
23
+ super unless AeSkipAssetPipeline.enabled
24
+ end
25
+
18
26
  def stylesheet_packs_with_chunks_tag(*args)
19
27
  super unless AeSkipAssetPipeline.enabled
20
28
  end
@@ -46,7 +54,8 @@ module AeSkipAssetPipeline
46
54
  end
47
55
  end
48
56
 
49
- AeSkipAssetPipeline.enabled = true
50
-
51
- ActionView::Base.prepend AeSkipAssetPipeline::AssetPipelineMethods
57
+ AeSkipAssetPipeline.enabled = ENV['USE_PRECOMPILED_ASSETS'] != '1'
52
58
 
59
+ ActiveSupport.on_load(:action_view) do
60
+ prepend AeSkipAssetPipeline::AssetPipelineMethods
61
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AeSkipAssetPipeline
4
- VERSION = "0.3.0"
4
+ VERSION = "0.8.0"
5
5
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_skip_asset_pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Appfolio
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-06 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: actionview
14
+ name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,17 +25,17 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description: Skip asset pipeline in tests
28
- email:
28
+ email:
29
29
  executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
33
  - lib/ae_skip_asset_pipeline.rb
34
34
  - lib/ae_skip_asset_pipeline/version.rb
35
- homepage:
35
+ homepage:
36
36
  licenses: []
37
37
  metadata: {}
38
- post_install_message:
38
+ post_install_message:
39
39
  rdoc_options: []
40
40
  require_paths:
41
41
  - lib
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  version: '0'
52
52
  requirements: []
53
53
  rubygems_version: 3.0.8
54
- signing_key:
54
+ signing_key:
55
55
  specification_version: 4
56
56
  summary: Skip asset pipeline in tests
57
57
  test_files: []