window_rails 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +3 -0
- data/lib/window_rails/version.rb +1 -1
- data/lib/window_rails/window_rails_generators.rb +2 -2
- metadata +4 -4
data/CHANGELOG.rdoc
CHANGED
data/lib/window_rails/version.rb
CHANGED
@@ -334,11 +334,11 @@ module WindowRailsGenerators
|
|
334
334
|
# Close the window of the provided name or the last opened window
|
335
335
|
def close_window(options = {})
|
336
336
|
win_name = if(options.is_a?(Hash))
|
337
|
-
(options[:window] || options[:name]).to_s
|
337
|
+
[(options[:window] || options[:name]).to_s]
|
338
338
|
elsif(options.is_a?(Array))
|
339
339
|
options.map(&:to_s)
|
340
340
|
else
|
341
|
-
options.to_s
|
341
|
+
[options.to_s]
|
342
342
|
end
|
343
343
|
win_name.each do |win|
|
344
344
|
window(win) << '.dialog("close");'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: window_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Roberts
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-08-16 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|