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 +4 -4
- data/.travis.yml +16 -8
- data/Appraisals +10 -3
- data/CHANGELOG.md +11 -2
- data/Gemfile.lock +52 -47
- data/README.md +7 -5
- data/lib/flutie/page_title_helper.rb +8 -6
- data/lib/flutie/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d287f0a32bcc6714b78fa7c4dbbf5c6508b93af6f3c766b150106dde3e71de73
|
4
|
+
data.tar.gz: 0037ccf7be0dfd1fdf30ecf948baf688451d610a654992097280a4a8cc849ac7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
4
|
-
- 2.
|
5
|
-
- 2.5
|
4
|
+
- 2.4.9
|
5
|
+
- 2.5.7
|
6
|
+
- 2.6.5
|
7
|
+
- 2.7.0
|
8
|
+
|
6
9
|
gemfile:
|
7
|
-
- gemfiles/rails_5.
|
8
|
-
- gemfiles/rails_5.1.
|
9
|
-
- gemfiles/rails_5.
|
10
|
-
- gemfiles/
|
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
|
-
|
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
|
-
|
2
|
-
|
3
|
-
|
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
|
-
## [
|
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
|
-
[
|
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
|
4
|
+
flutie (2.2.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actionpack (
|
10
|
-
actionview (=
|
11
|
-
activesupport (=
|
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
|
16
|
-
actionview (
|
17
|
-
activesupport (=
|
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.
|
22
|
-
activesupport (
|
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
|
-
|
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.
|
32
|
-
concurrent-ruby (1.
|
33
|
-
crass (1.0.
|
34
|
-
diff-lcs (1.
|
35
|
-
erubi (1.
|
36
|
-
i18n (1.
|
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.
|
39
|
+
loofah (2.7.0)
|
39
40
|
crass (~> 1.0.2)
|
40
41
|
nokogiri (>= 1.5.9)
|
41
|
-
method_source (0.
|
42
|
-
mini_portile2 (2.
|
43
|
-
minitest (5.
|
44
|
-
nokogiri (1.
|
45
|
-
mini_portile2 (~> 2.
|
46
|
-
|
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
|
53
|
-
loofah (~> 2.
|
54
|
-
railties (
|
55
|
-
actionpack (=
|
56
|
-
activesupport (=
|
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.
|
60
|
-
rake (
|
61
|
-
rspec-core (3.
|
62
|
-
rspec-support (~> 3.
|
63
|
-
rspec-expectations (3.
|
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.
|
66
|
-
rspec-mocks (3.
|
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.
|
69
|
-
rspec-rails (3.
|
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.
|
74
|
-
rspec-expectations (~> 3.
|
75
|
-
rspec-mocks (~> 3.
|
76
|
-
rspec-support (~> 3.
|
77
|
-
rspec-support (3.
|
78
|
-
sqlite3 (1.3
|
79
|
-
|
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.
|
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.
|
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
|
59
|
-
using the
|
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]
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
data/lib/flutie/version.rb
CHANGED
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
|
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:
|
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
|
-
|
123
|
-
|
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: []
|