dragonfly-manta_data_store 0.9.0 → 1.0.0
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 +4 -4
- data/Gemfile +0 -2
- data/lib/dragonfly/manta_data_store.rb +2 -2
- data/lib/dragonfly/manta_data_store/version.rb +1 -1
- data/spec/manta_data_store_spec.rb +0 -14
- 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: acfae07709e0ff3630d1063c69601181edc231c5
|
4
|
+
data.tar.gz: 857b5e0cf882d4022ea7654a6bdd4bb40568440c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc2181101cf72b1b37f48e62c3a934501bc59ed6cf1d9642f9fbc3a34a7840590f0dca65dcfef2de9dc319c299380ba56ca4c973f35057be103b00d6a1a63bf9
|
7
|
+
data.tar.gz: bc5b1c72002361633bd2ed5bbbb958b794a4ce7170c64abade07a1c197af7b0be7cdf3ca27a58747b88cb1e4f5f3a44c50cb18c2a98e3da466386e8b953e6eb7
|
data/Gemfile
CHANGED
@@ -85,14 +85,14 @@ module Dragonfly
|
|
85
85
|
|
86
86
|
def headers_to_meta(headers)
|
87
87
|
begin
|
88
|
-
|
88
|
+
Serializer.json_decode(headers["m-dragonfly"])
|
89
89
|
rescue => e
|
90
90
|
nil
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
94
|
def meta_to_header(meta = {})
|
95
|
-
{ :m_dragonfly =>
|
95
|
+
{ :m_dragonfly => Serializer.json_encode(meta) }
|
96
96
|
end
|
97
97
|
|
98
98
|
def store_content(content, options = {})
|
@@ -242,20 +242,6 @@ describe Dragonfly::MantaDataStore do
|
|
242
242
|
end
|
243
243
|
end
|
244
244
|
|
245
|
-
describe "read" do
|
246
|
-
before(:each) do
|
247
|
-
content.add_meta('bitrate' => 35, 'name' => 'danny.boy')
|
248
|
-
uid = @data_store.write(content)
|
249
|
-
stuff, meta = @data_store.read(uid)
|
250
|
-
@retrieved_content = Dragonfly::Content.new(app, stuff, meta)
|
251
|
-
end
|
252
|
-
|
253
|
-
it "should return the stored meta" do
|
254
|
-
@retrieved_content.meta['bitrate'].should == 35
|
255
|
-
@retrieved_content.meta['name'].should == 'danny.boy'
|
256
|
-
end
|
257
|
-
end
|
258
|
-
|
259
245
|
describe "urls for serving directly" do
|
260
246
|
before(:each) do
|
261
247
|
@uid = 'some/path/on/manta'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dragonfly-manta_data_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Connor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dragonfly
|