context_help 0.0.6 → 0.0.7
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.
- data/lib/context_help/base.rb +5 -1
- data/lib/context_help/version.rb +1 -1
- metadata +2 -2
data/lib/context_help/base.rb
CHANGED
|
@@ -142,11 +142,15 @@ module ContextHelp
|
|
|
142
142
|
end
|
|
143
143
|
end
|
|
144
144
|
found = false
|
|
145
|
+
last = nil
|
|
145
146
|
@help_items.each do |item|
|
|
146
147
|
found = (item[:calculated_path] == options[:calculated_path])
|
|
148
|
+
last = item
|
|
147
149
|
break if found
|
|
148
150
|
end
|
|
149
|
-
if
|
|
151
|
+
if found
|
|
152
|
+
options.update(last)
|
|
153
|
+
else
|
|
150
154
|
options[:show_inline] ||= get_option(:show_inline, options)
|
|
151
155
|
options[:title_tag] ||= get_option(:title_tag, options)
|
|
152
156
|
options[:title_class] ||= get_option(:title_class, options)
|
data/lib/context_help/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: context_help
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
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: 2011-09-
|
|
12
|
+
date: 2011-09-19 00:00:00.000000000 -03:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
description: ContextHelp is a gem that allows you to show inline or aside help about
|