rack-dev-mark 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rack/dev-mark/theme/base.rb +2 -2
- data/lib/rack/dev-mark/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDI0NDVjZGE2NGU1YzViZTZiM2IxM2U0NzEwNmFiMGNmYzVjN2UzNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTEyOTVhMWEzZDg1ZGE2OWM1ZGUxMDk3MGJiMTIyMzM3NzVlY2NmOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjVhODM5ZThiOGUzMjE2MjYzZWY4NjgzMGFmYWY5YjEyODcxZDRhODdjYzJk
|
10
|
+
NTBjMTdlMDU4MmViNThiZTU4NGIxZWE2NDdjY2IxYmE1NTdmMWUyM2U4N2Qw
|
11
|
+
Njk2YWQxOGQzZDJjYjEyYTNlMmRmMjYzMmQxYTZhNTk4YTQwOTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmRiMjhlMDVmOGQ5MzM0N2ZjMTQ5YjAzNjM3MTY2M2NkNGMyMTc1OTdlYjFj
|
14
|
+
YWY3MzczNjAwNDAxOWZkOWRhODgxOTUwNTJmMjUyZTNmNWZiMzllNzU2MWNl
|
15
|
+
OTRkOGYwMDcxYjE1ZTM5ZmY5ZTgyMzVlZmQxOTc2NmZlYzFmYmQ=
|
@@ -24,13 +24,13 @@ module Rack
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def gsub_tag_content(html, name, &block)
|
27
|
-
String.new(html).gsub(%r{(<#{name}\s*[^>]*>)([^<]*)(</#{name}>)}
|
27
|
+
String.new(html).gsub(%r{(<#{name}\s*[^>]*>)([^<]*)(</#{name}>)}im) do
|
28
28
|
"#{$1}#{block.call($2)}#{$3}"
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
32
|
def gsub_tag_attribute(html, name, attr, &block)
|
33
|
-
String.new(html).gsub %r{(<#{name}\s*)([^>]*)(>)}
|
33
|
+
String.new(html).gsub %r{(<#{name}\s*)([^>]*)(>)}im do
|
34
34
|
s1, s2, s3 = $1, $2, $3
|
35
35
|
s2.gsub! %r{(#{attr}=')([^']*)(')} do
|
36
36
|
"#{$1}#{block.call($2)}#{$3}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-dev-mark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daisuke Taniwaki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|