appraisal 0.5.0 → 0.5.1

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.
@@ -48,7 +48,7 @@ module Appraisal
48
48
  end
49
49
 
50
50
  def clean_name
51
- name.gsub(/\s+/, '_').gsub(/[^\w]/, '')
51
+ name.gsub(/[^\w\.]/, '_')
52
52
  end
53
53
  end
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module Appraisal
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.5.1'.freeze
3
3
  end
@@ -9,8 +9,18 @@ describe Appraisal::Appraisal do
9
9
  appraisal.bundle_command.should == "bundle check --gemfile='/home/test/test directory' || bundle install --gemfile='/home/test/test directory'"
10
10
  end
11
11
 
12
- it "cleans up spaces and punctuation when outputting its gemfile" do
13
- appraisal = Appraisal::Appraisal.new("This! is my appraisal name.", "Gemfile")
14
- appraisal.gemfile_path.should =~ /This_is_my_appraisal_name.gemfile/
12
+ it "converts spaces to underscores in the gemfile path" do
13
+ appraisal = Appraisal::Appraisal.new("one two", "Gemfile")
14
+ appraisal.gemfile_path.should =~ /one_two\.gemfile$/
15
+ end
16
+
17
+ it "converts punctuation to underscores in the gemfile path" do
18
+ appraisal = Appraisal::Appraisal.new("o&ne!", "Gemfile")
19
+ appraisal.gemfile_path.should =~ /o_ne_\.gemfile$/
20
+ end
21
+
22
+ it "keeps dots in the gemfile path" do
23
+ appraisal = Appraisal::Appraisal.new("rails3.0", "Gemfile")
24
+ appraisal.gemfile_path.should =~ /rails3\.0\.gemfile$/
15
25
  end
16
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appraisal
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:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-31 00:00:00.000000000 Z
12
+ date: 2012-11-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  version: '0'
140
140
  segments:
141
141
  - 0
142
- hash: 3878235132907510848
142
+ hash: 2044545027023341244
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  none: false
145
145
  requirements:
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  segments:
150
150
  - 0
151
- hash: 3878235132907510848
151
+ hash: 2044545027023341244
152
152
  requirements: []
153
153
  rubyforge_project:
154
154
  rubygems_version: 1.8.24