struggle 1.3.2 → 1.3.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1436e4a5aecbbbb4431efc46245a375da5ba0e3
|
4
|
+
data.tar.gz: 4402a535ea229ff048af3bc7fceae6bcadbf10bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a398e2e064801e351e07a56779c165411313d913c7099554c49f1195f0abbd5bfa6618431aff6d73a93a7f1bd0ac557666fd9dd09f7746ced4ad3e1f6381fcd
|
7
|
+
data.tar.gz: b168e06e1fcf78dec2c8df0f5277c704191f876c1cde2d811db88c15a148962c16e4f88fe857943f84b87d552abc8595b8db1a0e05d7d63ac1cb0db5c3036850
|
@@ -1,4 +1,17 @@
|
|
1
1
|
module HtmlExtend
|
2
|
+
def self.set_eval_str(evalStr)
|
3
|
+
@evalStr = evalStr
|
4
|
+
end
|
5
|
+
|
6
|
+
def self.get_eval_str
|
7
|
+
@evalStr
|
8
|
+
end
|
9
|
+
module Help
|
10
|
+
def html_clear_extend(attr)
|
11
|
+
HtmlExtend.set_eval_str "self.#{attr}=html_clear(self.#{attr})"
|
12
|
+
before_save :save_extend
|
13
|
+
end
|
14
|
+
end
|
2
15
|
module Model
|
3
16
|
def save_extend
|
4
17
|
eval HtmlExtend.get_eval_str
|
@@ -19,4 +32,4 @@ module HtmlExtend
|
|
19
32
|
html.gsub(/<script.*?<\/script>/, "").gsub(/<iframe.*?<\/iframe>/, "")
|
20
33
|
end
|
21
34
|
end
|
22
|
-
end
|
35
|
+
end
|
data/struggle.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: struggle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lean
|
@@ -49,9 +49,7 @@ files:
|
|
49
49
|
- lib/struggle.rb
|
50
50
|
- lib/struggle/fileupload.rb
|
51
51
|
- lib/struggle/func.rb
|
52
|
-
- lib/struggle/html_extend.rb
|
53
|
-
- lib/struggle/html_extend/help.rb
|
54
|
-
- lib/struggle/html_extend/model.rb
|
52
|
+
- lib/struggle/html_extend/html_extend.rb
|
55
53
|
- lib/struggle/logistic.rb
|
56
54
|
- lib/struggle/pager.rb
|
57
55
|
- lib/struggle/pay_gateway.rb
|