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 CHANGED
@@ -1,3 +1,6 @@
1
+ == v0.2.2
2
+ * Fix bug in #close_window
3
+
1
4
  == v0.2.1
2
5
  * Enable #observe_dynamically_loaded_field for compatibility (outputs prototype)
3
6
 
@@ -13,5 +13,5 @@ module WindowRails
13
13
  end
14
14
  end
15
15
 
16
- VERSION = Version.new('0.2.1')
16
+ VERSION = Version.new('0.2.2')
17
17
  end
@@ -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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
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-07-19 00:00:00 -07:00
18
+ date: 2011-08-16 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency