ldp 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/ldp/response.rb +1 -1
- data/lib/ldp/version.rb +1 -1
- data/spec/lib/ldp/response_spec.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 38223b15bc7b09f9311bcba57dbc3fbd0f1e2074
|
|
4
|
+
data.tar.gz: 7ce38405bd215bf439778a58cab8c71af791a0ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c488898a473295a11880127627dd18479348bf0c30266a3752818eb3a3e6a8f80d80060fec15e7ec10110c5dff280343dd1db8a7e795182176cc39d82076f51a
|
|
7
|
+
data.tar.gz: eeba42c1919c7af7fb10b6f8baa85ada66b711523f6048c6ffe5648f67537aa10fb7df4025510686b86322777a97c38c076f54a458ce70685abc64f07205fa75
|
data/lib/ldp/response.rb
CHANGED
|
@@ -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{^"(
|
|
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]
|
data/lib/ldp/version.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
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.
|
|
271
|
+
rubygems_version: 2.6.12
|
|
272
272
|
signing_key:
|
|
273
273
|
specification_version: 4
|
|
274
274
|
summary: Linked Data Platform client library
|