ldp 0.7.1 → 0.7.2

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
- SHA256:
3
- metadata.gz: 25f60476bce9b0fdb0d082e3d202c3ad8e367edc08b8e8f8aa270f49055c74b0
4
- data.tar.gz: 155cd50f61a3f90e2cb5c67da8403ff6df6db88daa8d50bc7aa7c8d52a025173
2
+ SHA1:
3
+ metadata.gz: 38223b15bc7b09f9311bcba57dbc3fbd0f1e2074
4
+ data.tar.gz: 7ce38405bd215bf439778a58cab8c71af791a0ab
5
5
  SHA512:
6
- metadata.gz: 30a830279a5739a019a4e219cc5437eed319a1cd38cbfcffe9a8485ae2fc7a14a244114d2b8836df7b76153b86bcfbff2e17ad6f1d8db4b2b7fec6a01cad76d9
7
- data.tar.gz: cb414d1085f92f3e1e8737d52c75c9ad1051cba4d3a19f4c040a744d7ab16ae2f91d5bc0cdebcd921024f40944196f323f1c40fb324b9094c6ed7b71170f009b
6
+ metadata.gz: c488898a473295a11880127627dd18479348bf0c30266a3752818eb3a3e6a8f80d80060fec15e7ec10110c5dff280343dd1db8a7e795182176cc39d82076f51a
7
+ data.tar.gz: eeba42c1919c7af7fb10b6f8baa85ada66b711523f6048c6ffe5648f67537aa10fb7df4025510686b86322777a97c38c076f54a458ce70685abc64f07205fa75
@@ -208,7 +208,7 @@ module Ldp
208
208
  def content_disposition_attributes
209
209
  parts = headers['Content-Disposition'].split(/;\s*/).collect { |entry| entry.split(/\s*=\s*/) }
210
210
  entries = parts.collect do |part|
211
- value = part[1].respond_to?(:sub) ? part[1].sub(%r{^"(.+)"$}, '\1') : part[1]
211
+ value = part[1].respond_to?(:sub) ? part[1].sub(%r{^"(.*)"$}, '\1') : part[1]
212
212
  [part[0], value]
213
213
  end
214
214
  Hash[entries]
@@ -1,3 +1,3 @@
1
1
  module Ldp
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -202,11 +202,13 @@ describe Ldp::Response do
202
202
  { 'Content-Disposition' => 'filename="xyz.txt";' },
203
203
  { 'Content-Disposition' => 'attachment; filename=xyz.txt' },
204
204
  { 'Content-Disposition' => 'attachment; filename="xyz.txt"; size="12345"' },
205
+ { 'Content-Disposition' => 'attachment; filename=""; size="12345"' },
205
206
  )
206
207
  end
207
208
 
208
209
  it 'provides the filename from the content disposition header' do
209
210
  3.times { expect(subject.content_disposition_filename).to eq 'xyz.txt' }
211
+ expect(subject.content_disposition_filename).to eq ''
210
212
  end
211
213
  end
212
214
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ldp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-13 00:00:00.000000000 Z
11
+ date: 2018-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  version: '0'
269
269
  requirements: []
270
270
  rubyforge_project:
271
- rubygems_version: 2.7.3
271
+ rubygems_version: 2.6.12
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: Linked Data Platform client library