ldp 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ldp/resource.rb +1 -0
- data/lib/ldp/version.rb +1 -1
- data/spec/lib/ldp/resource_spec.rb +15 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0802cd6ebaab85c7e810463324f747ce03a5ae27
|
4
|
+
data.tar.gz: bbabd5c9cfde8fa68fcadd3667409b41bfb87349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa876432ca779c28ac1cd3ed7f9d4faaa44016a6a6473e8d8f40b576a89ff2ac100f23e9fb1058344b5fff4fc298710462f9d68b4ae127ed1a630c54e752d8c2
|
7
|
+
data.tar.gz: fc40000df0e48451ff712ae1b523c495135045556da61ca41fdc2664f2960b88e68b2c15900c2beefdce353865efb53dc389318c01f5248e68b213e17a945ec5
|
data/lib/ldp/resource.rb
CHANGED
data/lib/ldp/version.rb
CHANGED
@@ -106,4 +106,19 @@ describe Ldp::Resource do
|
|
106
106
|
|
107
107
|
end
|
108
108
|
end
|
109
|
+
|
110
|
+
describe "#update" do
|
111
|
+
let(:path) { '/a_new_resource' }
|
112
|
+
let(:conn_stubs) do
|
113
|
+
Faraday::Adapter::Test::Stubs.new do |stub|
|
114
|
+
stub.put(path, nil, {'Content-Type' => 'application/xml', "Content-Length"=>"0" }) { [200] }
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
it "should pass headers" do
|
119
|
+
subject.update do |req|
|
120
|
+
req.headers = {'Content-Type' => 'application/xml' }
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
109
124
|
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.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|