heading_with_title 0.0.2 → 0.0.3
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/README.md +5 -2
- data/lib/heading_with_title/version.rb +1 -1
- data/lib/heading_with_title.rb +2 -2
- data/spec/heading_with_title/helpers_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bd9062755809ef946f50ac9478b380a44c0609c
|
4
|
+
data.tar.gz: 31505b16befbfc56f15ab009108d1baeff771068
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 476dc227e90467e50d30de6c5a603217f4b511104f151937da5504c8bf708c6334adc5547932a2ff1bb6bd777282fb85c6755d4bdfcf117d07243005ccaebd38
|
7
|
+
data.tar.gz: 369585603db4f6791e549fc160605a7c8864bb0115c5c8bae4683f917456d1363bd036a8659cb89d81718958cba8ab2c22f6327e323d692bbc1fa1314d440ff7
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ First, put this line in your `Gemfile`:
|
|
10
10
|
gem 'heading_with_title'
|
11
11
|
```
|
12
12
|
|
13
|
-
Then run `bundle install` to update your application's bundle
|
13
|
+
Then run `bundle install` to update your application's bundle.
|
14
14
|
|
15
15
|
## Usage
|
16
16
|
|
@@ -57,7 +57,7 @@ HeadingWithTitle.configure do |config|
|
|
57
57
|
|
58
58
|
# Title suffix that shown at the end of page title
|
59
59
|
# Accepts String or Proc
|
60
|
-
config.title_suffix = ->{ Rails.application.
|
60
|
+
config.title_suffix = ->{ Rails.application.class.parent_name }
|
61
61
|
|
62
62
|
# Default heading size (h1 by default)
|
63
63
|
config.default_heading_size = :h1
|
@@ -74,6 +74,9 @@ end
|
|
74
74
|
|
75
75
|
## Changelog
|
76
76
|
|
77
|
+
### 0.0.3
|
78
|
+
* Bugfix: Fix Rails application name obtaining
|
79
|
+
|
77
80
|
### 0.0.2
|
78
81
|
* Ability to call `heading_with_title` without arguments. It uses I18n translation in this case.
|
79
82
|
* Support for I18n interpolation.
|
data/lib/heading_with_title.rb
CHANGED
@@ -47,7 +47,7 @@ require "action_view"
|
|
47
47
|
#
|
48
48
|
# # Title suffix that shown at the end of page title
|
49
49
|
# # Accepts String or Proc
|
50
|
-
# config.title_suffix = ->{ Rails.application.
|
50
|
+
# config.title_suffix = ->{ Rails.application.class.parent_name }
|
51
51
|
#
|
52
52
|
# # Default heading size (h1 by default)
|
53
53
|
# config.default_heading_size = :h1
|
@@ -69,7 +69,7 @@ module HeadingWithTitle
|
|
69
69
|
|
70
70
|
# Title suffix that shown at the end of page title
|
71
71
|
mattr_accessor :title_suffix
|
72
|
-
@@title_suffix = ->{ Rails.application.
|
72
|
+
@@title_suffix = ->{ Rails.application.class.parent_name }
|
73
73
|
|
74
74
|
# Default heading size (h1 by default)
|
75
75
|
mattr_accessor :default_heading_size
|
@@ -14,7 +14,7 @@ describe HeadingWithTitle::Helpers do
|
|
14
14
|
include HeadingWithTitle::Helpers
|
15
15
|
|
16
16
|
before do
|
17
|
-
Rails.stub_chain(:application, :
|
17
|
+
Rails.stub_chain(:application, :class, :parent_name).and_return('AwesomeApp')
|
18
18
|
end
|
19
19
|
|
20
20
|
describe '.page_title' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heading_with_title
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kozloff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|