paraduct 0.0.1.beta9 → 0.0.1.beta10

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,7 @@ module Paraduct
39
39
  end
40
40
 
41
41
  def job_name
42
- key_capitalized_params.map { |key, value| "#{key}_#{value}" }.join("_")
42
+ key_capitalized_params.map { |key, value| "#{key}_#{value}" }.join("_").gsub(%r([/ ]), "_")
43
43
  end
44
44
 
45
45
  def key_capitalized_params
@@ -1,3 +1,3 @@
1
1
  module Paraduct
2
- VERSION = "0.0.1.beta9"
2
+ VERSION = "0.0.1.beta10"
3
3
  end
@@ -75,4 +75,20 @@ DATABASE=mysql
75
75
 
76
76
  it{ should eq "ruby=1.9, database=mysql" }
77
77
  end
78
+
79
+ describe "#job_name" do
80
+ subject{ runner.job_name }
81
+
82
+ context "basic case" do
83
+ let(:params) { { "ruby" => "1.9", "database" => "mysql" } }
84
+
85
+ it { should eq "RUBY_1.9_DATABASE_mysql" }
86
+ end
87
+
88
+ context "containing slash" do
89
+ let(:params) { { "ruby" => "1.9", "gemfile" => "gemfiles/rails3_2.gemfile" } }
90
+
91
+ it { should eq "RUBY_1.9_GEMFILE_gemfiles_rails3_2.gemfile" }
92
+ end
93
+ end
78
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paraduct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta9
4
+ version: 0.0.1.beta10
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -369,7 +369,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
369
369
  version: '0'
370
370
  segments:
371
371
  - 0
372
- hash: 3796133375800499924
372
+ hash: -3937149399617201797
373
373
  required_rubygems_version: !ruby/object:Gem::Requirement
374
374
  none: false
375
375
  requirements: