active_decorator 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,11 +3,11 @@ module ActiveDecorator
3
3
  def method_missing(method, *args, &block)
4
4
  super
5
5
  #TODO need to make sure who raised the error?
6
- rescue NoMethodError => no_method_error
6
+ rescue NoMethodError, NameError => original_error
7
7
  begin
8
8
  ActiveDecorator::ViewContext.current.send method, *args, &block
9
- rescue NoMethodError
10
- raise no_method_error
9
+ rescue NoMethodError, NameError
10
+ raise original_error
11
11
  end
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveDecorator
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
@@ -52,7 +52,7 @@ module BookDecorator
52
52
  end
53
53
 
54
54
  def link
55
- link_to title, 'http://example.com'
55
+ link_to title, "#{request.protocol}#{request.host_with_port}/assets/sample.png"
56
56
  end
57
57
 
58
58
  def cover_image
metadata CHANGED
@@ -1,33 +1,23 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: active_decorator
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 2
10
- version: 0.3.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Akira Matsuda
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-04-02 00:00:00 Z
12
+ date: 2012-07-18 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
14
  description: A simple and Rubyish view helper for Rails 3
22
- email:
15
+ email:
23
16
  - ronnie@dio.jp
24
17
  executables: []
25
-
26
18
  extensions: []
27
-
28
19
  extra_rdoc_files: []
29
-
30
- files:
20
+ files:
31
21
  - .gitignore
32
22
  - .rspec
33
23
  - .travis.yml
@@ -64,38 +54,29 @@ files:
64
54
  - spec/spec_helper.rb
65
55
  homepage: https://github.com/amatsuda/active_decorator
66
56
  licenses: []
67
-
68
57
  post_install_message:
69
58
  rdoc_options: []
70
-
71
- require_paths:
59
+ require_paths:
72
60
  - lib
73
- required_ruby_version: !ruby/object:Gem::Requirement
61
+ required_ruby_version: !ruby/object:Gem::Requirement
74
62
  none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 3
79
- segments:
80
- - 0
81
- version: "0"
82
- required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
68
  none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
89
- - 0
90
- version: "0"
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
91
73
  requirements: []
92
-
93
74
  rubyforge_project: active_decorator
94
- rubygems_version: 1.8.10
75
+ rubygems_version: 1.8.24
95
76
  signing_key:
96
77
  specification_version: 3
97
78
  summary: A simple and Rubyish view helper for Rails 3
98
- test_files:
79
+ test_files:
99
80
  - spec/fake_app/authors/index.html.erb
100
81
  - spec/fake_app/authors/show.html.erb
101
82
  - spec/fake_app/books/_book.html.erb