jeanny 0.87 → 0.89
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.
- data/lib/jeanny/engine.rb +3 -2
- metadata +2 -2
data/lib/jeanny/engine.rb
CHANGED
@@ -85,6 +85,7 @@ module Jeanny
|
|
85
85
|
|
86
86
|
# Метод генерирует и возращает массив коротких имен.
|
87
87
|
# По умолчанию генерируется 38471 имя. Если надо больше, добавить — легко
|
88
|
+
# UPD: Уже меньше, так как классы которые начинаются на "ad" не используются
|
88
89
|
def generate_short_words again = false
|
89
90
|
|
90
91
|
short_words = []
|
@@ -92,7 +93,7 @@ module Jeanny
|
|
92
93
|
%w(a aa a0 a_ a- aaa a00 a0a aa0 aa_ a_a aa- a-a a0_ a0- a_0 a-0).each do |name|
|
93
94
|
max = name.length + 1
|
94
95
|
while name.length < max
|
95
|
-
short_words << name
|
96
|
+
short_words << name unless name =~ /^ad/
|
96
97
|
name = name.next
|
97
98
|
end
|
98
99
|
end
|
@@ -509,4 +510,4 @@ module Jeanny
|
|
509
510
|
|
510
511
|
end
|
511
512
|
|
512
|
-
end
|
513
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jeanny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "0.
|
4
|
+
version: "0.89"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gfranco
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-11-18 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|