turkish_support 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e462ea6658063408935a25bab7ac3ec2b4b2ec30
4
- data.tar.gz: 3067e7df0ac8d20abe546c1ef2c2b11341f7bd83
3
+ metadata.gz: 43851942674f62fa0813b9b375fc7818e708b09c
4
+ data.tar.gz: bff6392ac58857338f443ec026e0742d6d45553f
5
5
  SHA512:
6
- metadata.gz: ce620744b8b42db62a4dbb7b8d4cb0694145d18d3fc632a431f06479f2e8b9c85c7ef738627f0ebb211c701723caf0a581f6f2e2c0d9ee237b56bb014c53a200
7
- data.tar.gz: 052a5c8edc082be0282c6412413cae98fddcf075f998ffffb346ed7d0efce472988b12ac44735a2b4f6139ca6bee310a3411400ef8dd16447858841f03ff4f67
6
+ metadata.gz: 88993b5f019d0ffe243951205287b29b5cd7d47ceb5d52fe99c45c3dbeed9504ea38b2c225901f21acd3a120c8a1877370dc3fd82b619ebea530ba7d65267e0e
7
+ data.tar.gz: 7081eefa5a634acbf51569374e2e86952313dafb20bd6d2304933d4eac44d53aaf5750c2370ecf1a8dbbc8242764ca43f98e28e387b41165cf8bcd8a600e745e
@@ -1,10 +1,10 @@
1
1
  module TurkishSupport
2
- DOWNCASED_ALPHABET = 'abcçdefgğhıijklmnoöprsştuüvyz'
3
- UPCASED_ALPHABET = 'ABCÇDEFGĞHIİJKLMNOÖPRSŞTUÜVYZ'
2
+ DOWNCASED_ALPHABET = 'abcçdefgğhıijklmnoöpqrsştuüvwxyz'
3
+ UPCASED_ALPHABET = 'ABCÇDEFGĞHIİJKLMNOÖPQRSŞTUÜVWXYZ'
4
4
 
5
5
  UNSUPPORTED_DOWNCASE_CHARS = 'çğıiöşü'
6
6
  UNSUPPORTED_UPCASE_CHARS = 'ÇĞIİÖŞÜ'
7
- ORDERED_CHARS = 'AaBbCcÇçDdEeFfGgĞğHhIıİiJjKkLlMmNnOoÖöPpQqRrSsŞşTtUuÜüVvWwXxYyZz'
7
+ ORDERED_CHARS = UPCASED_ALPHABET + DOWNCASED_ALPHABET
8
8
 
9
9
  DESTRUCTIVE_STRING_METHODS = %i(capitalize downcase swapcase titleize upcase)
10
10
  DESTRUCTIVE_ARRAY_METHODS = %i(sort)
@@ -1,3 +1,3 @@
1
1
  module TurkishSupport
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -182,8 +182,8 @@ module TurkishSupport
182
182
  describe Array do
183
183
  let(:unsorted_array1) { %w(bağcılar bahçelievler şimdi çüNKÜ olmalı üç\ kere düş ılık duy) }
184
184
  let(:sorted_array1) { %w(bağcılar bahçelievler çüNKÜ duy düş ılık olmalı şimdi üç\ kere) }
185
- let(:unsorted_array2) { %w(iki üç dört ılık iğne iyne ul) }
186
- let(:sorted_array2) { %w(dört ılık iğne iki iyne ul üç) }
185
+ let(:unsorted_array2) { %w(iki Üç dört ılık İğne iyne Ul) }
186
+ let(:sorted_array2) { %w(İğne Ul Üç dört ılık iki iyne) }
187
187
 
188
188
  describe "#sort" do
189
189
  context "with non-destructive version" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turkish_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sıtkı Bağdat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-12 00:00:00.000000000 Z
11
+ date: 2014-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -73,7 +73,6 @@ files:
73
73
  - lib/turkish_support/destructives.rb
74
74
  - lib/turkish_support/string/capitalize.rb
75
75
  - lib/turkish_support/string/casecmp.rb
76
- - lib/turkish_support/string/destructives.rb
77
76
  - lib/turkish_support/string/downcase.rb
78
77
  - lib/turkish_support/string/helpers.rb
79
78
  - lib/turkish_support/string/match.rb
@@ -1,17 +0,0 @@
1
- module TurkishSupport
2
- refine String do
3
- DESTRUCTIVE_STRING_METHODS.each do |method_name|
4
- define_method "#{method_name}!" do
5
- send(:replace, eval("#{method_name}"))
6
- end
7
- end
8
- end
9
-
10
- refine Array do
11
- DESTRUCTIVE_ARRAY_METHODS.each do |method_name|
12
- define_method "#{method_name}!" do
13
- send(:replace, eval("#{method_name}"))
14
- end
15
- end
16
- end
17
- end