ae_skip_asset_pipeline 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b4c14f27801daa8438f0d741ee19fcde833d712ee2f3694acaf18352e0d8f7b0
4
+ data.tar.gz: e8889dcd7bfa9e58a66500821e5f29f4a5373590513718d48b26e8e7f1881541
5
+ SHA512:
6
+ metadata.gz: '018321b287196ac1d3453940e80502b6cf62232b464f8360637d17a1666863b3157bb9e73fa744f71703837863f6e98753b59e732e21e0411b8b9fcf8a949c5e'
7
+ data.tar.gz: ec4cd3c31c7cdf7cb362529cbb9352f8ff2eb9e40bd0236b681b32435fcf224e611556993f5582121c26bfe390d9f8701be45fadde964776194212f6d86fe108
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'action_view'
4
+ require 'ae_skip_asset_pipeline/version'
5
+
6
+ module AeSkipAssetPipeline
7
+ mattr_accessor :enabled
8
+
9
+ def javascript_packs_with_chunks_tag(*args)
10
+ super unless AeSkipAssetPipeline.enabled
11
+ end
12
+
13
+ def javascript_include_tag(*args)
14
+ super unless AeSkipAssetPipeline.enabled
15
+ end
16
+
17
+ def stylesheet_packs_with_chunks_tag(*args)
18
+ super unless AeSkipAssetPipeline.enabled
19
+ end
20
+
21
+ def stylesheet_link_tag(*args)
22
+ super unless AeSkipAssetPipeline.enabled
23
+ end
24
+
25
+ def path_to_asset(source, options = {})
26
+ super(source, options.merge(enabled: AeSkipAssetPipeline.enabled))
27
+ end
28
+ end
29
+
30
+ AeSkipAssetPipeline.enabled = true
31
+
32
+ ActionView::Base.prepend AeSkipAssetPipeline
33
+
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AeSkipAssetPipeline
4
+ VERSION = "0.1.0"
5
+ end
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ae_skip_asset_pipeline
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Appfolio
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-03-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: actionview
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Skip asset pipeline in tests
28
+ email:
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - lib/ae_skip_asset_pipeline.rb
34
+ - lib/ae_skip_asset_pipeline/version.rb
35
+ homepage:
36
+ licenses: []
37
+ metadata: {}
38
+ post_install_message:
39
+ rdoc_options: []
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ requirements: []
53
+ rubygems_version: 3.0.8
54
+ signing_key:
55
+ specification_version: 4
56
+ summary: Skip asset pipeline in tests
57
+ test_files: []