title 0.0.8 → 0.0.10

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: a5223d4bc45bb6bde8e268cb533e675a4a77628b85518151e10d1033f20ef341
4
- data.tar.gz: 9fc368e00d9242fad23bba51657b34e46c54b436c9cc48a54de4abd8c304ad3a
3
+ metadata.gz: edbe7a44124e9de5b47af96558b70b82e36faba4b0da6cbca0542b1f5b43e82d
4
+ data.tar.gz: 2af89f6cacfae27afa9dd65ce6d3c991de9d40063609615e4435c1eb1dc9ebb9
5
5
  SHA512:
6
- metadata.gz: f1ea8d9d9b5eb0cfc566a497e06d09e3bfcfa7cd8a617134c7da91bb84e67b3bf6c57bcdd1b2654a52f2dcb9eea34e7e8b358eee0cd7e26131ef5b8cf8b22052
7
- data.tar.gz: 1546ca41e1d44809a45685d846f6de98c42aea2a510218e3aae726a3508fa71209c0fce39006d3cec5910940788aeafc886dcef79405532f0628c142c9b01f3f
6
+ metadata.gz: 2a390fa29185a9aa44c965fe194665f0a0926504d3de7c98c3d99afe7187af1313f383834578a96d8da19b755543d37279861def9cc8b91dd5586da6eb84004b
7
+ data.tar.gz: 0c51f8c2a3cf6d57dbf89f0b741fc01b48b054ca850e551c165c86ec78d0a2a1257dbad92ebd3c0f25f7e4d2ef504aa33c83cc2725fc644903b747d60f5043ad
@@ -0,0 +1,45 @@
1
+ name: CI
2
+
3
+ "on":
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches: "*"
9
+
10
+ jobs:
11
+ build:
12
+ name: Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}
13
+
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ ruby: ["3.0", "3.1", "3.2", "3.3"]
18
+ rails: ["6.1", "7.0", "7.1", "main"]
19
+ continue-on-error: [false]
20
+
21
+ env:
22
+ RAILS_VERSION: ${{ matrix.rails }}
23
+
24
+ runs-on: "ubuntu-latest"
25
+
26
+ steps:
27
+ - uses: actions/checkout@v3
28
+ - uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{ matrix.ruby }}
31
+
32
+ - name: Generate lockfile
33
+ run: bundle lock
34
+
35
+ - name: Cache dependencies
36
+ uses: actions/cache@v3
37
+ with:
38
+ path: vendor/bundle
39
+ key: bundle-${{ hashFiles('Gemfile.lock') }}
40
+
41
+ - run: bundle check || bundle install
42
+
43
+ - name: Run rspec tests
44
+ run: bundle exec rspec
45
+ continue-on-error: ${{ matrix.continue-on-error }}
data/Gemfile CHANGED
@@ -1,4 +1,14 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ rails_version = ENV.fetch("RAILS_VERSION", "7.1")
4
+
5
+ if rails_version == "main"
6
+ rails_constraint = { github: "rails/rails" }
7
+ else
8
+ rails_constraint = "~> #{rails_version}.0"
9
+ end
10
+
11
+ gem "rails", rails_constraint
12
+
3
13
  # Specify your gem's dependencies in title.gemspec
4
14
  gemspec
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Caleb Thompson
1
+ Copyright (c) 2013 Caleb Hearth
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # Title
2
2
 
3
- [![Build Status](https://travis-ci.org/calebthompson/title.svg)](https://travis-ci.org/calebthompson/title)
4
- [![Code Climate](https://codeclimate.com/github/calebthompson/title.svg)](https://codeclimate.com/github/calebthompson/title)
5
- [![Coverage Status](https://coveralls.io/repos/calebthompson/title/badge.svg)](https://coveralls.io/r/calebthompson/title)
6
-
7
3
  Translations for \<title\>s!
8
4
 
9
5
  ## Usage
@@ -58,4 +54,4 @@ extremely similar approach, and from whence came the idea of using the view
58
54
  context to get local assigns to be used in interpolation.
59
55
 
60
56
  [Brandon Keepers]: https://github.com/bkeepers
61
- [Abusing Rails I18N to Set Page Titles]: http://opensoul.org/blog/archives/2012/11/05/abusing-rails-i18n-to-set-page-titles/
57
+ [Abusing Rails I18N to Set Page Titles]: https://opensoul.org/2012/11/05/abusing-rails-i18n-to-set-page-titles/
data/lib/title/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Title
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.10'
3
3
  end
data/lib/title.rb CHANGED
@@ -2,6 +2,7 @@ app = File.expand_path('../../app', __FILE__)
2
2
  $LOAD_PATH.unshift(app) unless $LOAD_PATH.include?(app)
3
3
 
4
4
  require 'title/version'
5
+ require 'active_support'
5
6
  require 'rails/engine'
6
7
  require 'title/engine'
7
8
  require 'helpers/title/title_helper'
@@ -1,6 +1,3 @@
1
- require 'coveralls'
2
- Coveralls.wear!
3
-
4
1
  require 'title'
5
2
 
6
3
  describe Title::TitleHelper do
data/title.gemspec CHANGED
@@ -7,23 +7,22 @@ require 'title/version'
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'title'
9
9
  spec.version = Title::VERSION
10
- spec.authors = ['Caleb Thompson']
11
- spec.email = ['caleb@calebthompson.io']
10
+ spec.authors = ['Caleb Hearth']
11
+ spec.email = ['caleb@calebhearth.com']
12
12
  spec.summary = 'I18n your <title>s'
13
13
  spec.description = 'Abuses I18n to set HTML <title>s'
14
- spec.homepage = 'https://github.com/calebthompson/title'
14
+ spec.homepage = 'https://github.com/calebhearth/title'
15
15
  spec.license = 'MIT'
16
16
 
17
17
  spec.files = `git ls-files`.split($/)
18
18
  spec.test_files = spec.files.grep(%r{^spec/})
19
19
  spec.require_paths = ['lib', 'app']
20
20
 
21
- spec.add_development_dependency 'bundler', '~> 1.3'
21
+ spec.add_development_dependency 'bundler'
22
22
  spec.add_development_dependency 'rake'
23
23
  spec.add_development_dependency 'rspec'
24
- spec.add_development_dependency 'coveralls'
25
- spec.add_development_dependency 'pry'
26
24
 
27
- spec.add_dependency 'rails', '>= 3.1'
25
+ spec.add_dependency 'activesupport', '>= 3.1'
26
+ spec.add_dependency 'railties', '>= 3.1'
28
27
  spec.add_dependency 'i18n'
29
28
  end
metadata CHANGED
@@ -1,31 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: title
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
- - Caleb Thompson
8
- autorequire:
7
+ - Caleb Hearth
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-20 00:00:00.000000000 Z
11
+ date: 2023-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.3'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.3'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - ">="
@@ -39,7 +25,7 @@ dependencies:
39
25
  - !ruby/object:Gem::Version
40
26
  version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
- name: rspec
28
+ name: rake
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
@@ -53,7 +39,7 @@ dependencies:
53
39
  - !ruby/object:Gem::Version
54
40
  version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
- name: coveralls
42
+ name: rspec
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - ">="
@@ -67,21 +53,21 @@ dependencies:
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
- name: pry
56
+ name: activesupport
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - ">="
74
60
  - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
61
+ version: '3.1'
62
+ type: :runtime
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - ">="
81
67
  - !ruby/object:Gem::Version
82
- version: '0'
68
+ version: '3.1'
83
69
  - !ruby/object:Gem::Dependency
84
- name: rails
70
+ name: railties
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - ">="
@@ -110,11 +96,12 @@ dependencies:
110
96
  version: '0'
111
97
  description: Abuses I18n to set HTML <title>s
112
98
  email:
113
- - caleb@calebthompson.io
99
+ - caleb@calebhearth.com
114
100
  executables: []
115
101
  extensions: []
116
102
  extra_rdoc_files: []
117
103
  files:
104
+ - ".github/workflows/ci.yml"
118
105
  - ".gitignore"
119
106
  - CONTRIBUTING.md
120
107
  - Gemfile
@@ -127,11 +114,11 @@ files:
127
114
  - lib/title/version.rb
128
115
  - spec/helpers/title_helper_spec.rb
129
116
  - title.gemspec
130
- homepage: https://github.com/calebthompson/title
117
+ homepage: https://github.com/calebhearth/title
131
118
  licenses:
132
119
  - MIT
133
120
  metadata: {}
134
- post_install_message:
121
+ post_install_message:
135
122
  rdoc_options: []
136
123
  require_paths:
137
124
  - lib
@@ -147,8 +134,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
134
  - !ruby/object:Gem::Version
148
135
  version: '0'
149
136
  requirements: []
150
- rubygems_version: 3.1.2
151
- signing_key:
137
+ rubygems_version: 3.4.21
138
+ signing_key:
152
139
  specification_version: 4
153
140
  summary: I18n your <title>s
154
141
  test_files: