neuron 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,17 +25,17 @@ module Neuron
25
25
  def page_title(title = nil, options = {})
26
26
  options = default_options.merge(options)
27
27
  options = options.merge(default: navigation_title(title, options))
28
- @page_title ||= title || view.t('.title', options)
28
+ @page_title ||= title.to_s || view.t('.title', options)
29
29
  end
30
30
 
31
31
  def navigation_title(title = nil, options = {})
32
32
  options = {default: @page_title || view.view_name.humanize}.merge(default_options).merge(options)
33
- @navigation_title ||= title || self.class.navigation_title(view.controller_i18n_scope, view.view_name, options)
33
+ @navigation_title ||= title.to_s || self.class.navigation_title(view.controller_i18n_scope, view.view_name, options)
34
34
  end
35
35
 
36
36
  def head_title(title = nil, options = {})
37
37
  options = default_options.merge(options)
38
- @head_title ||= title || view.strip_tags([navigation_title, application.title].compact.join(options[:title_separator]))
38
+ @head_title ||= title.to_s || view.strip_tags([navigation_title, application.title].compact.join(options[:title_separator]))
39
39
  end
40
40
 
41
41
  protected
@@ -1,3 +1,3 @@
1
1
  module Neuron
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
data/neuron.gemspec CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_dependency 'rails', '~> 3.0'
22
+ s.add_dependency 'railties', '~> 3.0'
23
23
  s.add_development_dependency 'rake'
24
24
  end
metadata CHANGED
@@ -1,45 +1,49 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: neuron
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.10
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.0.11
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Alexander Semyonov
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-06-29 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rails
16
- requirement: &81592100 !ruby/object:Gem::Requirement
12
+
13
+ date: 2011-09-04 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: railties
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
17
19
  none: false
18
- requirements:
20
+ requirements:
19
21
  - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '3.0'
22
+ - !ruby/object:Gem::Version
23
+ version: "3.0"
22
24
  type: :runtime
23
- prerelease: false
24
- version_requirements: *81592100
25
- - !ruby/object:Gem::Dependency
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
26
27
  name: rake
27
- requirement: &81591240 !ruby/object:Gem::Requirement
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
28
30
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
33
35
  type: :development
34
- prerelease: false
35
- version_requirements: *81591240
36
+ version_requirements: *id002
36
37
  description: Code reused in many applications
37
- email:
38
+ email:
38
39
  - al@semyonov.us
39
40
  executables: []
41
+
40
42
  extensions: []
43
+
41
44
  extra_rdoc_files: []
42
- files:
45
+
46
+ files:
43
47
  - .gitignore
44
48
  - Gemfile
45
49
  - Rakefile
@@ -65,34 +69,32 @@ files:
65
69
  - lib/neuron/version.rb
66
70
  - lib/neuron/view.rb
67
71
  - neuron.gemspec
68
- homepage: ''
72
+ homepage: ""
69
73
  licenses: []
74
+
70
75
  post_install_message:
71
76
  rdoc_options: []
72
- require_paths:
77
+
78
+ require_paths:
73
79
  - lib
74
- required_ruby_version: !ruby/object:Gem::Requirement
80
+ required_ruby_version: !ruby/object:Gem::Requirement
75
81
  none: false
76
- requirements:
77
- - - ! '>='
78
- - !ruby/object:Gem::Version
79
- version: '0'
80
- segments:
81
- - 0
82
- hash: 180076915
83
- required_rubygems_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: "0"
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
87
  none: false
85
- requirements:
86
- - - ! '>='
87
- - !ruby/object:Gem::Version
88
- version: '0'
89
- segments:
90
- - 0
91
- hash: 180076915
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: "0"
92
92
  requirements: []
93
+
93
94
  rubyforge_project: neuron
94
- rubygems_version: 1.8.5
95
+ rubygems_version: 1.8.10
95
96
  signing_key:
96
97
  specification_version: 3
97
98
  summary: Tools for decrease code duplication in rails applications
98
99
  test_files: []
100
+