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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e89ce8cb136347a903186eec658e92f2d3e9719
4
- data.tar.gz: 3282ad364e252d30856de442883c7e10d5ad6c36
3
+ metadata.gz: 549482ab71452372bcd8cb88d49dfb9658ff4cc8
4
+ data.tar.gz: 6efa4b46880947f5b65ad7b8578dbe7e99c7b21c
5
5
  SHA512:
6
- metadata.gz: 48696cf7330bc5df5ef56bdbc96295fbb22a7477d6375389d5fe2ffde30510a05f6af450ed7b7b080f3ebe0634e11e4328a797e14e287d0ff25c5c026318cf38
7
- data.tar.gz: f2d5a3e940f779eba10f86383ee51fe1415561e8ac57fd44bb27be842706456ff4e5372331136e69c418184a67f1fe6e0ea93b17b4099e384f993d2ae201c67d
6
+ metadata.gz: eece757510b9d571b3987534d42025c5a5874d5ac1db64a0f6e7b0f9640ffdfc8eaee3ce248fa47b1cb5da53b458570d40665b0c35fd26471c9790199d9ef5b7
7
+ data.tar.gz: be2ccc646aaacdf5ec2a0a0dbf0c2d47431c7118c7f33f8ad77ca0e6bc9152a96da5a5a553637fc12b09bd646d5a6dabbbd565a5579719c87aa7d047587e637a
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /.byebug_history
10
+ gemfiles/*.lock
data/.travis.yml CHANGED
@@ -7,5 +7,10 @@ rvm:
7
7
  - 2.3
8
8
  - 2.4
9
9
  - 2.5
10
+ gemfile:
11
+ - gemfiles/activesupport_4.2.gemfile
12
+ - gemfiles/activesupport_5.0.gemfile
13
+ - gemfiles/activesupport_5.1.gemfile
14
+ - gemfiles/activesupport_5.2.gemfile
10
15
  notifications:
11
16
  email: false
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Change log
2
+
3
+
4
+ ## 1.0.2 (2018-10-01)
5
+ ### New features
6
+
7
+ * [#15](https://github.com/Shopify/deprecation_toolkit/pull/15): Add support for ActiveSupport 4.2. (@andrewmarkle)
data/Gemfile.lock CHANGED
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deprecation_toolkit (1.0.1)
5
- activesupport (>= 5.0)
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.0)
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.1)
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.1
53
+ 1.16.5
data/README.md CHANGED
@@ -96,4 +96,4 @@ to keep track of them as if they were regular deprecations.
96
96
 
97
97
  ## License
98
98
 
99
- Deprecation Toolkit is lincensed under the [MIT license](LICENSE.txt).
99
+ Deprecation Toolkit is licensed under the [MIT license](LICENSE.txt).
@@ -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', '>= 5.0'
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,11 @@
1
+ # frozen_string_literal: true
2
+ source "https://rubygems.org"
3
+
4
+ gem "activesupport", "~> 4.2"
5
+
6
+ group :deployment do
7
+ gem "rake"
8
+ gem "rubocop"
9
+ end
10
+
11
+ gemspec path: "../"
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+ source "https://rubygems.org"
3
+
4
+ gem "activesupport", "~> 5.0"
5
+
6
+ group :deployment do
7
+ gem "rake"
8
+ gem "rubocop"
9
+ end
10
+
11
+ gemspec path: "../"
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+ source "https://rubygems.org"
3
+
4
+ gem "activesupport", "~> 5.1"
5
+
6
+ group :deployment do
7
+ gem "rake"
8
+ gem "rubocop"
9
+ end
10
+
11
+ gemspec path: "../"
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+ source "https://rubygems.org"
3
+
4
+ gem "activesupport", "~> 5.2"
5
+
6
+ group :deployment do
7
+ gem "rake"
8
+ gem "rubocop"
9
+ end
10
+
11
+ gemspec path: "../"
@@ -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 { |deprecation| deprecation.sub(/ \(called from .*\)$/, "") }
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)
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "active_support/core_ext/string/inflections"
4
+ require "bundler"
4
5
  require "yaml"
5
6
 
6
7
  module DeprecationToolkit
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeprecationToolkit
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
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.1
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-07-11 00:00:00.000000000 Z
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: '5.0'
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: '5.0'
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