heading_with_title 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: e7e75808408afc7ae455d9b6b695e5be9a57f087
4
- data.tar.gz: 086da7a96bb02e8e3e3ca1088046151a495cedf2
3
+ metadata.gz: 5bd9062755809ef946f50ac9478b380a44c0609c
4
+ data.tar.gz: 31505b16befbfc56f15ab009108d1baeff771068
5
5
  SHA512:
6
- metadata.gz: b788c9bbf50703afb53e844b154174d53bbced8350ae7e685535978d830cbd73a31eb3e67e1c8c56f6cd6a2aaa557d05920b52732bc86af1bbc5cf1eaec54699
7
- data.tar.gz: bcd32cf7dc0aeb8227ff9869858def12da7e9af672bf3e1fcaf3d43a264986ed755696c96f8c566aa377e1f88fdcad9d3cec7cb2240a32126074211a69ae2c50
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.name }
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.
@@ -1,3 +1,3 @@
1
1
  module HeadingWithTitle
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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.name }
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.name }
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, :name).and_return('AwesomeApp')
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.2
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-27 00:00:00.000000000 Z
11
+ date: 2013-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails