page_title_helper 4.0.0 → 5.0.0
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/CHANGELOG.md +40 -49
 - data/README.md +144 -122
 - data/lib/page_title_helper.rb +3 -1
 - data/lib/page_title_helper/version.rb +1 -1
 - data/page_title_helper.gemspec +4 -4
 - metadata +25 -11
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 83ca84d323ad19f09e49b6ee6333f2cd3c06f0e2e3f8748b8081a204fdebc4ac
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 4c9affff4ee6f51d0dfccb906ec4406e5a50032da651fcc92be19603368741e0
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 19879f1e33647398e8d15ee0b3adbaacd29a6645fd89b33838fddf11f469a577abf2467a368f6b352e61ad4db8fc71f0ac4f5e918112b16c59ab84751bfca0a2
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: c28883f1bd9cefd68c8f121b4caced4bd946ffec08d5e10f4e33f8a6008ed825132886362b97afa36a642ce05e02b22182899743daeb56515962e24ac9e51fdd
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -6,7 +6,6 @@ This project adheres to [Semantic Versioning](https://semver.org/). 
     | 
|
| 
       6 
6 
     | 
    
         
             
            Read more at [Keep a CHANGELOG](https://keepachangelog.com/en/0.3.0/)
         
     | 
| 
       7 
7 
     | 
    
         
             
            about why a change log is important.
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
9 
     | 
    
         
             
            ## x.y.z
         
     | 
| 
       11 
10 
     | 
    
         | 
| 
       12 
11 
     | 
    
         
             
            ### Added
         
     | 
| 
         @@ -21,68 +20,60 @@ about why a change log is important. 
     | 
|
| 
       21 
20 
     | 
    
         | 
| 
       22 
21 
     | 
    
         
             
            ### Security
         
     | 
| 
       23 
22 
     | 
    
         | 
| 
      
 23 
     | 
    
         
            +
            ## 5.0.0
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
            ### Added
         
     | 
| 
      
 26 
     | 
    
         
            +
            - Add support for Ruby 3 (#120)
         
     | 
| 
      
 27 
     | 
    
         
            +
            - Add automatic gem release (#122)
         
     | 
| 
      
 28 
     | 
    
         
            +
            - Add support for Rails 6.1 (#113, #114)
         
     | 
| 
      
 29 
     | 
    
         
            +
            - Officially support Ruby 2.7 (#103)
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            ### Removed
         
     | 
| 
      
 32 
     | 
    
         
            +
            - Drop support for Ruby 2.4 (#109)
         
     | 
| 
      
 33 
     | 
    
         
            +
            - Drop support for Rails < 5.2 (#104)
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
            ### Fixed
         
     | 
| 
      
 36 
     | 
    
         
            +
            - Use a better-maintained Ruby setup for the CI (#121)
         
     | 
| 
      
 37 
     | 
    
         
            +
            - Fix warnings in the `.travis.yml` (#106)
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
       24 
39 
     | 
    
         
             
            ## 4.0.0
         
     | 
| 
       25 
40 
     | 
    
         | 
| 
       26 
41 
     | 
    
         
             
            ### Added
         
     | 
| 
       27 
     | 
    
         
            -
            - Add support for Rails 6.0
         
     | 
| 
       28 
     | 
    
         
            -
              ([#94](https://github.com/lwe/page_title_helper/pull/94))
         
     | 
| 
      
 42 
     | 
    
         
            +
            - Add support for Rails 6.0 (#94)
         
     | 
| 
       29 
43 
     | 
    
         | 
| 
       30 
44 
     | 
    
         
             
            ### Removed
         
     | 
| 
       31 
     | 
    
         
            -
            - Drop support for Ruby < 2.4
         
     | 
| 
       32 
     | 
    
         
            -
              ([#93](https://github.com/lwe/page_title_helper/pull/93))
         
     | 
| 
      
 45 
     | 
    
         
            +
            - Drop support for Ruby < 2.4 (#93)
         
     | 
| 
       33 
46 
     | 
    
         | 
| 
       34 
47 
     | 
    
         
             
            ## 3.0.0
         
     | 
| 
       35 
48 
     | 
    
         | 
| 
       36 
49 
     | 
    
         
             
            ### Added
         
     | 
| 
       37 
     | 
    
         
            -
            - Add Ruby 2.4.0 to the build matrix
         
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
            - Add  
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
            -  
     | 
| 
       42 
     | 
    
         
            -
              ([#52](https://github.com/lwe/page_title_helper/pull/52))
         
     | 
| 
       43 
     | 
    
         
            -
            - Add a CODE_OF_CONDUCT.md
         
     | 
| 
       44 
     | 
    
         
            -
              ([#51](https://github.com/lwe/page_title_helper/pull/51))
         
     | 
| 
       45 
     | 
    
         
            -
            - Update Ruby to 2.3.3 and 2.2.6 on Travis
         
     | 
| 
       46 
     | 
    
         
            -
              ([#38](https://github.com/lwe/page_title_helper/pull/38))
         
     | 
| 
      
 50 
     | 
    
         
            +
            - Add Ruby 2.4.0 to the build matrix (#68)
         
     | 
| 
      
 51 
     | 
    
         
            +
            - Add a CHANGELOG.md (#59)
         
     | 
| 
      
 52 
     | 
    
         
            +
            - Add RuboCop checking to the CI (#52)
         
     | 
| 
      
 53 
     | 
    
         
            +
            - Add a CODE_OF_CONDUCT.md (#51)
         
     | 
| 
      
 54 
     | 
    
         
            +
            - Update Ruby to 2.3.3 and 2.2.6 on Travis (#38)
         
     | 
| 
       47 
55 
     | 
    
         
             
            - Add Ruby 2.3.0 to the build matrix
         
     | 
| 
       48 
     | 
    
         
            -
            - Re-add Ruby 2.0.0 to the build matrix
         
     | 
| 
       49 
     | 
    
         
            -
              ([#29](https://github.com/lwe/page_title_helper/pull/29))
         
     | 
| 
      
 56 
     | 
    
         
            +
            - Re-add Ruby 2.0.0 to the build matrix (#29)
         
     | 
| 
       50 
57 
     | 
    
         
             
            - Test against Ruby 2.2
         
     | 
| 
       51 
     | 
    
         
            -
            - Use Appraisal for building with different Rails versions
         
     | 
| 
       52 
     | 
    
         
            -
              ([#19](https://github.com/lwe/page_title_helper/pull/19))
         
     | 
| 
      
 58 
     | 
    
         
            +
            - Use Appraisal for building with different Rails versions (#19)
         
     | 
| 
       53 
59 
     | 
    
         | 
| 
       54 
60 
     | 
    
         
             
            ### Changed
         
     | 
| 
       55 
     | 
    
         
            -
            - Replaced Appraisals with specific Gemfiles
         
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
       57 
     | 
    
         
            -
            -  
     | 
| 
       58 
     | 
    
         
            -
             
     | 
| 
       59 
     | 
    
         
            -
            - Add Rails 5.0 to the build matrix
         
     | 
| 
       60 
     | 
    
         
            -
              ([#42](https://github.com/lwe/page_title_helper/pull/42))
         
     | 
| 
       61 
     | 
    
         
            -
            - Raise RVM and Gem minimum versions
         
     | 
| 
       62 
     | 
    
         
            -
              ([#3](https://github.com/lwe/page_title_helper/pull/3))
         
     | 
| 
      
 61 
     | 
    
         
            +
            - Replaced Appraisals with specific Gemfiles (#41)
         
     | 
| 
      
 62 
     | 
    
         
            +
            - Delete obsolete init.rb file (#61)
         
     | 
| 
      
 63 
     | 
    
         
            +
            - Add Rails 5.0 to the build matrix (#42)
         
     | 
| 
      
 64 
     | 
    
         
            +
            - Raise RVM and Gem minimum versions (#3)
         
     | 
| 
       63 
65 
     | 
    
         | 
| 
       64 
66 
     | 
    
         
             
            ### Removed
         
     | 
| 
       65 
     | 
    
         
            -
            - Drop support for Rails 3.2 and 4.0
         
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
            - Drop support for Ruby 1.9.x
         
     | 
| 
       68 
     | 
    
         
            -
              ([#24](https://github.com/lwe/page_title_helper/pull/24))
         
     | 
| 
      
 67 
     | 
    
         
            +
            - Drop support for Rails 3.2 and 4.0 (#39)
         
     | 
| 
      
 68 
     | 
    
         
            +
            - Drop support for Ruby 1.9.x (#24)
         
     | 
| 
       69 
69 
     | 
    
         | 
| 
       70 
70 
     | 
    
         
             
            ### Fixed
         
     | 
| 
       71 
     | 
    
         
            -
            - Fix @_page_title uninitialized warning
         
     | 
| 
       72 
     | 
    
         
            -
             
     | 
| 
       73 
     | 
    
         
            -
            -  
     | 
| 
       74 
     | 
    
         
            -
             
     | 
| 
       75 
     | 
    
         
            -
            -  
     | 
| 
       76 
     | 
    
         
            -
             
     | 
| 
       77 
     | 
    
         
            -
            -  
     | 
| 
       78 
     | 
    
         
            -
             
     | 
| 
       79 
     | 
    
         
            -
            -  
     | 
| 
       80 
     | 
    
         
            -
              ([#47](https://github.com/lwe/page_title_helper/pull/47))
         
     | 
| 
       81 
     | 
    
         
            -
            - Allow the Rails 3.2 build to fail only with Ruby 2.2
         
     | 
| 
       82 
     | 
    
         
            -
              ([#30](https://github.com/lwe/page_title_helper/pull/30))
         
     | 
| 
       83 
     | 
    
         
            -
            - Allow Rails 3.2 builds to fail
         
     | 
| 
       84 
     | 
    
         
            -
              ([#26](https://github.com/lwe/page_title_helper/pull/26))
         
     | 
| 
       85 
     | 
    
         
            -
            - Configure Travis for better performance
         
     | 
| 
       86 
     | 
    
         
            -
              ([#10](https://github.com/lwe/page_title_helper/pull/10))
         
     | 
| 
       87 
     | 
    
         
            -
            - Remove Gemfile.lock
         
     | 
| 
       88 
     | 
    
         
            -
              ([#1](https://github.com/lwe/page_title_helper/pull/1))
         
     | 
| 
      
 71 
     | 
    
         
            +
            - Fix @_page_title uninitialized warning (#62)
         
     | 
| 
      
 72 
     | 
    
         
            +
            - Fix the Travis build on Ruby 2.3.3 (#63)
         
     | 
| 
      
 73 
     | 
    
         
            +
            - Do do not shell-out to `git` in Gemfile (#49)
         
     | 
| 
      
 74 
     | 
    
         
            +
            - Get the tests to run in Rails 4.2 and 5.0 (#40)
         
     | 
| 
      
 75 
     | 
    
         
            +
            - Stop requiring version from the main class (#47)
         
     | 
| 
      
 76 
     | 
    
         
            +
            - Allow the Rails 3.2 build to fail only with Ruby 2.2 (#30)
         
     | 
| 
      
 77 
     | 
    
         
            +
            - Allow Rails 3.2 builds to fail (#26)
         
     | 
| 
      
 78 
     | 
    
         
            +
            - Configure Travis for better performance (#10)
         
     | 
| 
      
 79 
     | 
    
         
            +
            - Remove Gemfile.lock (#1)
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,202 +1,224 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Page title helper
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            [](https://github.com/lwe/page_title_helper/actions)
         
     | 
| 
       4 
4 
     | 
    
         
             
            [](https://badge.fury.io/rb/page_title_helper)
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
            This project adheres to [Semantic Versioning](https://semver.org/).
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
8 
     | 
    
         
             
            ## What does this gem do?
         
     | 
| 
       10 
9 
     | 
    
         | 
| 
       11 
     | 
    
         
            -
            Ever wondered if there was an easier and DRY-way to set your page titles 
     | 
| 
       12 
     | 
    
         
            -
            introducing _page title helper_, a small view helper for 
     | 
| 
       13 
     | 
    
         
            -
            to inflect titles from controllers and actions.
         
     | 
| 
      
 10 
     | 
    
         
            +
            Ever wondered if there was an easier and DRY-way to set your page titles
         
     | 
| 
      
 11 
     | 
    
         
            +
            (and/or headings), introducing _page title helper_, a small view helper for
         
     | 
| 
      
 12 
     | 
    
         
            +
            Rails to inflect titles from controllers and actions.
         
     | 
| 
       14 
13 
     | 
    
         | 
| 
       15 
14 
     | 
    
         
             
            In your layout, add this to your `<head>`-section:
         
     | 
| 
       16 
15 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
      
 16 
     | 
    
         
            +
            ```html
         
     | 
| 
      
 17 
     | 
    
         
            +
            <title><%= page_title %></title>
         
     | 
| 
      
 18 
     | 
    
         
            +
            ```
         
     | 
| 
       20 
19 
     | 
    
         | 
| 
       21 
20 
     | 
    
         
             
            That's it. Now just add translations, in e.g. `config/locales/en.yml`:
         
     | 
| 
       22 
21 
     | 
    
         | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
      
 22 
     | 
    
         
            +
            ```yaml
         
     | 
| 
      
 23 
     | 
    
         
            +
            en:
         
     | 
| 
      
 24 
     | 
    
         
            +
              contacts:
         
     | 
| 
      
 25 
     | 
    
         
            +
                index:
         
     | 
| 
      
 26 
     | 
    
         
            +
                  title: "Contacts"
         
     | 
| 
      
 27 
     | 
    
         
            +
            ```
         
     | 
| 
       27 
28 
     | 
    
         | 
| 
       28 
29 
     | 
    
         
             
            When `/contacts/` is requested, the key `:en, :contacts, :index, :title`
         
     | 
| 
       29 
     | 
    
         
            -
            is looked up and printed, together with the applications basename, like: 
     | 
| 
      
 30 
     | 
    
         
            +
            is looked up and printed, together with the applications basename, like:
         
     | 
| 
      
 31 
     | 
    
         
            +
            `Contacts - My cool App`.
         
     | 
| 
       30 
32 
     | 
    
         
             
            The format etc. is of course configurable, just head down to the options.
         
     | 
| 
       31 
33 
     | 
    
         | 
| 
       32 
34 
     | 
    
         
             
            ## Installation
         
     | 
| 
       33 
35 
     | 
    
         | 
| 
       34 
36 
     | 
    
         
             
            As gem (from rubygems.org):
         
     | 
| 
       35 
37 
     | 
    
         | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
      
 38 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 39 
     | 
    
         
            +
            # then add the following line to Gemfile
         
     | 
| 
      
 40 
     | 
    
         
            +
            gem 'page_title_helper'
         
     | 
| 
       38 
41 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
      
 42 
     | 
    
         
            +
            # living on the bleeding edge?
         
     | 
| 
      
 43 
     | 
    
         
            +
            gem 'page_title_helper', git: 'git://github.com/lwe/page_title_helper.git'
         
     | 
| 
      
 44 
     | 
    
         
            +
            ```
         
     | 
| 
       41 
45 
     | 
    
         | 
| 
       42 
46 
     | 
    
         
             
            ## Translated titles
         
     | 
| 
       43 
47 
     | 
    
         | 
| 
       44 
     | 
    
         
            -
            All translated titles are inflected from the current controller and action, 
     | 
| 
       45 
     | 
    
         
            -
            easily explain all lookups, here an example with the corresponding 
     | 
| 
      
 48 
     | 
    
         
            +
            All translated titles are inflected from the current controller and action,
         
     | 
| 
      
 49 
     | 
    
         
            +
            so to easily explain all lookups, here an example with the corresponding
         
     | 
| 
      
 50 
     | 
    
         
            +
            lookups:
         
     | 
| 
       46 
51 
     | 
    
         | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
      
 52 
     | 
    
         
            +
            ```
         
     | 
| 
      
 53 
     | 
    
         
            +
            Admin::AccountController#index => :'admin.account.index.title'
         
     | 
| 
      
 54 
     | 
    
         
            +
                                              :'admin.account.title'
         
     | 
| 
      
 55 
     | 
    
         
            +
                                              options[:default]
         
     | 
| 
      
 56 
     | 
    
         
            +
            ```
         
     | 
| 
       50 
57 
     | 
    
         | 
| 
       51 
     | 
    
         
            -
            For `create` and `update` a further fallback to `new.title` and `edit.title` 
     | 
| 
       52 
     | 
    
         
            -
            been added, because they certainly are duplicates.
         
     | 
| 
      
 58 
     | 
    
         
            +
            For `create` and `update` a further fallback to `new.title` and `edit.title`
         
     | 
| 
      
 59 
     | 
    
         
            +
            have been added, because they certainly are duplicates.
         
     | 
| 
       53 
60 
     | 
    
         | 
| 
       54 
61 
     | 
    
         
             
            ## Customize titles
         
     | 
| 
       55 
62 
     | 
    
         | 
| 
       56 
     | 
    
         
            -
            Need a custom title, or need to fill in some placeholders? Just use the _bang_ 
     | 
| 
       57 
     | 
    
         
            -
            `contacts/show.html.erb` the requirement is to 
     | 
| 
       58 
     | 
    
         
            -
            `<title>-tag`as well as in the heading?
         
     | 
| 
      
 63 
     | 
    
         
            +
            Need a custom title, or need to fill in some placeholders? Just use the _bang_
         
     | 
| 
      
 64 
     | 
    
         
            +
            method (`page_title!`), in e.g. `contacts/show.html.erb` the requirement is to
         
     | 
| 
      
 65 
     | 
    
         
            +
            display the contacts name in the `<title>-tag`as well as in the heading?
         
     | 
| 
      
 66 
     | 
    
         
            +
             
     | 
| 
      
 67 
     | 
    
         
            +
            ```html
         
     | 
| 
      
 68 
     | 
    
         
            +
            <h1><%= page_title!(@contact.name) %></h1>
         
     | 
| 
      
 69 
     | 
    
         
            +
            ```
         
     | 
| 
       59 
70 
     | 
    
         | 
| 
       60 
     | 
    
         
            -
             
     | 
| 
      
 71 
     | 
    
         
            +
            A call to `page_title` will now return the contacts name, neat :) if for
         
     | 
| 
      
 72 
     | 
    
         
            +
            example the `<h1>` does not match the `<title>`, then well, just do something
         
     | 
| 
      
 73 
     | 
    
         
            +
            like:
         
     | 
| 
       61 
74 
     | 
    
         | 
| 
       62 
     | 
    
         
            -
             
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
      
 75 
     | 
    
         
            +
            ```html
         
     | 
| 
      
 76 
     | 
    
         
            +
            <% page_title!(@contact.name + " (" + @contact.company.name + ")") %>
         
     | 
| 
      
 77 
     | 
    
         
            +
            <h1><%= @contact.name %></h1>
         
     | 
| 
      
 78 
     | 
    
         
            +
            ```
         
     | 
| 
       64 
79 
     | 
    
         | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
      
 80 
     | 
    
         
            +
            Guess, that's it. Of course it's also possible to use `translate` within
         
     | 
| 
      
 81 
     | 
    
         
            +
            `page_title!`, to translate custom titles, like:
         
     | 
| 
       67 
82 
     | 
    
         | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
       69 
     | 
    
         
            -
            translate custom titles, like:
         
     | 
| 
      
 83 
     | 
    
         
            +
            In `config/locales/en.yml`:
         
     | 
| 
       70 
84 
     | 
    
         | 
| 
       71 
     | 
    
         
            -
             
     | 
| 
       72 
     | 
    
         
            -
             
     | 
| 
       73 
     | 
    
         
            -
             
     | 
| 
       74 
     | 
    
         
            -
             
     | 
| 
       75 
     | 
    
         
            -
             
     | 
| 
      
 85 
     | 
    
         
            +
            ```yaml
         
     | 
| 
      
 86 
     | 
    
         
            +
            en:
         
     | 
| 
      
 87 
     | 
    
         
            +
              dashboard:
         
     | 
| 
      
 88 
     | 
    
         
            +
                index:
         
     | 
| 
      
 89 
     | 
    
         
            +
                  title: "Welcome back, {{name}}"
         
     | 
| 
      
 90 
     | 
    
         
            +
            ```
         
     | 
| 
       76 
91 
     | 
    
         | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
     | 
    
         
            -
             
     | 
| 
      
 92 
     | 
    
         
            +
            In `app/views/dashboard/index.html.erb`:
         
     | 
| 
      
 93 
     | 
    
         
            +
            ```html
         
     | 
| 
      
 94 
     | 
    
         
            +
            <h1><%= page_title!(t('.title', name: @user.first_name)) %></h1>
         
     | 
| 
      
 95 
     | 
    
         
            +
            ```
         
     | 
| 
       79 
96 
     | 
    
         | 
| 
       80 
     | 
    
         
            -
            ## More fun with < 
     | 
| 
      
 97 
     | 
    
         
            +
            ## More fun with <code>:format</code>
         
     | 
| 
       81 
98 
     | 
    
         | 
| 
       82 
     | 
    
         
            -
            The `:format` option is used to specify how a title is formatted, i.e. if the 
     | 
| 
       83 
     | 
    
         
            -
            prepended or appended or if it contains the account name etc. 
     | 
| 
       84 
     | 
    
         
            -
            paperclip's path interpolations:
         
     | 
| 
      
 99 
     | 
    
         
            +
            The `:format` option is used to specify how a title is formatted, i.e. if the
         
     | 
| 
      
 100 
     | 
    
         
            +
            app name is prepended or appended or if it contains the account name etc.
         
     | 
| 
      
 101 
     | 
    
         
            +
            It uses a similar approach as paperclip's path interpolations:
         
     | 
| 
       85 
102 
     | 
    
         | 
| 
       86 
     | 
    
         
            -
             
     | 
| 
      
 103 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 104 
     | 
    
         
            +
            page_title format: ':title / :app' # => "Contacts / My cool app"
         
     | 
| 
      
 105 
     | 
    
         
            +
            ```
         
     | 
| 
       87 
106 
     | 
    
         | 
| 
       88 
     | 
    
         
            -
            Adding custom interpolations is as easy as defining a block, for example to 
     | 
| 
       89 
     | 
    
         
            -
            controller:
         
     | 
| 
      
 107 
     | 
    
         
            +
            Adding custom interpolations is as easy as defining a block, for example to
         
     | 
| 
      
 108 
     | 
    
         
            +
            access the current controller:
         
     | 
| 
       90 
109 
     | 
    
         | 
| 
       91 
     | 
    
         
            -
             
     | 
| 
       92 
     | 
    
         
            -
             
     | 
| 
       93 
     | 
    
         
            -
             
     | 
| 
      
 110 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 111 
     | 
    
         
            +
            PageTitleHelper.interpolates :controller do |env|
         
     | 
| 
      
 112 
     | 
    
         
            +
              env[:view].controller.controller_name.humanize
         
     | 
| 
      
 113 
     | 
    
         
            +
            end
         
     | 
| 
       94 
114 
     | 
    
         | 
| 
       95 
     | 
    
         
            -
             
     | 
| 
      
 115 
     | 
    
         
            +
            page_title format: ':title / :controller / :app' # => "Welcome back / Dashboard / My cool app"
         
     | 
| 
      
 116 
     | 
    
         
            +
            ```
         
     | 
| 
       96 
117 
     | 
    
         | 
| 
       97 
     | 
    
         
            -
            To access just the title, without any magic app stuff interpolated or appended, 
     | 
| 
      
 118 
     | 
    
         
            +
            To access just the title, without any magic app stuff interpolated or appended,
         
     | 
| 
      
 119 
     | 
    
         
            +
            use:
         
     | 
| 
       98 
120 
     | 
    
         | 
| 
       99 
     | 
    
         
            -
             
     | 
| 
       100 
     | 
    
         
            -
             
     | 
| 
      
 121 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 122 
     | 
    
         
            +
            page_title! "untitled"
         
     | 
| 
      
 123 
     | 
    
         
            +
            page_title format: false # => "untitled"
         
     | 
| 
      
 124 
     | 
    
         
            +
            ```
         
     | 
| 
       101 
125 
     | 
    
         | 
| 
       102 
126 
     | 
    
         
             
            Need a custom format for a single title? Just return an array:
         
     | 
| 
       103 
127 
     | 
    
         | 
| 
       104 
     | 
    
         
            -
             
     | 
| 
       105 
     | 
    
         
            -
             
     | 
| 
      
 128 
     | 
    
         
            +
            In the view:
         
     | 
| 
      
 129 
     | 
    
         
            +
             
     | 
| 
      
 130 
     | 
    
         
            +
            ```html
         
     | 
| 
      
 131 
     | 
    
         
            +
            <h1><%= page_title!(@contact.name, ":title from :company - :app") %></h1> # => <h1>Franz Meyer</h1>
         
     | 
| 
      
 132 
     | 
    
         
            +
            ```
         
     | 
| 
      
 133 
     | 
    
         
            +
             
     | 
| 
      
 134 
     | 
    
         
            +
            In the `<head>`:
         
     | 
| 
      
 135 
     | 
    
         
            +
             
     | 
| 
      
 136 
     | 
    
         
            +
            ```html
         
     | 
| 
      
 137 
     | 
    
         
            +
            <title><%= page_title %></title> # => this time it will use custom title like "Franz Meyer from ABC Corp. - My cool app"
         
     | 
| 
      
 138 
     | 
    
         
            +
            ```
         
     | 
| 
      
 139 
     | 
    
         
            +
             
     | 
| 
      
 140 
     | 
    
         
            +
            To streamline that feature a bit and simplify reuse of often used formats,
         
     | 
| 
      
 141 
     | 
    
         
            +
            it's possible to define format aliases like:
         
     | 
| 
       106 
142 
     | 
    
         | 
| 
       107 
     | 
    
         
            -
             
     | 
| 
       108 
     | 
    
         
            -
                <title><%= page_title %></title> # => this time it will use custom title like "Franz Meyer from ABC Corp. - My cool app"
         
     | 
| 
      
 143 
     | 
    
         
            +
            In an initializer, e.g., `config/initializers/page_title_helper.rb`:
         
     | 
| 
       109 
144 
     | 
    
         | 
| 
       110 
     | 
    
         
            -
             
     | 
| 
      
 145 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 146 
     | 
    
         
            +
            PageTitleHelper.formats[:with_company] = ":title from :company - :app"
         
     | 
| 
      
 147 
     | 
    
         
            +
            # show app first for promo pages :)
         
     | 
| 
      
 148 
     | 
    
         
            +
            PageTitleHelper.formats[:promo] = ":app - :title" 
         
     | 
| 
      
 149 
     | 
    
         
            +
            ```
         
     | 
| 
       111 
150 
     | 
    
         | 
| 
       112 
     | 
    
         
            -
             
     | 
| 
       113 
     | 
    
         
            -
                PageTitleHelper.formats[:with_company] = ":title from :company - :app"
         
     | 
| 
       114 
     | 
    
         
            -
                PageTitleHelper.formats[:promo] = ":app - :title" # show app first for promo pages :)
         
     | 
| 
      
 151 
     | 
    
         
            +
            Then in the view to display a contact:
         
     | 
| 
       115 
152 
     | 
    
         | 
| 
       116 
     | 
    
         
            -
             
     | 
| 
       117 
     | 
    
         
            -
             
     | 
| 
      
 153 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 154 
     | 
    
         
            +
            page_title! @contact.name, :with_company
         
     | 
| 
      
 155 
     | 
    
         
            +
            ```
         
     | 
| 
       118 
156 
     | 
    
         | 
| 
       119 
     | 
    
         
            -
             
     | 
| 
       120 
     | 
    
         
            -
                en:
         
     | 
| 
       121 
     | 
    
         
            -
                  pages:
         
     | 
| 
       122 
     | 
    
         
            -
                    features:
         
     | 
| 
       123 
     | 
    
         
            -
                      title:
         
     | 
| 
       124 
     | 
    
         
            -
                        - "Features comparison"
         
     | 
| 
       125 
     | 
    
         
            -
                        - !ruby/sym promo
         
     | 
| 
      
 157 
     | 
    
         
            +
            Or for the promo page via `config/locales/en.yml` (!):
         
     | 
| 
       126 
158 
     | 
    
         | 
| 
       127 
     | 
    
         
            -
             
     | 
| 
       128 
     | 
    
         
            -
             
     | 
| 
      
 159 
     | 
    
         
            +
            ```yaml
         
     | 
| 
      
 160 
     | 
    
         
            +
            en:
         
     | 
| 
      
 161 
     | 
    
         
            +
              pages:
         
     | 
| 
      
 162 
     | 
    
         
            +
                features:
         
     | 
| 
      
 163 
     | 
    
         
            +
                  title:
         
     | 
| 
      
 164 
     | 
    
         
            +
                    - "Features comparison"
         
     | 
| 
      
 165 
     | 
    
         
            +
                    - !ruby/sym promo
         
     | 
| 
      
 166 
     | 
    
         
            +
            ```
         
     | 
| 
      
 167 
     | 
    
         
            +
             
     | 
| 
      
 168 
     | 
    
         
            +
            Pretty, cool, ain't it? The special `format: :app` works also via the `formats`
         
     | 
| 
      
 169 
     | 
    
         
            +
            hash. Then there is also a `:default` format, which can be used to override the
         
     | 
| 
      
 170 
     | 
    
         
            +
            default format.
         
     | 
| 
       129 
171 
     | 
    
         | 
| 
       130 
172 
     | 
    
         
             
            ## All options - explained
         
     | 
| 
       131 
173 
     | 
    
         | 
| 
       132 
     | 
    
         
            -
             
     | 
| 
       133 
     | 
    
         
            -
             
     | 
| 
       134 
     | 
    
         
            -
                 
     | 
| 
       135 
     | 
    
         
            -
             
     | 
| 
       136 
     | 
    
         
            -
             
     | 
| 
       137 
     | 
    
         
            -
             
     | 
| 
       138 
     | 
    
         
            -
             
     | 
| 
       139 
     | 
    
         
            -
             
     | 
| 
       140 
     | 
    
         
            -
                <td>Inflected from <tt>Rails.root</tt></td>
         
     | 
| 
       141 
     | 
    
         
            -
                <td>string</td>
         
     | 
| 
       142 
     | 
    
         
            -
              </tr>
         
     | 
| 
       143 
     | 
    
         
            -
              <tr>
         
     | 
| 
       144 
     | 
    
         
            -
                <td><tt>:default</tt></td>
         
     | 
| 
       145 
     | 
    
         
            -
                <td>String which is displayed when no translation exists and no custom title
         
     | 
| 
       146 
     | 
    
         
            -
                    has been specified. Can also be set to a symbol or array to take advantage of
         
     | 
| 
       147 
     | 
    
         
            -
                    <tt>I18n.translate</tt>s <tt>:default</tt> option.</td>
         
     | 
| 
       148 
     | 
    
         
            -
                <td><tt>:'app.tagline'</tt></td>
         
     | 
| 
       149 
     | 
    
         
            -
                <td>string, symbol or array of those</td>
         
     | 
| 
       150 
     | 
    
         
            -
              </tr>
         
     | 
| 
       151 
     | 
    
         
            -
              <tr>
         
     | 
| 
       152 
     | 
    
         
            -
                <td><tt>:format</tt></td>
         
     | 
| 
       153 
     | 
    
         
            -
                <td>Defines the output format, accepts a string containing multiple interpolations, or
         
     | 
| 
       154 
     | 
    
         
            -
                    a symbol to a format alias, see <i>More fun with <tt>:format</tt></i>. If set to
         
     | 
| 
       155 
     | 
    
         
            -
                    +false+, just the current title is returned.</td>
         
     | 
| 
       156 
     | 
    
         
            -
                <td><tt>:default</tt></td>
         
     | 
| 
       157 
     | 
    
         
            -
                <td>string, symbol</td>
         
     | 
| 
       158 
     | 
    
         
            -
              </tr>
         
     | 
| 
       159 
     | 
    
         
            -
            </table>
         
     | 
| 
       160 
     | 
    
         
            -
            </p>
         
     | 
| 
       161 
     | 
    
         
            -
             
     | 
| 
       162 
     | 
    
         
            -
            Options can be set globally via `PageTitleHelper.options`. Note, currently it only
         
     | 
| 
       163 
     | 
    
         
            -
            makes sense to set `:default` globally.
         
     | 
| 
      
 174 
     | 
    
         
            +
            | Option   | Description | Default | Values |
         
     | 
| 
      
 175 
     | 
    
         
            +
            |----------|-------------|---------|--------|
         
     | 
| 
      
 176 
     | 
    
         
            +
            |`:app`    | Specify the applications name, however it's recommended to define it via translation key `:'app.name'`. | Inflected from `Rails.root`| string |
         
     | 
| 
      
 177 
     | 
    
         
            +
            |`:default`| String which is displayed when no translation exists and no custom title has been specified. Can also be set to a symbol or array to take advantage of `I18n.translate`'s `:default` option. | `'app.tagline'` | string, symbol or array of those |
         
     | 
| 
      
 178 
     | 
    
         
            +
            |`:format` | Defines the output format, accepts a string containing multiple interpolations, or a symbol to a format alias, see _More fun with `:format`_. If set to `false`, just the current title is returned. | `:default`| string, symbol |
         
     | 
| 
      
 179 
     | 
    
         
            +
             
     | 
| 
      
 180 
     | 
    
         
            +
            Options can be set globally via `PageTitleHelper.options`. Note, currently it
         
     | 
| 
      
 181 
     | 
    
         
            +
            only makes sense to set `:default` globally.
         
     | 
| 
       164 
182 
     | 
    
         | 
| 
       165 
183 
     | 
    
         
             
            To add or change formats use:
         
     | 
| 
       166 
184 
     | 
    
         | 
| 
       167 
     | 
    
         
            -
             
     | 
| 
       168 
     | 
    
         
            -
             
     | 
| 
      
 185 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 186 
     | 
    
         
            +
            # change the default format used (if no format is specified):
         
     | 
| 
      
 187 
     | 
    
         
            +
            PageTitleHelper.formats[:default] = ":title // :app"
         
     | 
| 
       169 
188 
     | 
    
         | 
| 
       170 
     | 
    
         
            -
             
     | 
| 
       171 
     | 
    
         
            -
             
     | 
| 
      
 189 
     | 
    
         
            +
            # add a custom format alias (which can be used with page_title(format: :promo))
         
     | 
| 
      
 190 
     | 
    
         
            +
            PageTitleHelper.formats[:promo] = ":app // :title"
         
     | 
| 
      
 191 
     | 
    
         
            +
            ```
         
     | 
| 
       172 
192 
     | 
    
         | 
| 
       173 
     | 
    
         
            -
            _Note:_  
     | 
| 
      
 193 
     | 
    
         
            +
            _Note:_ It's recommended to add this kind of stuff to an initializer, like e.g.
         
     | 
| 
       174 
194 
     | 
    
         
             
            `config/initializers/page_title_helper.rb`.
         
     | 
| 
       175 
195 
     | 
    
         | 
| 
       176 
196 
     | 
    
         
             
            ## A (maybe useful) interpolation
         
     | 
| 
       177 
197 
     | 
    
         | 
| 
       178 
     | 
    
         
            -
            The internationalized controller name, with fallback to just display the 
     | 
| 
       179 
     | 
    
         
            -
             
     | 
| 
       180 
     | 
    
         
            -
                PageTitleHelper.interpolates :controller do |env|
         
     | 
| 
       181 
     | 
    
         
            -
                  c = env[:view].controller
         
     | 
| 
       182 
     | 
    
         
            -
                  I18n.t(c.controller_path.tr('/', '.') + '.controller', default: c.controller_name.humanize)
         
     | 
| 
       183 
     | 
    
         
            -
                end
         
     | 
| 
      
 198 
     | 
    
         
            +
            The internationalized controller name, with fallback to just display the
         
     | 
| 
      
 199 
     | 
    
         
            +
            humanized name:
         
     | 
| 
       184 
200 
     | 
    
         | 
| 
       185 
     | 
    
         
            -
             
     | 
| 
      
 201 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 202 
     | 
    
         
            +
            PageTitleHelper.interpolates :controller do |env|
         
     | 
| 
      
 203 
     | 
    
         
            +
              c = env[:view].controller
         
     | 
| 
      
 204 
     | 
    
         
            +
              I18n.t(c.controller_path.tr('/', '.') + '.controller', default: c.controller_name.humanize)
         
     | 
| 
      
 205 
     | 
    
         
            +
            end
         
     | 
| 
      
 206 
     | 
    
         
            +
            ```
         
     | 
| 
       186 
207 
     | 
    
         | 
| 
      
 208 
     | 
    
         
            +
            _Note:_ Put this kind of stuff into an initializer, like
         
     | 
| 
      
 209 
     | 
    
         
            +
            `config/initializers/page_title_helper.rb` or something like that.
         
     | 
| 
       187 
210 
     | 
    
         | 
| 
       188 
211 
     | 
    
         
             
            ## Contributing
         
     | 
| 
       189 
212 
     | 
    
         | 
| 
       190 
213 
     | 
    
         
             
            Pull request are more than welcome. Please adhere to our
         
     | 
| 
       191 
     | 
    
         
            -
            [ 
     | 
| 
      
 214 
     | 
    
         
            +
            [code of conduct](CODE_OF_CONDUCT.md) in discussions and contributions.
         
     | 
| 
       192 
215 
     | 
    
         
             
            Thanks!
         
     | 
| 
       193 
216 
     | 
    
         | 
| 
       194 
     | 
    
         
            -
             
     | 
| 
       195 
217 
     | 
    
         
             
            ## Maintainers
         
     | 
| 
       196 
218 
     | 
    
         | 
| 
       197 
219 
     | 
    
         
             
            * [@lwe - Lukas Westermann](https://github.com/lwe)
         
     | 
| 
       198 
220 
     | 
    
         
             
            * [@oliverklee - Oliver Klee](https://github.com/oliverklee)
         
     | 
| 
       199 
221 
     | 
    
         | 
| 
       200 
     | 
    
         
            -
             
     | 
| 
       201 
222 
     | 
    
         
             
            ## Licence and copyright
         
     | 
| 
       202 
     | 
    
         
            -
            Copyright (c) 2009 Lukas Westermann (Zurich, Switzerland), released under the 
     | 
| 
      
 223 
     | 
    
         
            +
            Copyright (c) 2009 Lukas Westermann (Zurich, Switzerland), released under the
         
     | 
| 
      
 224 
     | 
    
         
            +
            MIT license
         
     | 
    
        data/lib/page_title_helper.rb
    CHANGED
    
    | 
         @@ -75,7 +75,9 @@ module PageTitleHelper 
     | 
|
| 
       75 
75 
     | 
    
         | 
| 
       76 
76 
     | 
    
         
             
                # handle format aliases
         
     | 
| 
       77 
77 
     | 
    
         
             
                format = options.delete(:format)
         
     | 
| 
       78 
     | 
    
         
            -
                 
     | 
| 
      
 78 
     | 
    
         
            +
                if PageTitleHelper.formats.include?(format)
         
     | 
| 
      
 79 
     | 
    
         
            +
                  format = PageTitleHelper.formats[format]
         
     | 
| 
      
 80 
     | 
    
         
            +
                end
         
     | 
| 
       79 
81 
     | 
    
         | 
| 
       80 
82 
     | 
    
         
             
                # construct basic env to pass around
         
     | 
| 
       81 
83 
     | 
    
         
             
                env = { title: title, app: options.delete(:app), options: options, view: self }
         
     | 
    
        data/page_title_helper.gemspec
    CHANGED
    
    | 
         @@ -9,8 +9,7 @@ Gem::Specification.new do |s| 
     | 
|
| 
       9 
9 
     | 
    
         
             
              s.summary     = 'Simple, internationalized and DRY page titles and headings for Rails.'
         
     | 
| 
       10 
10 
     | 
    
         
             
              s.description = 'Simple, internationalized and DRY page titles and headings for Rails.'
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
              s.required_ruby_version 
     | 
| 
       13 
     | 
    
         
            -
              s.required_rubygems_version = '>= 1.3.6'
         
     | 
| 
      
 12 
     | 
    
         
            +
              s.required_ruby_version = '>= 2.5.0'
         
     | 
| 
       14 
13 
     | 
    
         | 
| 
       15 
14 
     | 
    
         
             
              s.authors  = ['Lukas Westermann']
         
     | 
| 
       16 
15 
     | 
    
         
             
              s.email    = ['lukas.westermann@gmail.com']
         
     | 
| 
         @@ -22,9 +21,10 @@ Gem::Specification.new do |s| 
     | 
|
| 
       22 
21 
     | 
    
         | 
| 
       23 
22 
     | 
    
         
             
              s.license          = 'MIT'
         
     | 
| 
       24 
23 
     | 
    
         | 
| 
       25 
     | 
    
         
            -
              s.add_dependency 'rails', '>=  
     | 
| 
      
 24 
     | 
    
         
            +
              s.add_dependency 'rails', '>= 5.2.0', '< 6.2'
         
     | 
| 
       26 
25 
     | 
    
         | 
| 
       27 
26 
     | 
    
         
             
              s.add_development_dependency 'rake', '>= 10.3.2'
         
     | 
| 
       28 
27 
     | 
    
         
             
              s.add_development_dependency 'shoulda'
         
     | 
| 
       29 
     | 
    
         
            -
              s.add_development_dependency 'rubocop', '~> 0. 
     | 
| 
      
 28 
     | 
    
         
            +
              s.add_development_dependency 'rubocop', '~> 0.82.0'
         
     | 
| 
      
 29 
     | 
    
         
            +
              s.add_development_dependency 'rubocop-rails', '~> 2.5.2'
         
     | 
| 
       30 
30 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: page_title_helper
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version:  
     | 
| 
      
 4 
     | 
    
         
            +
              version: 5.0.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Lukas Westermann
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-02-19 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rails
         
     | 
| 
         @@ -16,20 +16,20 @@ dependencies: 
     | 
|
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
17 
     | 
    
         
             
                - - ">="
         
     | 
| 
       18 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
     | 
    
         
            -
                    version:  
     | 
| 
      
 19 
     | 
    
         
            +
                    version: 5.2.0
         
     | 
| 
       20 
20 
     | 
    
         
             
                - - "<"
         
     | 
| 
       21 
21 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       22 
     | 
    
         
            -
                    version: '6. 
     | 
| 
      
 22 
     | 
    
         
            +
                    version: '6.2'
         
     | 
| 
       23 
23 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       24 
24 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       25 
25 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       26 
26 
     | 
    
         
             
                requirements:
         
     | 
| 
       27 
27 
     | 
    
         
             
                - - ">="
         
     | 
| 
       28 
28 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       29 
     | 
    
         
            -
                    version:  
     | 
| 
      
 29 
     | 
    
         
            +
                    version: 5.2.0
         
     | 
| 
       30 
30 
     | 
    
         
             
                - - "<"
         
     | 
| 
       31 
31 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       32 
     | 
    
         
            -
                    version: '6. 
     | 
| 
      
 32 
     | 
    
         
            +
                    version: '6.2'
         
     | 
| 
       33 
33 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       34 
34 
     | 
    
         
             
              name: rake
         
     | 
| 
       35 
35 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -64,14 +64,28 @@ dependencies: 
     | 
|
| 
       64 
64 
     | 
    
         
             
                requirements:
         
     | 
| 
       65 
65 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       66 
66 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       67 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 67 
     | 
    
         
            +
                    version: 0.82.0
         
     | 
| 
       68 
68 
     | 
    
         
             
              type: :development
         
     | 
| 
       69 
69 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       70 
70 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       71 
71 
     | 
    
         
             
                requirements:
         
     | 
| 
       72 
72 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       73 
73 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       74 
     | 
    
         
            -
                    version: 0. 
     | 
| 
      
 74 
     | 
    
         
            +
                    version: 0.82.0
         
     | 
| 
      
 75 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 76 
     | 
    
         
            +
              name: rubocop-rails
         
     | 
| 
      
 77 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 78 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 79 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 80 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 81 
     | 
    
         
            +
                    version: 2.5.2
         
     | 
| 
      
 82 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 83 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 84 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 85 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 86 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 87 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 88 
     | 
    
         
            +
                    version: 2.5.2
         
     | 
| 
       75 
89 
     | 
    
         
             
            description: Simple, internationalized and DRY page titles and headings for Rails.
         
     | 
| 
       76 
90 
     | 
    
         
             
            email:
         
     | 
| 
       77 
91 
     | 
    
         
             
            - lukas.westermann@gmail.com
         
     | 
| 
         @@ -105,14 +119,14 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       105 
119 
     | 
    
         
             
              requirements:
         
     | 
| 
       106 
120 
     | 
    
         
             
              - - ">="
         
     | 
| 
       107 
121 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       108 
     | 
    
         
            -
                  version: 2. 
     | 
| 
      
 122 
     | 
    
         
            +
                  version: 2.5.0
         
     | 
| 
       109 
123 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       110 
124 
     | 
    
         
             
              requirements:
         
     | 
| 
       111 
125 
     | 
    
         
             
              - - ">="
         
     | 
| 
       112 
126 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       113 
     | 
    
         
            -
                  version:  
     | 
| 
      
 127 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       114 
128 
     | 
    
         
             
            requirements: []
         
     | 
| 
       115 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 129 
     | 
    
         
            +
            rubygems_version: 3.2.3
         
     | 
| 
       116 
130 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       117 
131 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       118 
132 
     | 
    
         
             
            summary: Simple, internationalized and DRY page titles and headings for Rails.
         
     |