title 0.0.8 → 0.0.9

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: a5223d4bc45bb6bde8e268cb533e675a4a77628b85518151e10d1033f20ef341
4
- data.tar.gz: 9fc368e00d9242fad23bba51657b34e46c54b436c9cc48a54de4abd8c304ad3a
3
+ metadata.gz: 90cbc40b402c00597bbf47a9637eb5a1361b70ca679d7268fa6391d8702d35a8
4
+ data.tar.gz: 194ed85c40d3ad13a538f3be9f99124eab853b908f2a7bf9b5d881b2e143afcf
5
5
  SHA512:
6
- metadata.gz: f1ea8d9d9b5eb0cfc566a497e06d09e3bfcfa7cd8a617134c7da91bb84e67b3bf6c57bcdd1b2654a52f2dcb9eea34e7e8b358eee0cd7e26131ef5b8cf8b22052
7
- data.tar.gz: 1546ca41e1d44809a45685d846f6de98c42aea2a510218e3aae726a3508fa71209c0fce39006d3cec5910940788aeafc886dcef79405532f0628c142c9b01f3f
6
+ metadata.gz: 4d81ca5ae9e0be311e2b0032e47a08f7b47e4dbd57cf3c6b82475d492ea36ea9c3b3fa13134ec6c2604a171c4d96f22678a5cbfe961f17cf7380ba4d70cbb0a7
7
+ data.tar.gz: 062ce6f86129d3ed849ad2b67e4b6b488a3ac6392bbb2f2ff1f7e51ec7cce8df879c32f3ec7620888cd5b50e7e9b1e3f4718a0884cd9a152aae353c6d5b5a4fe
@@ -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.9'
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,22 +7,20 @@ 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
25
  spec.add_dependency 'rails', '>= 3.1'
28
26
  spec.add_dependency 'i18n'
metadata CHANGED
@@ -1,45 +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.9
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-10-26 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
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
15
  requirement: !ruby/object:Gem::Requirement
44
16
  requirements:
45
17
  - - ">="
@@ -53,7 +25,7 @@ dependencies:
53
25
  - !ruby/object:Gem::Version
54
26
  version: '0'
55
27
  - !ruby/object:Gem::Dependency
56
- name: coveralls
28
+ name: rake
57
29
  requirement: !ruby/object:Gem::Requirement
58
30
  requirements:
59
31
  - - ">="
@@ -67,7 +39,7 @@ dependencies:
67
39
  - !ruby/object:Gem::Version
68
40
  version: '0'
69
41
  - !ruby/object:Gem::Dependency
70
- name: pry
42
+ name: rspec
71
43
  requirement: !ruby/object:Gem::Requirement
72
44
  requirements:
73
45
  - - ">="
@@ -110,11 +82,12 @@ dependencies:
110
82
  version: '0'
111
83
  description: Abuses I18n to set HTML <title>s
112
84
  email:
113
- - caleb@calebthompson.io
85
+ - caleb@calebhearth.com
114
86
  executables: []
115
87
  extensions: []
116
88
  extra_rdoc_files: []
117
89
  files:
90
+ - ".github/workflows/ci.yml"
118
91
  - ".gitignore"
119
92
  - CONTRIBUTING.md
120
93
  - Gemfile
@@ -127,11 +100,11 @@ files:
127
100
  - lib/title/version.rb
128
101
  - spec/helpers/title_helper_spec.rb
129
102
  - title.gemspec
130
- homepage: https://github.com/calebthompson/title
103
+ homepage: https://github.com/calebhearth/title
131
104
  licenses:
132
105
  - MIT
133
106
  metadata: {}
134
- post_install_message:
107
+ post_install_message:
135
108
  rdoc_options: []
136
109
  require_paths:
137
110
  - lib
@@ -147,8 +120,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
120
  - !ruby/object:Gem::Version
148
121
  version: '0'
149
122
  requirements: []
150
- rubygems_version: 3.1.2
151
- signing_key:
123
+ rubygems_version: 3.4.21
124
+ signing_key:
152
125
  specification_version: 4
153
126
  summary: I18n your <title>s
154
127
  test_files: