slugifier 1.1.0 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 598069f18fce8279b222b39e1c6fa55e75b859f7
4
- data.tar.gz: e077ad778cc527e6bae806ce48fbdc3461654fc0
3
+ metadata.gz: b42e838a8396b48cab61e3985cbe5400c43c68c2
4
+ data.tar.gz: 083ca2190829f65db41b599fec375b00eccfe4d7
5
5
  SHA512:
6
- metadata.gz: 1ebf17ca1b1c2e01f6b002bce7a2f4d8068a231646b3ed69faf5b3c565338dd319e6739b5a64506cae0ecdead79782a095e29c2be6fbc0d810d461c3db6f6bd6
7
- data.tar.gz: 1c959a2639b5d838c61fe5d5b9182268db5b61482bcd5f5cf79a4607d822495f2d5b51c0a065f277ad47167befe7aaf21f1ec6922550a17590623f7860c8a3a4
6
+ metadata.gz: 8a42989a26adf7df2987c776a235a1d63598773da24ed325ac08995fed01e566145deba27839f64583d4c9513d73b8725e3d9ad9adb91c15b9135a3f98bc91ac
7
+ data.tar.gz: b644de69d48f3dfe3ce20793c806c39be69b5790bd8512749419d5d5dca9318795f5aafe0f578cacae27cefcb6ffd70bc17a389a726b4e54dc3f66874b274b8a
data/lib/slugifier.rb CHANGED
@@ -17,7 +17,7 @@ class Slugifier
17
17
  end
18
18
 
19
19
  def self.transliterate(string)
20
- transliteration = string
20
+ transliteration = string.dup
21
21
  table.each { |character, translit| transliteration.gsub!(character, translit) }
22
22
  transliteration
23
23
  end
@@ -5,6 +5,14 @@ describe Slugifier do
5
5
  examples.each { |string, slug| expect(Slugifier.slugify(string)).to eq(slug) }
6
6
  end
7
7
 
8
+ it "doesn't modify the given string object" do
9
+ string = "Word"
10
+
11
+ Slugifier.slugify(string)
12
+
13
+ expect(string).to eq("Word")
14
+ end
15
+
8
16
  def examples
9
17
  [
10
18
  ["Word", "word"],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slugifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Gimenez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-14 00:00:00.000000000 Z
11
+ date: 2015-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec