smartname 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -233,7 +233,7 @@ class SmartName < Object
233
233
  if self.length == oldpart.length
234
234
  newpart
235
235
  else
236
- (newpart.parts+(parts[oldpart.length,].lines.to_a)).to_name
236
+ ( newpart.parts + parts[ oldpart.length..-1 ] ).to_name
237
237
  end
238
238
  else
239
239
  self
@@ -146,7 +146,8 @@ describe SmartName do
146
146
  'a+b'.to_name.replace_part('b','x').to_s.should == 'a+x'
147
147
  end
148
148
  it "replaces two name parts" do
149
- 'a+b+c'.to_name.replace_part('a+b','x').to_s.should == 'x+c'
149
+ 'a+b+c' .to_name.replace_part('a+b', 'x' ).to_s.should == 'x+c'
150
+ 'a+b+c+d'.to_name.replace_part('a+b', 'e+f').to_s.should == 'e+f+c+d'
150
151
  end
151
152
  it "doesn't replace two part tag" do
152
153
  'a+b+c'.to_name.replace_part('b+c','x').to_s.should == 'a+b+c'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartname
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-08 00:00:00.000000000 Z
13
+ date: 2013-10-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  segments:
146
146
  - 0
147
- hash: 3308579436600371163
147
+ hash: 2420408825854435848
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements: