trecs 0.3.17 → 0.3.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/trecs/strategies/emacs_plugin_strategy.rb +3 -3
- data/lib/trecs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fabd1b003df8fddc54acbd3b6c386ecf7d661ad3
|
4
|
+
data.tar.gz: bd6a2196befafb9f950882ae65f078e992a592dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e173dc0ea5b69249675ae880a1c1f8eec063e5a2f62c8800feb9382771de17759ab2abbdacfd3d7857dfd9b0a858360d781cf1b41ce2655716079988be02d0c3
|
7
|
+
data.tar.gz: 30f1a81176e5896100ad2c89a3d23b04625d4279917c647d190aa23725223f86cd422b595c7691093f09cf08ec589d8211101ad26582fb0b9d64eef0bd0fbc57
|
data/Gemfile.lock
CHANGED
@@ -26,8 +26,8 @@ module TRecs
|
|
26
26
|
end
|
27
27
|
|
28
28
|
frames.each do |_, content|
|
29
|
-
frame
|
30
|
-
@width
|
29
|
+
frame = Frame.new(content: content, format: "html")
|
30
|
+
@width = frame.width if frame.width > @width
|
31
31
|
@height = frame.height if frame.height > @height
|
32
32
|
end
|
33
33
|
|
@@ -50,7 +50,7 @@ module TRecs
|
|
50
50
|
.gsub(/\/\*.+\*\//, "")
|
51
51
|
#.gsub!(/^\s/, "").gsub!(/^(<[^\/]\w+ (\w+=['"][^>]+['"])*>)+ /) {|m| m[-1]=""; m } # clean extra space at the begining of each line
|
52
52
|
|
53
|
-
new_content = "<style>#{style}</style><pre style='border: 2px solid #898989;width: #{@width}ex;height: #{@height}ex' class='emacs-code'>#{code}</pre>"
|
53
|
+
new_content = "<style>#{style}</style><pre style='border: 2px solid #898989;width: #{@width*1.2}ex;height: #{@height*1.25}ex' class='emacs-code'>#{code}</pre>"
|
54
54
|
|
55
55
|
super(new_content)
|
56
56
|
end
|
data/lib/trecs/version.rb
CHANGED