jackal-assets 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/jackal-assets/store.rb +4 -2
- data/lib/jackal-assets/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 909c06463d673566ed355384726bb403d2bf5306
|
4
|
+
data.tar.gz: 54b302cdda5d374fe2ab3151a768bc69e22dec7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32fd2678824f58c62acf880b04a700cb60027169e548d7d128da834b8eab37c3addf35a87545eb0ee4322cadeca8bb375d898454d1ef2a1e832fd9a4aca0ccb9
|
7
|
+
data.tar.gz: 3345353f3fbdf3d962d7865dac8207b44406496b9279165a6d0a0f53fae0da28c8070282eea170b46a39ee472df026707fd434b2c90d417d85d45efbde973770
|
data/CHANGELOG.md
CHANGED
data/lib/jackal-assets/store.rb
CHANGED
@@ -60,7 +60,9 @@ module Jackal
|
|
60
60
|
# @param key [String]
|
61
61
|
# @return [File]
|
62
62
|
def get(key)
|
63
|
-
remote_file = bucket.files.
|
63
|
+
remote_file = bucket.files.filter(:prefix => key).detect do |item|
|
64
|
+
item.name == key
|
65
|
+
end
|
64
66
|
if(remote_file)
|
65
67
|
io = remote_file.body.io
|
66
68
|
if(io.respond_to?(:path))
|
@@ -79,7 +81,7 @@ module Jackal
|
|
79
81
|
e_file
|
80
82
|
end
|
81
83
|
else
|
82
|
-
raise Error::NotFound.new "Remote file does not exist! (<#{bucket}>:#{key})"
|
84
|
+
raise Error::NotFound.new "Remote file does not exist! (<#{bucket.name}>:#{key})"
|
83
85
|
end
|
84
86
|
end
|
85
87
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jackal-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jackal
|
@@ -118,4 +118,3 @@ signing_key:
|
|
118
118
|
specification_version: 4
|
119
119
|
summary: Jackal Asset Interface
|
120
120
|
test_files: []
|
121
|
-
has_rdoc:
|