meta-tags 2.12.0 → 2.13.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: ae6b586b3caea1141de4d7cfb8b9416225cdfda41984b7701252ca24dc3f72b7
4
- data.tar.gz: ca6f213ed867a6e823a313f71bea1f19df6276455363e4ff294282f127e65e67
3
+ metadata.gz: 8efce8d6b7587d3d7b4825a1bf2c6d7d805c8c2a11333bde4ecdb744c7733721
4
+ data.tar.gz: 0f7b295472e2a1a3c5d398f513c6428aa32fd32e04281e287e54d468d7cc83d7
5
5
  SHA512:
6
- metadata.gz: ff1e6c26b63aa876c92034f4846a4058da17b2e6ae49e07640b75a9f6a2cf97eaf0bff6c48a715c13798c5de8e3334781c6f11313e19a9edd084e8fa84272c20
7
- data.tar.gz: efc21b0da382e96fca80c78fdfaac56c3e3320e38223bd07f0157f85e91bf1aed92df090721d67600871e705a1718779b45fc01daf4cabf2bc6180b82bd9de76
6
+ metadata.gz: 18fb2143f650cdc27d0a181c501b394587bb1e3f411bd5812295eb7090872f3e9cfa38dd83bc2fd0a1af7b1721a03c875001b2454078f0cfc0fc705e1fd1d46b
7
+ data.tar.gz: 7322d9d0124336e0637f7107ccbd14424f6d51e751ef6de463db8dedd40f0b8c5bc43d163f16c443da1cc4c20e1ce8fc9b9634ca81d0b96ef747835c463f39df
@@ -1,3 +1,2 @@
1
- ��h(]����u#] �[
2
- A62LWɷ {{6 �u٣템|+u6w�D37����"C���D[�p��Z��O=��=^�
3
- <��K�V�U�
1
+ sD���[�k4�m��< ����k���Lp�Eb+��}W\�r�߹�<���WI+7,ܯp>:�H�zQ�K��P�e`��n���x��$v����?Z��^O ��)��B��C��='�LI%:����}�����B��Ѯ��B}�`�P��7Is�4X�\���" �`����cF��gF
2
+ 4��m���B' (��Ĕ^K����|dnX�ϢMeaY��U;m���:���x���E��6��o��n��9*2��P
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,8 @@
1
+ ## 2.13.0 (October 10, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.12.0...v2.13.0)
2
+
3
+ Bugfixes:
4
+ - Fixed Rails 6 deprecation warning.
5
+
1
6
  ## 2.12.0 (September 10, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.11.1...v2.12.0)
2
7
 
3
8
  Features:
data/Gemfile CHANGED
@@ -7,13 +7,13 @@ gemspec
7
7
 
8
8
  if ENV['RAILS_VERSION']
9
9
  # Install specified version of actionpack if requested
10
- gem 'actionpack', "~> #{ENV['RAILS_VERSION']}"
10
+ gem 'railties', "~> #{ENV['RAILS_VERSION']}"
11
11
  end
12
12
 
13
13
  group :test do
14
14
  # Lock rubocop to a specific version we use on CI. If you update this,
15
15
  # don't forget to switch rubocop channel in the .codeclimate.yml
16
- gem 'rubocop', '~> 0.74.0'
16
+ gem 'rubocop', '~> 0.75.0'
17
17
  # Cops for rails apps
18
18
  gem 'rubocop-rails'
19
19
  # Apply RSpec rubocop cops
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'English'
4
- require 'action_controller'
5
- require 'action_view'
6
-
7
3
  # MetaTags gem namespace.
8
4
  module MetaTags
9
5
  # Returns MetaTags gem configuration.
@@ -36,5 +32,4 @@ require 'meta_tags/content_tag'
36
32
  require 'meta_tags/text_normalizer'
37
33
  require 'meta_tags/view_helper'
38
34
 
39
- ActionView::Base.include MetaTags::ViewHelper
40
- ActionController::Base.include MetaTags::ControllerHelper
35
+ require 'meta_tags/railtie.rb' if defined?(Rails)
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MetaTags
4
+ class Railtie < Rails::Railtie
5
+ initializer 'meta_tags.setup_action_controller' do
6
+ ActiveSupport.on_load :action_controller do
7
+ ActionController::Base.include MetaTags::ControllerHelper
8
+ end
9
+ end
10
+
11
+ initializer 'meta_tags.setup_action_view' do
12
+ ActiveSupport.on_load :action_view do
13
+ ActionView::Base.include MetaTags::ViewHelper
14
+ end
15
+ end
16
+ end
17
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module MetaTags
4
4
  # Gem version.
5
- VERSION = '2.12.0'
5
+ VERSION = '2.13.0'
6
6
  public_constant :VERSION
7
7
  end
@@ -205,7 +205,5 @@ module MetaTags
205
205
  def display_title(defaults = {})
206
206
  @meta_tags.full_title(defaults)
207
207
  end
208
-
209
- # safe_helper :display_meta_tags if defined?(:safe_helper)
210
208
  end
211
209
  end
@@ -23,8 +23,9 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_dependency "actionpack", ">= 3.2.0", "< 6.1"
25
25
 
26
- spec.add_development_dependency "rake", "~> 12.0"
27
- spec.add_development_dependency "rspec", "~> 3.8.0"
26
+ spec.add_development_dependency "railties", ">= 3.2.0", "< 6.1"
27
+ spec.add_development_dependency "rake", "~> 13.0"
28
+ spec.add_development_dependency "rspec", "~> 3.9.0"
28
29
  spec.add_development_dependency "rspec-html-matchers", "~> 0.9.1"
29
30
 
30
31
  spec.cert_chain = ["certs/kpumuk.pem"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.0
4
+ version: 2.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmytro Shteflyuk
@@ -29,7 +29,7 @@ cert_chain:
29
29
  j0ZkOZOMk6hzny9+AnYZ7eiUqp/XX7Hn+hqtl/AebKhbFapnTu0n7KcfM0oDaLUr
30
30
  Fc+FAHErSClMb7YN
31
31
  -----END CERTIFICATE-----
32
- date: 2019-09-11 00:00:00.000000000 Z
32
+ date: 2019-10-10 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: actionpack
@@ -51,34 +51,54 @@ dependencies:
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '6.1'
54
+ - !ruby/object:Gem::Dependency
55
+ name: railties
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 3.2.0
61
+ - - "<"
62
+ - !ruby/object:Gem::Version
63
+ version: '6.1'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 3.2.0
71
+ - - "<"
72
+ - !ruby/object:Gem::Version
73
+ version: '6.1'
54
74
  - !ruby/object:Gem::Dependency
55
75
  name: rake
56
76
  requirement: !ruby/object:Gem::Requirement
57
77
  requirements:
58
78
  - - "~>"
59
79
  - !ruby/object:Gem::Version
60
- version: '12.0'
80
+ version: '13.0'
61
81
  type: :development
62
82
  prerelease: false
63
83
  version_requirements: !ruby/object:Gem::Requirement
64
84
  requirements:
65
85
  - - "~>"
66
86
  - !ruby/object:Gem::Version
67
- version: '12.0'
87
+ version: '13.0'
68
88
  - !ruby/object:Gem::Dependency
69
89
  name: rspec
70
90
  requirement: !ruby/object:Gem::Requirement
71
91
  requirements:
72
92
  - - "~>"
73
93
  - !ruby/object:Gem::Version
74
- version: 3.8.0
94
+ version: 3.9.0
75
95
  type: :development
76
96
  prerelease: false
77
97
  version_requirements: !ruby/object:Gem::Requirement
78
98
  requirements:
79
99
  - - "~>"
80
100
  - !ruby/object:Gem::Version
81
- version: 3.8.0
101
+ version: 3.9.0
82
102
  - !ruby/object:Gem::Dependency
83
103
  name: rspec-html-matchers
84
104
  requirement: !ruby/object:Gem::Requirement
@@ -116,6 +136,7 @@ files:
116
136
  - lib/meta_tags/content_tag.rb
117
137
  - lib/meta_tags/controller_helper.rb
118
138
  - lib/meta_tags/meta_tags_collection.rb
139
+ - lib/meta_tags/railtie.rb
119
140
  - lib/meta_tags/renderer.rb
120
141
  - lib/meta_tags/tag.rb
121
142
  - lib/meta_tags/text_normalizer.rb
@@ -141,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
162
  - !ruby/object:Gem::Version
142
163
  version: '0'
143
164
  requirements: []
144
- rubygems_version: 3.0.4
165
+ rubygems_version: 3.0.6
145
166
  signing_key:
146
167
  specification_version: 4
147
168
  summary: Collection of SEO helpers for Ruby on Rails.
metadata.gz.sig CHANGED
Binary file