deprecation_toolkit 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +5 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +5 -5
- data/README.md +1 -1
- data/deprecation_toolkit.gemspec +1 -1
- data/gemfiles/activesupport_4.2.gemfile +11 -0
- data/gemfiles/activesupport_5.0.gemfile +11 -0
- data/gemfiles/activesupport_5.1.gemfile +11 -0
- data/gemfiles/activesupport_5.2.gemfile +11 -0
- data/gemfiles/test/deprecations +1 -0
- data/lib/deprecation_toolkit/collector.rb +7 -1
- data/lib/deprecation_toolkit/read_write_helper.rb +1 -0
- data/lib/deprecation_toolkit/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 549482ab71452372bcd8cb88d49dfb9658ff4cc8
|
4
|
+
data.tar.gz: 6efa4b46880947f5b65ad7b8578dbe7e99c7b21c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eece757510b9d571b3987534d42025c5a5874d5ac1db64a0f6e7b0f9640ffdfc8eaee3ce248fa47b1cb5da53b458570d40665b0c35fd26471c9790199d9ef5b7
|
7
|
+
data.tar.gz: be2ccc646aaacdf5ec2a0a0dbf0c2d47431c7118c7f33f8ad77ca0e6bc9152a96da5a5a553637fc12b09bd646d5a6dabbbd565a5579719c87aa7d047587e637a
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
deprecation_toolkit (1.0.
|
5
|
-
activesupport (>=
|
4
|
+
deprecation_toolkit (1.0.2)
|
5
|
+
activesupport (>= 4.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (5.2.
|
10
|
+
activesupport (5.2.1)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 0.7, < 2)
|
13
13
|
minitest (~> 5.1)
|
14
14
|
tzinfo (~> 1.1)
|
15
15
|
ast (2.4.0)
|
16
16
|
concurrent-ruby (1.0.5)
|
17
|
-
i18n (1.0
|
17
|
+
i18n (1.1.0)
|
18
18
|
concurrent-ruby (~> 1.0)
|
19
19
|
jaro_winkler (1.5.1)
|
20
20
|
minitest (5.11.3)
|
@@ -50,4 +50,4 @@ DEPENDENCIES
|
|
50
50
|
rubocop
|
51
51
|
|
52
52
|
BUNDLED WITH
|
53
|
-
1.16.
|
53
|
+
1.16.5
|
data/README.md
CHANGED
data/deprecation_toolkit.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
end
|
22
22
|
spec.require_paths = %w(lib)
|
23
23
|
|
24
|
-
spec.add_runtime_dependency 'activesupport', '>=
|
24
|
+
spec.add_runtime_dependency 'activesupport', '>= 4.2'
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.16"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -0,0 +1 @@
|
|
1
|
+
gemfiles/test/../../test/deprecations
|
@@ -33,7 +33,13 @@ module DeprecationToolkit
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def deprecations_without_stacktrace
|
36
|
-
deprecations.map
|
36
|
+
deprecations.map do |deprecation|
|
37
|
+
if ActiveSupport.gem_version.to_s < "5.0"
|
38
|
+
deprecation.sub(/\W\s\(called from .*\)$/, "")
|
39
|
+
else
|
40
|
+
deprecation.sub(/ \(called from .*\)$/, "")
|
41
|
+
end
|
42
|
+
end
|
37
43
|
end
|
38
44
|
|
39
45
|
def -(other)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deprecation_toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -77,12 +77,18 @@ files:
|
|
77
77
|
- ".rubocop-https---shopify-github-io-ruby-style-guide-rubocop-yml"
|
78
78
|
- ".rubocop.yml"
|
79
79
|
- ".travis.yml"
|
80
|
+
- CHANGELOG.md
|
80
81
|
- Gemfile
|
81
82
|
- Gemfile.lock
|
82
83
|
- LICENSE.txt
|
83
84
|
- README.md
|
84
85
|
- Rakefile
|
85
86
|
- deprecation_toolkit.gemspec
|
87
|
+
- gemfiles/activesupport_4.2.gemfile
|
88
|
+
- gemfiles/activesupport_5.0.gemfile
|
89
|
+
- gemfiles/activesupport_5.1.gemfile
|
90
|
+
- gemfiles/activesupport_5.2.gemfile
|
91
|
+
- gemfiles/test/deprecations
|
86
92
|
- lib/deprecation_toolkit.rb
|
87
93
|
- lib/deprecation_toolkit/behaviors/disabled.rb
|
88
94
|
- lib/deprecation_toolkit/behaviors/raise.rb
|