ruby-lxc 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/ext/lxc/lxc.c +4 -1
  2. data/lib/lxc/version.rb +1 -1
  3. metadata +2 -2
data/ext/lxc/lxc.c CHANGED
@@ -1238,6 +1238,9 @@ container_config_item(VALUE self, VALUE rb_key)
1238
1238
  if (len1 < 0)
1239
1239
  rb_raise(Error, "invalid configuration key: %s", key);
1240
1240
 
1241
+ if (len1 == 0)
1242
+ return Qnil;
1243
+
1241
1244
  value = malloc(sizeof(char) * len1 + 1);
1242
1245
  if (value == NULL)
1243
1246
  rb_raise(rb_eNoMemError, "unable to allocate configuration value");
@@ -2121,7 +2124,7 @@ Init_lxc(void)
2121
2124
  rb_define_method(Container, "add_device_node",
2122
2125
  container_add_device_node, -1);
2123
2126
  rb_define_method(Container, "attach", container_attach, -1);
2124
- rb_define_method(Container, "clear_config", container_clear_config, -1);
2127
+ rb_define_method(Container, "clear_config", container_clear_config, 0);
2125
2128
  rb_define_method(Container, "clear_config_item",
2126
2129
  container_clear_config_item, 1);
2127
2130
  rb_define_method(Container, "clone", container_clone, -1);
data/lib/lxc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LXC
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-lxc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
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: 2014-05-20 00:00:00.000000000 Z
12
+ date: 2014-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler