ae_skip_asset_pipeline 0.6.0 → 0.9.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: 90a160c3146ec25f3abd2589f1f4d2287479ec6a616b81d372d952076cae97a3
4
- data.tar.gz: b4dfbd90acd3f0b2bbc382d8b0ba3c291949f564b01639a6b5956803f0a0ad61
3
+ metadata.gz: 145c928f549e0a89b1f92a1f07b592a5eab9a6f25741422afb1b2b8b2f0928c4
4
+ data.tar.gz: 85db3fcf16d7ab4bf486502b23b048194e416cbf13102527498ed8aa9316383f
5
5
  SHA512:
6
- metadata.gz: 903d19dc006c6a25af809a46912407453b0a5c8cfa5ee4d919f6b9296072ddde9b0fc7d36db16f2d635541298500c7226b02be82b38f7da5db0dccb24ccde5e9
7
- data.tar.gz: 449be8ce57eae74ad53e269c452ec2dd4a7cec76ac67a34e740f889ba7ddc91d9a173b1b2be184893a7cdc006785a6a7ec38844c2b86f9d6d539e93d772410d0
6
+ metadata.gz: 4ac4de92d8dde991b18864459bd0f3b95af144902ef83b16149e01a2b489ac3d94042470b3741aeb7353a3253dd1cb7420787383676a3b8fe14db254292d87b2
7
+ data.tar.gz: 06b8e1d875eaf7c1910a44712100f120a5b60da5743f5b3cbeeebf94130aced520ba38682d298966b11dd081a2e39e519ef27b9eccb47ce7f2f33238fec21b9d
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/ae_skip_asset_pipeline/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'ae_skip_asset_pipeline'
7
+ spec.version = AeSkipAssetPipeline::VERSION
8
+ spec.platform = Gem::Platform::RUBY
9
+ spec.author = 'AppFolio'
10
+ spec.email = 'opensource@appfolio.com'
11
+ spec.description = 'GSkip asset pipeline in tests.'
12
+ spec.summary = spec.description
13
+ spec.homepage = 'https://github.com/appfolio/ae_skip_asset_pipeline'
14
+ spec.license = 'MIT'
15
+ spec.files = Dir['**/*'].select { |f| f[%r{^(lib/|LICENSE.txt|.*gemspec)}] }
16
+ spec.require_paths = ['lib']
17
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.6.3')
18
+
19
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
20
+
21
+ spec.add_dependency('activesupport', ['>= 6', '< 7.1'])
22
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AeSkipAssetPipeline
4
- VERSION = "0.6.0"
4
+ VERSION = "0.9.0"
5
5
  end
@@ -1,12 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'action_view'
4
- require 'ae_skip_asset_pipeline/version'
3
+ require 'active_support'
5
4
 
6
5
  module AeSkipAssetPipeline
7
6
  mattr_accessor :enabled
8
7
 
9
8
  module AssetPipelineMethods
9
+ def javascript_pack_tag(*args)
10
+ super unless AeSkipAssetPipeline.enabled
11
+ end
12
+
10
13
  def javascript_packs_with_chunks_tag(*args)
11
14
  super unless AeSkipAssetPipeline.enabled
12
15
  end
@@ -15,6 +18,10 @@ module AeSkipAssetPipeline
15
18
  super unless AeSkipAssetPipeline.enabled
16
19
  end
17
20
 
21
+ def stylesheet_pack_tag(*args)
22
+ super unless AeSkipAssetPipeline.enabled
23
+ end
24
+
18
25
  def stylesheet_packs_with_chunks_tag(*args)
19
26
  super unless AeSkipAssetPipeline.enabled
20
27
  end
@@ -48,5 +55,6 @@ end
48
55
 
49
56
  AeSkipAssetPipeline.enabled = ENV['USE_PRECOMPILED_ASSETS'] != '1'
50
57
 
51
- ActionView::Base.prepend AeSkipAssetPipeline::AssetPipelineMethods
52
-
58
+ ActiveSupport.on_load(:action_view) do
59
+ prepend AeSkipAssetPipeline::AssetPipelineMethods
60
+ end
metadata CHANGED
@@ -1,41 +1,50 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_skip_asset_pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
- - Appfolio
8
- autorequire:
7
+ - AppFolio
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-11 00:00:00.000000000 Z
11
+ date: 2022-02-24 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
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '6'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7.1'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '0'
27
- description: Skip asset pipeline in tests
28
- email:
29
+ version: '6'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7.1'
33
+ description: GSkip asset pipeline in tests.
34
+ email: opensource@appfolio.com
29
35
  executables: []
30
36
  extensions: []
31
37
  extra_rdoc_files: []
32
38
  files:
39
+ - ae_skip_asset_pipeline.gemspec
33
40
  - lib/ae_skip_asset_pipeline.rb
34
41
  - lib/ae_skip_asset_pipeline/version.rb
35
- homepage:
36
- licenses: []
37
- metadata: {}
38
- post_install_message:
42
+ homepage: https://github.com/appfolio/ae_skip_asset_pipeline
43
+ licenses:
44
+ - MIT
45
+ metadata:
46
+ allowed_push_host: https://rubygems.org
47
+ post_install_message:
39
48
  rdoc_options: []
40
49
  require_paths:
41
50
  - lib
@@ -43,15 +52,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
43
52
  requirements:
44
53
  - - ">="
45
54
  - !ruby/object:Gem::Version
46
- version: '0'
55
+ version: 2.6.3
47
56
  required_rubygems_version: !ruby/object:Gem::Requirement
48
57
  requirements:
49
58
  - - ">="
50
59
  - !ruby/object:Gem::Version
51
60
  version: '0'
52
61
  requirements: []
53
- rubygems_version: 3.0.8
54
- signing_key:
62
+ rubygems_version: 3.1.6
63
+ signing_key:
55
64
  specification_version: 4
56
- summary: Skip asset pipeline in tests
65
+ summary: GSkip asset pipeline in tests.
57
66
  test_files: []