ae_test_coverage 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +20 -0
- data/ae_test_coverage.gemspec +20 -0
- data/lib/ae_test_coverage/collectors/webpacker/helpers.rb +21 -2
- data/lib/ae_test_coverage/version.rb +1 -1
- metadata +20 -100
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45a98fc59351dfcb02223d40310f4f4e8380d9627bbed1dba278bc6262446cbe
|
4
|
+
data.tar.gz: 1ad6bc23772579a489af75e2df0a5f8096df08db22bc31ce99d18ea4ce57468f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a2d935d024b01cfbe87830f1b20dd58ca252d3741b92f191aea37835a17200ae640010d59758d42a9b20c031460d5ec36fa3187ac79dd667d1f5806ec2ab4d6
|
7
|
+
data.tar.gz: 0ac82b0bd451059842c882628e1ce564cf491487527d6607dc5b1230608b16fc29c3f6bb92b525425e67fd8fd3bc66dacba33ae59a386558f43bfda42d2e6419
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2020-2022 AppFolio, Inc
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/ae_test_coverage/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'ae_test_coverage'
|
7
|
+
spec.version = AeTestCoverage::VERSION
|
8
|
+
spec.platform = Gem::Platform::RUBY
|
9
|
+
spec.author = 'AppFolio'
|
10
|
+
spec.email = 'opensource@appfolio.com'
|
11
|
+
spec.description = 'Tools for collecting code coverage from tests.'
|
12
|
+
spec.summary = spec.description
|
13
|
+
spec.homepage = 'https://github.com/appfolio/ae_test_coverage'
|
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
|
+
end
|
@@ -4,7 +4,27 @@ module AeTestCoverage
|
|
4
4
|
module Collectors
|
5
5
|
module Webpacker
|
6
6
|
module Helpers
|
7
|
-
def
|
7
|
+
def append_javascript_pack_tag(*names, **options)
|
8
|
+
add_to_coverage(names)
|
9
|
+
super
|
10
|
+
end
|
11
|
+
|
12
|
+
def javascript_pack_tag(*names, **options)
|
13
|
+
add_to_coverage(names)
|
14
|
+
super
|
15
|
+
end
|
16
|
+
|
17
|
+
def stylesheet_pack_tag(*names, **options)
|
18
|
+
add_to_coverage(names)
|
19
|
+
super
|
20
|
+
end
|
21
|
+
|
22
|
+
def stylesheet_packs_with_chunks_tag(*names, **options)
|
23
|
+
add_to_coverage(names)
|
24
|
+
super
|
25
|
+
end
|
26
|
+
|
27
|
+
def add_to_coverage(names)
|
8
28
|
raise(StandardError, 'AeTestCoverage.config.webpacker_app_locations must be set to collect webpacker app coverage') if AeTestCoverage.config.webpacker_app_locations.blank?
|
9
29
|
|
10
30
|
globs = names.flat_map do |name|
|
@@ -17,7 +37,6 @@ module AeTestCoverage
|
|
17
37
|
]
|
18
38
|
end
|
19
39
|
AeTestCoverage.coverage_collectors[WebpackerAppCollector].add_covered_globs(*globs)
|
20
|
-
super
|
21
40
|
end
|
22
41
|
|
23
42
|
def javascript_app_home(name)
|
metadata
CHANGED
@@ -1,105 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ae_test_coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
7
|
+
- AppFolio
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "<"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '7'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "<"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '7'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: activerecord
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "<"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '7'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "<"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '7'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.15'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.15'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '5.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '10.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '10.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: simplecov
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
description: Tools for collecting code coverage from tests
|
98
|
-
email:
|
11
|
+
date: 2022-05-25 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Tools for collecting code coverage from tests.
|
14
|
+
email: opensource@appfolio.com
|
99
15
|
executables: []
|
100
16
|
extensions: []
|
101
17
|
extra_rdoc_files: []
|
102
18
|
files:
|
19
|
+
- LICENSE.txt
|
20
|
+
- ae_test_coverage.gemspec
|
103
21
|
- lib/ae_test_coverage.rb
|
104
22
|
- lib/ae_test_coverage/collectors/action_view/asset_tag_collector.rb
|
105
23
|
- lib/ae_test_coverage/collectors/action_view/asset_tag_helper.rb
|
@@ -118,10 +36,12 @@ files:
|
|
118
36
|
- lib/ae_test_coverage/collectors/webpacker/webpacker_app_collector.rb
|
119
37
|
- lib/ae_test_coverage/test_coverage_methods.rb
|
120
38
|
- lib/ae_test_coverage/version.rb
|
121
|
-
homepage:
|
122
|
-
licenses:
|
123
|
-
|
124
|
-
|
39
|
+
homepage: https://github.com/appfolio/ae_test_coverage
|
40
|
+
licenses:
|
41
|
+
- MIT
|
42
|
+
metadata:
|
43
|
+
allowed_push_host: https://rubygems.org
|
44
|
+
post_install_message:
|
125
45
|
rdoc_options: []
|
126
46
|
require_paths:
|
127
47
|
- lib
|
@@ -129,15 +49,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
129
49
|
requirements:
|
130
50
|
- - ">="
|
131
51
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
52
|
+
version: 2.6.3
|
133
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
54
|
requirements:
|
135
55
|
- - ">="
|
136
56
|
- !ruby/object:Gem::Version
|
137
57
|
version: '0'
|
138
58
|
requirements: []
|
139
|
-
rubygems_version: 3.
|
140
|
-
signing_key:
|
59
|
+
rubygems_version: 3.3.3
|
60
|
+
signing_key:
|
141
61
|
specification_version: 4
|
142
|
-
summary: Tools for collecting code coverage from tests
|
62
|
+
summary: Tools for collecting code coverage from tests.
|
143
63
|
test_files: []
|