spec_views 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/spec_views/views_controller.rb +2 -2
- data/lib/spec_views/support.rb +6 -2
- data/lib/spec_views/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c7f8a52383504378eddee951cba9a8fc6a47f255da78ed1a130eee0fa814ada
|
4
|
+
data.tar.gz: c8fabfb166786ccb35a9ecb3b195851b04c73bea7b6fe3a0a823a3e72b963469
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 838f2fc2cb3002b3e8b3d8274ba1f1e14ea0d3fcea5d54a6ff6bdf8e9919ab37f1c3f3b8a90594ff1911bb588230d513d78a444b838452f9115120eaf71d8dc8
|
7
|
+
data.tar.gz: f3fb138e0899c4a448fe2b8c3121420b6b86162a6ef3f4b5b9a81fed764e6ca3aad89c311f66381aff4d4b4a5024f87fa5c01010fb92e8621007f80fc2cb1c37
|
@@ -100,11 +100,11 @@ module SpecViews
|
|
100
100
|
end
|
101
101
|
|
102
102
|
def method
|
103
|
-
splitted_name.second
|
103
|
+
splitted_name.second[0, 3]
|
104
104
|
end
|
105
105
|
|
106
106
|
def description
|
107
|
-
splitted_name.third.humanize
|
107
|
+
splitted_name.third.gsub(/__pdf$/, '').humanize
|
108
108
|
end
|
109
109
|
|
110
110
|
def last_run
|
data/lib/spec_views/support.rb
CHANGED
@@ -112,7 +112,7 @@ module SpecViews
|
|
112
112
|
end
|
113
113
|
|
114
114
|
def remove_digests_from_body(body)
|
115
|
-
body.gsub(/(-[a-z0-9]{64})(\.css|\.js|\.png|\.jpg|\.jpeg|\.svg|\.gif)/, '\2')
|
115
|
+
body.gsub(/(-[a-z0-9]{64})(\.css|\.js|\.ico|\.png|\.jpg|\.jpeg|\.svg|\.gif)/, '\2')
|
116
116
|
end
|
117
117
|
|
118
118
|
def remove_pack_digests_from_body(body)
|
@@ -120,7 +120,11 @@ module SpecViews
|
|
120
120
|
end
|
121
121
|
|
122
122
|
def remove_headers_from_pdf(pdf)
|
123
|
-
pdf
|
123
|
+
pdf
|
124
|
+
.force_encoding("BINARY")
|
125
|
+
.gsub(/^\/CreationDate \(.*\)$/, '')
|
126
|
+
.gsub(/^\/ModDate \(.*\)$/, '')
|
127
|
+
.gsub(/^\/ID \[<.+><.+>\]$/, '')
|
124
128
|
end
|
125
129
|
|
126
130
|
def put_write_instructions
|
data/lib/spec_views/version.rb
CHANGED