refile 0.4.1 → 0.4.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
2
  SHA1:
3
- metadata.gz: b4a6a01330f6055b1ea8d4ff4f2c38bd830b586a
4
- data.tar.gz: 63e43f184dd10c69678e2bfaa881a496e86a73ec
3
+ metadata.gz: a3a2b57d57c5951f0c24c51726efb70cce7d81ff
4
+ data.tar.gz: 39063e4b10ac86030aa75ab30463b1798b02b91a
5
5
  SHA512:
6
- metadata.gz: c233739353d69946b16d3332532bb2394eb0bcb292207e4f51045c9a1209070a19a5447f2cde2e7ea91861d36a3a29c71d4cd931ea342b5832527590d7fada57
7
- data.tar.gz: 294c22cbbf9da075a6c6609b9b79c2345ecacd28a071db5b9c00c2ed45121719c5345164eb316070cbdf9910a3dae385459570b37f2c7b6972b847edebbfd339
6
+ metadata.gz: 091a57dc29f9fc7cef0f9aa240446f48076a6a321d60cfdb9491104a91ec196a105ed3476a74f8f05f3fee7fdc1c796807710dd9b7eb3b642d961493ee505bbe
7
+ data.tar.gz: 9fb6d682ea8fc32b0a5a3321912e5315f5ac836b88d14636731fd2e068917f32a4621a02f2759acf4fc9d52ddebfe90235b7b46abda11bc502c62b23591f315f
data/History.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.4.2
2
+
3
+ Release date: 2014-12-27
4
+
5
+ - [FIXED] Regression in S3 backend
6
+
1
7
  # 0.4.1
2
8
 
3
9
  Release date: 2014-12-26
data/lib/refile.rb CHANGED
@@ -193,6 +193,7 @@ module Refile
193
193
  end
194
194
 
195
195
  require "refile/version"
196
+ require "refile/signature"
196
197
  require "refile/attacher"
197
198
  require "refile/attachment"
198
199
  require "refile/random_hasher"
@@ -1,3 +1,3 @@
1
1
  module Refile
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -12,11 +12,9 @@ Refile.store = Refile::Backend::FileSystem.new(File.expand_path("default_store",
12
12
  Refile.cache = Refile::Backend::FileSystem.new(File.expand_path("default_cache", tmp_path))
13
13
 
14
14
  class FakePresignBackend < Refile::Backend::FileSystem
15
- Signature = Struct.new(:as, :id, :url, :fields)
16
-
17
15
  def presign
18
16
  id = Refile::RandomHasher.new.hash
19
- Signature.new("file", id, "/presigned/posts/upload", token: "xyz123", id: id)
17
+ Refile::Signature.new(as: "file", id: id, url: "/presigned/posts/upload", fields: { id: id, token: "xyz123" })
20
18
  end
21
19
  end
22
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Nicklas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-26 00:00:00.000000000 Z
11
+ date: 2014-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -351,7 +351,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
351
351
  version: '0'
352
352
  requirements: []
353
353
  rubyforge_project:
354
- rubygems_version: 2.4.5
354
+ rubygems_version: 2.4.3
355
355
  signing_key:
356
356
  specification_version: 4
357
357
  summary: Simple and powerful file upload library