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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4bc8c0c49326a4b8e56be79342274f4de88b84e
4
- data.tar.gz: f78f2fe8b037cbddc97011537447a2e8a7c68b00
3
+ metadata.gz: 909c06463d673566ed355384726bb403d2bf5306
4
+ data.tar.gz: 54b302cdda5d374fe2ab3151a768bc69e22dec7a
5
5
  SHA512:
6
- metadata.gz: 314035b18ea541805b5cba2f342ff7dfea4d40563dd56d45ff0fc78153d44f2ee93178f366a9abf7eb601d36098e82dda81640f37f2068831614646bb6af44dd
7
- data.tar.gz: 2e97f9fdd7d9b7929610d369fa4393155df9719c52cdc9f2deb15621988f00dc0d047cbb249c4a7a7b03073949f97612365c4e1dbdd17be20d07cbefc4cf6652
6
+ metadata.gz: 32fd2678824f58c62acf880b04a700cb60027169e548d7d128da834b8eab37c3addf35a87545eb0ee4322cadeca8bb375d898454d1ef2a1e832fd9a4aca0ccb9
7
+ data.tar.gz: 3345353f3fbdf3d962d7865dac8207b44406496b9279165a6d0a0f53fae0da28c8070282eea170b46a39ee472df026707fd434b2c90d417d85d45efbde973770
@@ -1,3 +1,6 @@
1
+ # v0.1.6
2
+ * Use #filter on files collection to get file
3
+
1
4
  # v0.1.4
2
5
  * Fix remote asset to avoid streaming issues
3
6
  * Prevent EOF errors when reading to end of file on java
@@ -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.reload.get(key)
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
 
@@ -1,6 +1,6 @@
1
1
  module Jackal
2
2
  module Assets
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.1.4')
4
+ VERSION = Gem::Version.new('0.1.6')
5
5
  end
6
6
  end
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
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-04-30 00:00:00.000000000 Z
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: