dragonfly-manta_data_store 0.9.0 → 1.0.0

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
  SHA1:
3
- metadata.gz: 65a092b8cc5eb180248e34adb26b5d74530d4c6b
4
- data.tar.gz: fe49ab770597a4e4f8204c97c4b481b64805d806
3
+ metadata.gz: acfae07709e0ff3630d1063c69601181edc231c5
4
+ data.tar.gz: 857b5e0cf882d4022ea7654a6bdd4bb40568440c
5
5
  SHA512:
6
- metadata.gz: 7f4faa53836bab887f4a7735569624696c01049575a46ff2363e4b15c553c8f8fb933308e3894d76bd6c7e764eef8388c21d5b44498ffc5ee8092da83c24195b
7
- data.tar.gz: 78647412fd8213b19818ad51530d3054b29d817a45f865c2e036bec749e1af24f66253ab95778e175770e47a6a6d8b1a2d8e2a48d0b620548f55a41012321953
6
+ metadata.gz: bc2181101cf72b1b37f48e62c3a934501bc59ed6cf1d9642f9fbc3a34a7840590f0dca65dcfef2de9dc319c299380ba56ca4c973f35057be103b00d6a1a63bf9
7
+ data.tar.gz: bc5b1c72002361633bd2ed5bbbb958b794a4ce7170c64abade07a1c197af7b0be7cdf3ca27a58747b88cb1e4f5f3a44c50cb18c2a98e3da466386e8b953e6eb7
data/Gemfile CHANGED
@@ -1,4 +1,2 @@
1
1
  source 'https://rubygems.org'
2
- gem "pry"
3
- gem "ruby-manta", :path => "~/onyxrev/ruby-manta"
4
2
  gemspec
@@ -85,14 +85,14 @@ module Dragonfly
85
85
 
86
86
  def headers_to_meta(headers)
87
87
  begin
88
- JSON.parse(headers["m-dragonfly"])
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 => JSON.dump(meta) }
95
+ { :m_dragonfly => Serializer.json_encode(meta) }
96
96
  end
97
97
 
98
98
  def store_content(content, options = {})
@@ -1,5 +1,5 @@
1
1
  module Dragonfly
2
2
  class MantaDataStore
3
- VERSION = "0.9.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -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.9.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-05 00:00:00.000000000 Z
11
+ date: 2015-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dragonfly