jeanny 0.99.7 → 0.99.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jeanny/engine.rb +11 -0
- metadata +4 -6
data/lib/jeanny/engine.rb
CHANGED
@@ -222,6 +222,13 @@ module Jeanny
|
|
222
222
|
|
223
223
|
def replace classes
|
224
224
|
|
225
|
+
skips = Array.new
|
226
|
+
|
227
|
+
@code.gsub! /(\s*\/\*\s*jeanny-ignore\s*\*\/\s*)\s*(.*?)\s*\1/ do |match|
|
228
|
+
skips.push $2
|
229
|
+
"_skip_#{skips.length}_"
|
230
|
+
end
|
231
|
+
|
225
232
|
strings = Array.new
|
226
233
|
each_string do |string|
|
227
234
|
after = string.dup
|
@@ -238,6 +245,10 @@ module Jeanny
|
|
238
245
|
@code[@code.index(string), string.length] = after unless string.eql? after
|
239
246
|
|
240
247
|
end
|
248
|
+
|
249
|
+
skips.each_with_index do |code, index|
|
250
|
+
@code.gsub! /_skip_#{index + 1}_/, code
|
251
|
+
end
|
241
252
|
|
242
253
|
@code
|
243
254
|
|
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.99.
|
4
|
+
version: 0.99.8
|
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: 2010-04-
|
12
|
+
date: 2010-04-21 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -29,8 +29,6 @@ files:
|
|
29
29
|
- lib/jeanny/extend.rb
|
30
30
|
has_rdoc: true
|
31
31
|
homepage: http://github.com/gfranco/jeanny
|
32
|
-
licenses: []
|
33
|
-
|
34
32
|
post_install_message:
|
35
33
|
rdoc_options:
|
36
34
|
- --inline-source
|
@@ -52,9 +50,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
50
|
requirements: []
|
53
51
|
|
54
52
|
rubyforge_project:
|
55
|
-
rubygems_version: 1.3.
|
53
|
+
rubygems_version: 1.3.1
|
56
54
|
signing_key:
|
57
|
-
specification_version:
|
55
|
+
specification_version: 2
|
58
56
|
summary: Lib for obfuscation css class names
|
59
57
|
test_files: []
|
60
58
|
|