gem-silencer 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.tool-versions +1 -1
- data/lib/silencer/version.rb +1 -1
- data/lib/silencer.rb +5 -1
- metadata +3 -7
- data/.idea/.gitignore +0 -8
- data/.idea/modules.xml +0 -8
- data/.idea/silencer.iml +0 -58
- data/.idea/vcs.xml +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16c3a0cdf9696ee48acb65fee89f00f9f453a85d8eb0ec1cf68cc33b77384944
|
|
4
|
+
data.tar.gz: 9207d98ac460e2a8391c021db8e31ee9ce66a952a1534b9dd982a0ccbd8f657b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77d549eec1e1956b37df30791e003260b9dcb05a1e637b53ac2df9560ddbaa5c61fcef8a57384dd0351790123be35ad6f2c863123da2011726e99f216beabd89
|
|
7
|
+
data.tar.gz: b5cfcd951bc6012326e203dbb5bb7a91121fd6604de8e379c88e522ca5592a4c3333df9f80f4004da01c1aa88f75008b346c58e2d7f86b3bd5133c6d6787df2f
|
data/.tool-versions
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby
|
|
1
|
+
ruby 4.0.2
|
data/lib/silencer/version.rb
CHANGED
data/lib/silencer.rb
CHANGED
|
@@ -17,8 +17,12 @@ module Silencer
|
|
|
17
17
|
spec = Gem::Specification.find_by_name(name)
|
|
18
18
|
raise Error.new(name, version, spec.version.to_s) unless version == spec.version.to_s
|
|
19
19
|
Array(attrs['patterns']).each do |pattern|
|
|
20
|
-
|
|
20
|
+
args = [Regexp.new(pattern)]
|
|
21
|
+
args << spec.gem_dir unless attrs.fetch('exclude_path_prefix', false)
|
|
22
|
+
Warning.ignore(*args)
|
|
21
23
|
end
|
|
24
|
+
rescue Gem::LoadError
|
|
25
|
+
# ignore
|
|
22
26
|
end
|
|
23
27
|
end
|
|
24
28
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gem-silencer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hamed Asghari
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: warning
|
|
@@ -43,10 +43,6 @@ executables: []
|
|
|
43
43
|
extensions: []
|
|
44
44
|
extra_rdoc_files: []
|
|
45
45
|
files:
|
|
46
|
-
- ".idea/.gitignore"
|
|
47
|
-
- ".idea/modules.xml"
|
|
48
|
-
- ".idea/silencer.iml"
|
|
49
|
-
- ".idea/vcs.xml"
|
|
50
46
|
- ".rspec"
|
|
51
47
|
- ".tool-versions"
|
|
52
48
|
- LICENSE.txt
|
|
@@ -76,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
76
72
|
- !ruby/object:Gem::Version
|
|
77
73
|
version: '0'
|
|
78
74
|
requirements: []
|
|
79
|
-
rubygems_version:
|
|
75
|
+
rubygems_version: 4.0.6
|
|
80
76
|
specification_version: 4
|
|
81
77
|
summary: A gem to silence ruby warnings from other gem dependencies
|
|
82
78
|
test_files: []
|
data/.idea/.gitignore
DELETED
data/.idea/modules.xml
DELETED
data/.idea/silencer.iml
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
|
3
|
-
<component name="ModuleRunConfigurationManager">
|
|
4
|
-
<shared />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="NewModuleRootManager">
|
|
7
|
-
<content url="file://$MODULE_DIR$">
|
|
8
|
-
<sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
|
|
9
|
-
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
|
10
|
-
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
|
11
|
-
</content>
|
|
12
|
-
<orderEntry type="jdk" jdkName="asdf: 3.4.1" jdkType="RUBY_SDK" />
|
|
13
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.6.2, asdf: 3.4.1) [gem]" level="application" />
|
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.1, asdf: 3.4.1) [gem]" level="application" />
|
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v13.2.1, asdf: 3.4.1) [gem]" level="application" />
|
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.13.0, asdf: 3.4.1) [gem]" level="application" />
|
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.13.3, asdf: 3.4.1) [gem]" level="application" />
|
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.13.3, asdf: 3.4.1) [gem]" level="application" />
|
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.13.2, asdf: 3.4.1) [gem]" level="application" />
|
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.13.2, asdf: 3.4.1) [gem]" level="application" />
|
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="warning (v1.5.0, asdf: 3.4.1) [gem]" level="application" />
|
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="yaml (v0.4.0, asdf: 3.4.1) [gem]" level="application" />
|
|
24
|
-
</component>
|
|
25
|
-
<component name="RakeTasksCache-v2">
|
|
26
|
-
<option name="myRootTask">
|
|
27
|
-
<RakeTaskImpl id="rake">
|
|
28
|
-
<subtasks>
|
|
29
|
-
<RakeTaskImpl description="Build gem-silencer-0.1.0.gem into the pkg directory" fullCommand="build" id="build" />
|
|
30
|
-
<RakeTaskImpl id="build">
|
|
31
|
-
<subtasks>
|
|
32
|
-
<RakeTaskImpl description="Generate SHA512 checksum of gem-silencer-0.1.0.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
|
|
33
|
-
</subtasks>
|
|
34
|
-
</RakeTaskImpl>
|
|
35
|
-
<RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
|
|
36
|
-
<RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
|
|
37
|
-
<RakeTaskImpl description="Build and install gem-silencer-0.1.0.gem into system gems" fullCommand="install" id="install" />
|
|
38
|
-
<RakeTaskImpl id="install">
|
|
39
|
-
<subtasks>
|
|
40
|
-
<RakeTaskImpl description="Build and install gem-silencer-0.1.0.gem into system gems without network access" fullCommand="install:local" id="local" />
|
|
41
|
-
</subtasks>
|
|
42
|
-
</RakeTaskImpl>
|
|
43
|
-
<RakeTaskImpl description="Create tag v0.1.0 and build and push gem-silencer-0.1.0.gem to rubygems.org" fullCommand="release[remote]" id="release[remote]" />
|
|
44
|
-
<RakeTaskImpl description="Run RSpec code examples" fullCommand="spec" id="spec" />
|
|
45
|
-
<RakeTaskImpl description="" fullCommand="default" id="default" />
|
|
46
|
-
<RakeTaskImpl description="" fullCommand="release" id="release" />
|
|
47
|
-
<RakeTaskImpl id="release">
|
|
48
|
-
<subtasks>
|
|
49
|
-
<RakeTaskImpl description="" fullCommand="release:guard_clean" id="guard_clean" />
|
|
50
|
-
<RakeTaskImpl description="" fullCommand="release:rubygem_push" id="rubygem_push" />
|
|
51
|
-
<RakeTaskImpl description="" fullCommand="release:source_control_push" id="source_control_push" />
|
|
52
|
-
</subtasks>
|
|
53
|
-
</RakeTaskImpl>
|
|
54
|
-
</subtasks>
|
|
55
|
-
</RakeTaskImpl>
|
|
56
|
-
</option>
|
|
57
|
-
</component>
|
|
58
|
-
</module>
|