profitbricks 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ === 0.5.1 / 2012-04-11
2
+
3
+ * 2 bug fixes:
4
+
5
+ * now stores 'false' attributes of an object correctly
6
+ * the Firewall class is now usable from the command line
7
+
1
8
  === 0.5.0 / 2012-04-11
2
9
 
3
10
  * 2 major enhancements:
@@ -2,7 +2,7 @@ module Profitbricks
2
2
  class Firewall < Profitbricks::Model
3
3
  has_many :rules, :class_name => :firewall_rule
4
4
 
5
- def initialize(hash, parent)
5
+ def initialize(hash, parent=nil)
6
6
  @parent = parent
7
7
  super(hash)
8
8
  end
@@ -11,7 +11,6 @@ module Profitbricks
11
11
  else
12
12
  initialize_getter(attribute, type_cast(hash[k]))
13
13
  end
14
-
15
14
  end
16
15
  end
17
16
 
@@ -77,7 +76,7 @@ module Profitbricks
77
76
  self.class.send :define_method, name do
78
77
  instance_variable_get("@#{name}")
79
78
  end
80
- self.instance_variable_set("@#{name}", value) if value
79
+ self.instance_variable_set("@#{name}", value) if value != nil
81
80
  end
82
81
 
83
82
  def initialize_association name, association, value
data/lib/profitbricks.rb CHANGED
@@ -13,7 +13,7 @@ require 'profitbricks/firewall'
13
13
  require 'profitbricks/rule'
14
14
 
15
15
  module Profitbricks
16
- VERSION = '0.5.0'
16
+ VERSION = '0.5.1'
17
17
  end
18
18
 
19
19
  PB = Profitbricks
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: profitbricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
16
- requirement: &17993060 !ruby/object:Gem::Requirement
16
+ requirement: &15492480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *17993060
24
+ version_requirements: *15492480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdoc
27
- requirement: &17990940 !ruby/object:Gem::Requirement
27
+ requirement: &15391660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.10'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *17990940
35
+ version_requirements: *15391660
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: hoe
38
- requirement: &17989460 !ruby/object:Gem::Requirement
38
+ requirement: &15390920 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '3.0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *17989460
46
+ version_requirements: *15390920
47
47
  description: A Ruby client for the ProfitBricks API.
48
48
  email:
49
49
  - git@dsander.de