way 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. data/lib/way.rb +2 -2
  2. metadata +38 -21
data/lib/way.rb CHANGED
@@ -18,7 +18,7 @@ module ActionView
18
18
 
19
19
  content = layout.render(view, locals){ content } if layout
20
20
 
21
- if @view.controller.params.has_key? '_way'
21
+ if @view.controller && @view.controller.params.has_key?('_way')
22
22
  content << "#{@template.inspect}"
23
23
  end
24
24
 
@@ -39,7 +39,7 @@ module ActionView
39
39
  partial_template = _pick_partial_template(partial_path)
40
40
  partial_content = partial_template.render_partial(self, options[:object], local_assigns)
41
41
 
42
- if self.controller.params.has_key? '_way'
42
+ if self.controller && self.controller.params.has_key?('_way')
43
43
  partial_content << "app/views/#{partial_template.to_s}"
44
44
  end
45
45
 
metadata CHANGED
@@ -1,45 +1,62 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: way
3
- version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 1
8
+ - 1
9
+ version: 1.1.1
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Caleb Cohoon
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2012-04-28 00:00:00.000000000 Z
16
+
17
+ date: 2012-05-02 00:00:00 -07:00
18
+ default_executable:
13
19
  dependencies: []
20
+
14
21
  description:
15
22
  email: calebcohoon@gmail.com
16
23
  executables: []
24
+
17
25
  extensions: []
26
+
18
27
  extra_rdoc_files: []
19
- files:
28
+
29
+ files:
20
30
  - lib/way.rb
31
+ has_rdoc: true
21
32
  homepage:
22
33
  licenses: []
34
+
23
35
  post_install_message:
24
36
  rdoc_options: []
25
- require_paths:
37
+
38
+ require_paths:
26
39
  - lib
27
- required_ruby_version: !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
- required_rubygems_version: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
53
+ version: "0"
39
54
  requirements: []
55
+
40
56
  rubyforge_project:
41
- rubygems_version: 1.8.23
57
+ rubygems_version: 1.3.6
42
58
  signing_key:
43
59
  specification_version: 3
44
60
  summary: Find partials in your Rails app easily!
45
61
  test_files: []
62
+