jackal-assets 0.1.6 → 0.1.8

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: 909c06463d673566ed355384726bb403d2bf5306
4
- data.tar.gz: 54b302cdda5d374fe2ab3151a768bc69e22dec7a
3
+ metadata.gz: be320ed6884e232934b6a5b9f487af1de40946d7
4
+ data.tar.gz: 1e287fd6ebf158593a404551a44627d5bacc828f
5
5
  SHA512:
6
- metadata.gz: 32fd2678824f58c62acf880b04a700cb60027169e548d7d128da834b8eab37c3addf35a87545eb0ee4322cadeca8bb375d898454d1ef2a1e832fd9a4aca0ccb9
7
- data.tar.gz: 3345353f3fbdf3d962d7865dac8207b44406496b9279165a6d0a0f53fae0da28c8070282eea170b46a39ee472df026707fd434b2c90d417d85d45efbde973770
6
+ metadata.gz: 0020e19cf37650d95d7ceac394068e3bb00970ed36a90b2f26d404eda928137d952c608cfd10371f1456467f8c6cfb675c3960598e8c7cd98e859a30c9ae08ed
7
+ data.tar.gz: 56b6a9e9df3113864386c3da6d249bb22234c9e082f97e15a9a9ec1d049f1d8f997ff5c98230e7eaacfd6726b6ea7eba320b53d1f102f392766e78cdebfd7496
@@ -1,3 +1,6 @@
1
+ # v0.1.8
2
+ * Add block support for yielding on read chunks
3
+
1
4
  # v0.1.6
2
5
  * Use #filter on files collection to get file
3
6
 
@@ -73,6 +73,9 @@ module Jackal
73
73
  begin
74
74
  while(data = io.readpartial(2048))
75
75
  e_file.write data
76
+ if(block_given?)
77
+ yield data
78
+ end
76
79
  end
77
80
  rescue EOFError
78
81
  end
@@ -1,6 +1,6 @@
1
1
  module Jackal
2
2
  module Assets
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.1.6')
4
+ VERSION = Gem::Version.new('0.1.8')
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.6
4
+ version: 0.1.8
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-05-21 00:00:00.000000000 Z
11
+ date: 2015-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jackal