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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf7bc86e0273d8a6c9f07835a90f1a142585672b2a4b274686f40699ddd26ec7
4
- data.tar.gz: 96167d907e224df18c9d41190e31f00546c41bf4812fbe0f896bf50bb1ea51e9
3
+ metadata.gz: 0c7f8a52383504378eddee951cba9a8fc6a47f255da78ed1a130eee0fa814ada
4
+ data.tar.gz: c8fabfb166786ccb35a9ecb3b195851b04c73bea7b6fe3a0a823a3e72b963469
5
5
  SHA512:
6
- metadata.gz: 804a01e51bf028bc19a86626493736cee085e9151aafba1b3158e4500a97b1082c7324e84de8994940831da2a4ea84d78fbc5d19393489c8afb5b18a5d626513
7
- data.tar.gz: 15d1e2a4c2ecebd4652a30ce9b7455b6f74a276697d35abccda2dc317a34512b9541a616b21d5c4647bb0ced3ab816518a44f0569965dc1ce9d19a5f4b460ddd
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
@@ -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.gsub(/^\/CreationDate.*$/, '')
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
@@ -1,3 +1,3 @@
1
1
  module SpecViews
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Gaul