rubydora 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.textile +3 -0
- data/VERSION +1 -1
- data/lib/rubydora/datastream.rb +1 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e7244b839f54ecfee40b9d2c689c54b92aefeae
|
4
|
+
data.tar.gz: 67ecac240d565b673d7c342a1aa0a1a47b1fb3c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 129b77a40cb1c0c0da8e6ae445b65647d33e510a90907bd0ef36639f63de880a297e3c52eebaaf37380586adf24b6b6183c8828836426722ff9835e9810c79b6
|
7
|
+
data.tar.gz: 1e2f11112a46df3239cb08ea27f2b7d35acc1807fd7bd2c31504edf142d2f7979f59d69294b3a8a26893ff49fbf327d33cba8552f003abaa0a31d4ea26b4b542
|
data/History.textile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.1
|
data/lib/rubydora/datastream.rb
CHANGED
@@ -234,9 +234,8 @@ module Rubydora
|
|
234
234
|
if (counter > from) # greater than the range minimum
|
235
235
|
if counter > from + length
|
236
236
|
# At the end of what we need. Write the beginning of what was read.
|
237
|
-
offset = (length + from) - counter
|
237
|
+
offset = (length + from) - counter - 1
|
238
238
|
blk << chunk[0..offset]
|
239
|
-
break
|
240
239
|
elsif from >= last_counter
|
241
240
|
# At the end of what we beginning of what we need. Write the end of what was read.
|
242
241
|
offset = from - last_counter
|
@@ -245,10 +244,6 @@ module Rubydora
|
|
245
244
|
# In the middle. We need all of this
|
246
245
|
blk << chunk
|
247
246
|
end
|
248
|
-
if (counter == from + length)
|
249
|
-
# Iteration was exactly the right length, no more reads needed.
|
250
|
-
break
|
251
|
-
end
|
252
247
|
end
|
253
248
|
end
|
254
249
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubydora
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastercsv
|