cloudclone 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ class Cloudclone::Group
21
21
 
22
22
  private
23
23
  def app_names
24
- all_app_names.select{ |n| n =~ /^cc-#{@group_name}-\d$/ }
24
+ all_app_names.select{ |n| n =~ /^cc-#{@group_name}-\d+$/ }
25
25
  end
26
26
 
27
27
  def all_app_names
@@ -1,3 +1,3 @@
1
1
  module Cloudclone
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -2,7 +2,7 @@ describe Cloudclone::Group do
2
2
 
3
3
  let(:group_name) { "group-name" }
4
4
  let(:heroku) { mock(Heroku::Client).as_null_object }
5
- subject { Cloudclone::Group.new("group-name", heroku) }
5
+ subject { Cloudclone::Group.new(group_name, heroku) }
6
6
 
7
7
  describe "#new" do
8
8
  it "should receive group name and Heroku object" do
@@ -32,8 +32,8 @@ describe Cloudclone::Group do
32
32
 
33
33
  describe "#request" do
34
34
  it "should request with provide link as url paramter to servers" do
35
- app_names = ["cc-app-1", "cc-app-2", "cc-app-3"]
36
- subject.stub(:app_names).and_return(app_names)
35
+ app_names = (1..20).map{ |i| "cc-#{group_name}-#{i}" }
36
+ subject.stub(:all_app_names).and_return(app_names)
37
37
  app_names.each do |n|
38
38
  RestClient.should_receive(:get).with("http://#{n}.heroku.com/?url=http://www.google.com")
39
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudclone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70172937666360 !ruby/object:Gem::Requirement
16
+ requirement: &70346891901800 !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: :development
23
23
  prerelease: false
24
- version_requirements: *70172937666360
24
+ version_requirements: *70346891901800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: webmock
27
- requirement: &70172937665920 !ruby/object:Gem::Requirement
27
+ requirement: &70346891901360 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70172937665920
35
+ version_requirements: *70346891901360
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: heroku
38
- requirement: &70172937665420 !ruby/object:Gem::Requirement
38
+ requirement: &70346891900840 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70172937665420
46
+ version_requirements: *70346891900840
47
47
  description: This gem enable you to easily utilize free Heroku apps to build your
48
48
  own web load testing servers.
49
49
  email: