capify-ec2 1.2.4.pre → 1.2.4.pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Changelog.md CHANGED
@@ -7,6 +7,7 @@ Features:
7
7
  Bugfixes:
8
8
 
9
9
  - Options flag not properly recognized.
10
+ - Fixed longstanding issue of handling comma-separated roles
10
11
 
11
12
  ## 1.2.2 (Dec 05, 2011)
12
13
 
data/lib/capify-ec2.rb CHANGED
@@ -44,7 +44,7 @@ class CapifyEc2
44
44
  end
45
45
 
46
46
  def get_instances_by_role(role)
47
- desired_instances.select {|instance| instance.roles == role.to_s rescue false}
47
+ desired_instances.select {|instance| instance.roles.split(',').include?(role.to_s) rescue false}
48
48
  end
49
49
 
50
50
  def get_instances_by_region(roles, region)
@@ -1,5 +1,5 @@
1
1
  module Capify
2
2
  module Ec2
3
- VERSION = "1.2.4.pre"
3
+ VERSION = "1.2.4.pre.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capify-ec2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 961915988
4
+ hash: 1923831949
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
9
  - 4
10
10
  - pre
11
- version: 1.2.4.pre
11
+ - 2
12
+ version: 1.2.4.pre.2
12
13
  platform: ruby
13
14
  authors:
14
15
  - Noah Cantor