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 +1 -1
- data/lib/smart_name.rb +1 -1
- data/spec/lib/smart_name_spec.rb +2 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/lib/smart_name.rb
CHANGED
data/spec/lib/smart_name_spec.rb
CHANGED
@@ -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.
|
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-
|
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:
|
147
|
+
hash: 2420408825854435848
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|