studio_api 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.1
1
+ 3.2.2
@@ -55,7 +55,9 @@ module StudioApi
55
55
  if enabled == "false"
56
56
  "<firewall><enabled>false</enabled></firewall>"
57
57
  else
58
- openports_xml = open_port.reduce(""){ |acc,p| acc << "<open_port>#{p}</open_port>" } #FIXME escape name
58
+ #open port can be array or single string
59
+ ports = open_port.is_a?(String) ? [open_port] : open_port
60
+ openports_xml = ports.map{ |p| "<open_port>#{p}</open_port>" }.join("") #FIXME escape name
59
61
  "<firewall><enabled>true</enabled>#{openports_xml}</firewall>"
60
62
  end
61
63
  end
@@ -1,3 +1,9 @@
1
+ -------------------------------------------------------------------
2
+ Mon Nov 5 17:44:15 UTC 2012 - jreidinger@suse.com
3
+
4
+ - fix serialization of open perts in case there is just one port
5
+ - 3.2.2
6
+
1
7
  -------------------------------------------------------------------
2
8
  Wed Oct 3 16:09:18 UTC 2012 - jreidinger@suse.com
3
9
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: studio_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
- - 1
10
- version: 3.2.1
9
+ - 2
10
+ version: 3.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josef Reidinger
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-29 00:00:00 Z
18
+ date: 2012-11-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activeresource