flutie 2.1.0 → 2.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40b644b9e3d68ac23396f430560d921c5ca9a10c011918be5ec87cfa091757fc
4
- data.tar.gz: 166e8e7c83edc2e5bf95edadcedd01e16614e32641735dc8b0d81de8d2e1abe7
3
+ metadata.gz: d287f0a32bcc6714b78fa7c4dbbf5c6508b93af6f3c766b150106dde3e71de73
4
+ data.tar.gz: 0037ccf7be0dfd1fdf30ecf948baf688451d610a654992097280a4a8cc849ac7
5
5
  SHA512:
6
- metadata.gz: cb914b168238ed393e27ae7cbbffa31f9ef612cba00e1af569725b9e31ba8514da16adbeb7e51a4f4460b8a0d7196e9a06dd849cea40c1d3ccc397d98884b1e4
7
- data.tar.gz: 2ab8dddabc7741b6e796968c28e7119d08f3ea7abee5b1fda4b95f3ae92ddb36be230b715dfdfad80462df2603333a3bbe8e8f8b0dd64c41a6d5264ba1bdfb00
6
+ metadata.gz: 14337ac248c085c67ef0fa08ad6f14ca00c9e07358386f2521616fc25d825388359c15d892bbcbb0edf6708b48e6aeae368e5fbc551239a31c8a8189ad3af4be
7
+ data.tar.gz: 80f5d687831ca4c4df74ed3b0a80fd9a8d66a6221347e2855cf0e03f39b5ade49a3572b6dc5b87e4b7af3ad68d56d06c18fa8f01b1da04ca512e0de85c8b9950
data/.travis.yml CHANGED
@@ -1,13 +1,21 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
- - 2.3.7
4
- - 2.4.4
5
- - 2.5.1
4
+ - 2.4.9
5
+ - 2.5.7
6
+ - 2.6.5
7
+ - 2.7.0
8
+
6
9
  gemfile:
7
- - gemfiles/rails_5.2.0.gemfile
8
- - gemfiles/rails_5.1.0.gemfile
9
- - gemfiles/rails_5.0.0.gemfile
10
- - gemfiles/rails_4.2.0.gemfile
10
+ - gemfiles/rails_5.0.gemfile
11
+ - gemfiles/rails_5.1.gemfile
12
+ - gemfiles/rails_5.2.gemfile
13
+ - gemfiles/rails_6.0.gemfile
14
+
11
15
  notifications:
12
16
  email: false
13
- sudo: false
17
+
18
+ matrix:
19
+ exclude:
20
+ - rvm: 2.4.9
21
+ gemfile: gemfiles/rails_6.0.gemfile
data/Appraisals CHANGED
@@ -1,5 +1,12 @@
1
- ['5.2.0', '5.1.0', '5.0.0', '4.2.0'].each do |rails_version|
2
- appraise "rails_#{rails_version}" do
3
- gem 'rails', "~> #{rails_version}"
1
+ rails_versions = %w(
2
+ 5.0
3
+ 5.1
4
+ 5.2
5
+ 6.0
6
+ )
7
+
8
+ rails_versions.each do |version|
9
+ appraise "rails_#{version}" do
10
+ gem "rails", "~> #{version}.0"
4
11
  end
5
12
  end
data/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased]
3
+ ## [2.2.0] - 2019-09-10
4
+
5
+ ### Added
6
+
7
+ - Add support for Rails 6
8
+
9
+ ### Removed
10
+
11
+ - Dropped support for Ruby prior to 2.4.0
12
+ - Dropped support for Rails prior to 5.0.0
4
13
 
5
14
  ## [2.1.0] - 2018-09-27
6
15
 
@@ -29,6 +38,6 @@
29
38
 
30
39
  - Convert from Rails Engine to Railtie
31
40
 
32
- [Unreleased]: https://github.com/thoughtbot/flutie/compare/v2.1.0...HEAD
41
+ [2.2.0]: https://github.com/thoughtbot/flutie/compare/v2.1.0...v2.2.0
33
42
  [2.1.0]: https://github.com/thoughtbot/flutie/compare/v2.0.0...v2.1.0
34
43
  [2.0.0]: https://github.com/thoughtbot/flutie/compare/v1.3.4...v2.0.0
data/Gemfile.lock CHANGED
@@ -1,85 +1,90 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flutie (2.1.0)
4
+ flutie (2.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actionpack (5.2.1)
10
- actionview (= 5.2.1)
11
- activesupport (= 5.2.1)
12
- rack (~> 2.0)
9
+ actionpack (6.0.3.3)
10
+ actionview (= 6.0.3.3)
11
+ activesupport (= 6.0.3.3)
12
+ rack (~> 2.0, >= 2.0.8)
13
13
  rack-test (>= 0.6.3)
14
14
  rails-dom-testing (~> 2.0)
15
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
16
- actionview (5.2.1)
17
- activesupport (= 5.2.1)
15
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
16
+ actionview (6.0.3.3)
17
+ activesupport (= 6.0.3.3)
18
18
  builder (~> 3.1)
19
19
  erubi (~> 1.4)
20
20
  rails-dom-testing (~> 2.0)
21
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
22
- activesupport (5.2.1)
21
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
22
+ activesupport (6.0.3.3)
23
23
  concurrent-ruby (~> 1.0, >= 1.0.2)
24
24
  i18n (>= 0.7, < 2)
25
25
  minitest (~> 5.1)
26
26
  tzinfo (~> 1.1)
27
- appraisal (2.2.0)
27
+ zeitwerk (~> 2.2, >= 2.2.2)
28
+ appraisal (2.3.0)
28
29
  bundler
29
30
  rake
30
31
  thor (>= 0.14.0)
31
- builder (3.2.3)
32
- concurrent-ruby (1.0.5)
33
- crass (1.0.4)
34
- diff-lcs (1.3)
35
- erubi (1.7.1)
36
- i18n (1.1.0)
32
+ builder (3.2.4)
33
+ concurrent-ruby (1.1.7)
34
+ crass (1.0.6)
35
+ diff-lcs (1.4.4)
36
+ erubi (1.9.0)
37
+ i18n (1.8.5)
37
38
  concurrent-ruby (~> 1.0)
38
- loofah (2.2.2)
39
+ loofah (2.7.0)
39
40
  crass (~> 1.0.2)
40
41
  nokogiri (>= 1.5.9)
41
- method_source (0.9.0)
42
- mini_portile2 (2.3.0)
43
- minitest (5.11.3)
44
- nokogiri (1.8.4)
45
- mini_portile2 (~> 2.3.0)
46
- rack (2.0.5)
42
+ method_source (1.0.0)
43
+ mini_portile2 (2.8.9)
44
+ minitest (5.14.2)
45
+ nokogiri (1.17.2)
46
+ mini_portile2 (~> 2.8.2)
47
+ racc (~> 1.4)
48
+ racc (1.8.1)
49
+ rack (2.2.3)
47
50
  rack-test (1.1.0)
48
51
  rack (>= 1.0, < 3)
49
52
  rails-dom-testing (2.0.3)
50
53
  activesupport (>= 4.2.0)
51
54
  nokogiri (>= 1.6)
52
- rails-html-sanitizer (1.0.4)
53
- loofah (~> 2.2, >= 2.2.2)
54
- railties (5.2.1)
55
- actionpack (= 5.2.1)
56
- activesupport (= 5.2.1)
55
+ rails-html-sanitizer (1.3.0)
56
+ loofah (~> 2.3)
57
+ railties (6.0.3.3)
58
+ actionpack (= 6.0.3.3)
59
+ activesupport (= 6.0.3.3)
57
60
  method_source
58
61
  rake (>= 0.8.7)
59
- thor (>= 0.19.0, < 2.0)
60
- rake (12.3.1)
61
- rspec-core (3.8.0)
62
- rspec-support (~> 3.8.0)
63
- rspec-expectations (3.8.1)
62
+ thor (>= 0.20.3, < 2.0)
63
+ rake (13.0.1)
64
+ rspec-core (3.9.3)
65
+ rspec-support (~> 3.9.3)
66
+ rspec-expectations (3.9.2)
64
67
  diff-lcs (>= 1.2.0, < 2.0)
65
- rspec-support (~> 3.8.0)
66
- rspec-mocks (3.8.0)
68
+ rspec-support (~> 3.9.0)
69
+ rspec-mocks (3.9.1)
67
70
  diff-lcs (>= 1.2.0, < 2.0)
68
- rspec-support (~> 3.8.0)
69
- rspec-rails (3.8.0)
71
+ rspec-support (~> 3.9.0)
72
+ rspec-rails (3.9.1)
70
73
  actionpack (>= 3.0)
71
74
  activesupport (>= 3.0)
72
75
  railties (>= 3.0)
73
- rspec-core (~> 3.8.0)
74
- rspec-expectations (~> 3.8.0)
75
- rspec-mocks (~> 3.8.0)
76
- rspec-support (~> 3.8.0)
77
- rspec-support (3.8.0)
78
- sqlite3 (1.3.13)
79
- thor (0.20.0)
76
+ rspec-core (~> 3.9.0)
77
+ rspec-expectations (~> 3.9.0)
78
+ rspec-mocks (~> 3.9.0)
79
+ rspec-support (~> 3.9.0)
80
+ rspec-support (3.9.3)
81
+ sqlite3 (1.7.3)
82
+ mini_portile2 (~> 2.8.0)
83
+ thor (1.0.1)
80
84
  thread_safe (0.3.6)
81
- tzinfo (1.2.5)
85
+ tzinfo (1.2.7)
82
86
  thread_safe (~> 0.1)
87
+ zeitwerk (2.4.0)
83
88
 
84
89
  PLATFORMS
85
90
  ruby
@@ -91,4 +96,4 @@ DEPENDENCIES
91
96
  sqlite3 (~> 1.3)
92
97
 
93
98
  BUNDLED WITH
94
- 1.16.5
99
+ 2.1.2
data/README.md CHANGED
@@ -55,8 +55,8 @@ would produce:
55
55
  <title>My app name | My title of my page</title>
56
56
  ```
57
57
 
58
- You can also reverse the position of the app name and the :site_page_title
59
- using the :reverse option. For example:
58
+ You can also reverse the position of the `:app_name` and the `:site_page_title`
59
+ values by using the `:reverse` option. For example:
60
60
 
61
61
  ```ruby
62
62
  content_for(:site_page_title, 'My title of my page')
@@ -104,18 +104,20 @@ Please see the [CONTRIBUTING](CONTRIBUTING.md) file for details.
104
104
 
105
105
  ## Credits
106
106
 
107
- ![thoughtbot](http://thoughtbot.com/images/tm/logo.png)
107
+ [![thoughtbot][thoughtbot-logo]][thoughtbot]
108
108
 
109
- Flutie is maintained and funded by [thoughtbot, inc].
109
+ Flutie is maintained and funded by [thoughtbot, inc][thoughtbot].
110
110
 
111
111
  Thank you to all [the contributors]!
112
112
 
113
113
  The names and logos for thoughtbot are trademarks of thoughtbot, inc.
114
114
 
115
+ [thoughtbot]: https://thoughtbot.com?utm_source=github
116
+ [thoughtbot-logo]: http://presskit.thoughtbot.com/images/thoughtbot-logo-for-readmes.svg
117
+
115
118
  ## License
116
119
 
117
120
  Flutie is Copyright © 2010 thoughtbot, inc. It is free software, and may be
118
121
  redistributed under the terms specified in the [LICENSE](LICENSE) file.
119
122
 
120
- [thoughtbot, inc]: http://thoughtbot.com/community
121
123
  [the contributors]: https://github.com/thoughtbot/flutie/contributors
@@ -3,11 +3,13 @@ module PageTitleHelper
3
3
  def page_title(options = {})
4
4
  page_title = Flutie::PageTitle.new(options)
5
5
 
6
- Flutie::PageTitlePresenter.new(
7
- page_title.app_name,
8
- content_for(page_title.page_title_symbol),
9
- page_title.separator,
10
- options[:reverse]
11
- ).to_s
6
+ escape_once(
7
+ Flutie::PageTitlePresenter.new(
8
+ page_title.app_name,
9
+ content_for(page_title.page_title_symbol),
10
+ page_title.separator,
11
+ options[:reverse],
12
+ ).to_s,
13
+ ).html_safe
12
14
  end
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module Flutie
2
- VERSION = '2.1.0'.freeze
2
+ VERSION = '2.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flutie
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - " Aaron Suggs"
@@ -25,10 +25,10 @@ authors:
25
25
  - " OZAWA Sakuro"
26
26
  - " Phil LaPier"
27
27
  - " Tom Crinson"
28
- autorequire:
28
+ autorequire:
29
29
  bindir: bin
30
30
  cert_chain: []
31
- date: 2018-09-27 00:00:00.000000000 Z
31
+ date: 2025-06-13 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: appraisal
@@ -104,7 +104,7 @@ homepage: http://github.com/thoughtbot/flutie
104
104
  licenses:
105
105
  - MIT
106
106
  metadata: {}
107
- post_install_message:
107
+ post_install_message:
108
108
  rdoc_options: []
109
109
  require_paths:
110
110
  - lib
@@ -119,9 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.7.7
124
- signing_key:
122
+ rubygems_version: 3.2.33
123
+ signing_key:
125
124
  specification_version: 4
126
125
  summary: Flutie provides extra Rails view helpers
127
126
  test_files: []