jeanny 0.99.9 → 0.99.10
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 +8 -1
- metadata +3 -3
data/lib/jeanny/engine.rb
CHANGED
@@ -26,7 +26,14 @@ module Jeanny
|
|
26
26
|
# Находим имена классов
|
27
27
|
file_meat.gsub(/\.([^\.,\{\} :#\[\]\*\n\s\/]+)/) do |match|
|
28
28
|
# Если найденная строка соответствует маске и класс еще не был добавлен — добавляем его
|
29
|
-
|
29
|
+
#@classes[$1] = short_words.shift if match =~ /^\.([a-z]-.+)$/ and not(@classes.include? $1) and not($1 =~ /^g-hidden/)
|
30
|
+
if match =~ /^\.([a-z]-.+)$/
|
31
|
+
name = $1
|
32
|
+
#unless @classes.include? name
|
33
|
+
unless @classes.include? name or name =~ /^(g-hidden|b-keyboard)/
|
34
|
+
@classes[name] = short_words.shift
|
35
|
+
end
|
36
|
+
end
|
30
37
|
end
|
31
38
|
|
32
39
|
fail JeannyClassesNotFound, "похоже, что в анализируемом файле нет классов подходящих по условию" if @classes.empty?
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 99
|
8
|
-
-
|
9
|
-
version: 0.99.
|
8
|
+
- 10
|
9
|
+
version: 0.99.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- gfranco
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-30 00:00:00 +03:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|