rails_view_annotator 0.0.2 → 0.0.5
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.
|
@@ -4,7 +4,9 @@ module RailsViewAnnotator
|
|
|
4
4
|
klass.send(:define_method, :render) do |*args|
|
|
5
5
|
inner = render.bind(self).call(*args)
|
|
6
6
|
short_identifier = Pathname.new(identifier).relative_path_from Rails.root
|
|
7
|
-
|
|
7
|
+
if not inner.empty?
|
|
8
|
+
"<!-- begin: #{short_identifier} -->\n#{inner}<!-- end: #{short_identifier} -->".html_safe
|
|
9
|
+
end
|
|
8
10
|
end
|
|
9
11
|
klass.send(:include, InstanceMethods)
|
|
10
12
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_view_annotator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-02-
|
|
12
|
+
date: 2012-02-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: The Rails View Annotator makes it easy to find out which partial generated
|
|
15
15
|
which output
|
|
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
45
45
|
version: '0'
|
|
46
46
|
requirements: []
|
|
47
47
|
rubyforge_project: rails_view_annotator
|
|
48
|
-
rubygems_version: 1.8.
|
|
48
|
+
rubygems_version: 1.8.17
|
|
49
49
|
signing_key:
|
|
50
50
|
specification_version: 3
|
|
51
51
|
summary: Annotate Rails partial output with source path information
|