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: 627d8c7f085cf52eada7fa5255ddb3892f89e8ae
4
- data.tar.gz: 9d559aa366cbcd5d5f58e90e8b11caebefa4ce74
3
+ metadata.gz: b1436e4a5aecbbbb4431efc46245a375da5ba0e3
4
+ data.tar.gz: 4402a535ea229ff048af3bc7fceae6bcadbf10bf
5
5
  SHA512:
6
- metadata.gz: 354975be2b7ec97799e2c4f91f2df66cfbd8e4a8490d96c9904fc1d018c9aec604ce4299f5fa7498db67cea5f032d3d8b1f40e2923c07b3ca31b3c83c9cfe810
7
- data.tar.gz: 5e389b98b63e647e8203b23e5ec2f24c4800b66ab4aa417434995c86ded910aac9799cfb1e0deb50336de5f4c0bf84d721d4834ae1f72f437aebceea0fd3ddf7
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'struggle'
3
- s.version = '1.3.2'
3
+ s.version = '1.3.3'
4
4
  s.date = '2015-07-13'
5
5
  s.summary = "struggle!"
6
6
  s.description = "vcode,fileupload,pager,func,logistic,pay_gateway,tmagick,html_extend;"
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.2
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
@@ -1,8 +0,0 @@
1
- module HtmlExtend
2
- module Help
3
- def html_clear_extend(attr)
4
- HtmlExtend.set_eval_str "self.#{attr}=html_clear(self.#{attr})"
5
- before_save :save_extend
6
- end
7
- end
8
- end
@@ -1,9 +0,0 @@
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
- end