filter_io 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/filter_io.gemspec +0 -2
- data/lib/filter_io.rb +5 -6
- data/lib/filter_io/version.rb +1 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1cb1c5f84b0cddd924603e941450302c549858d
|
4
|
+
data.tar.gz: a451b82ce46d27ce9a47393a90451f1b3de7a4c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1acd2b06b1d8bf1d368003eddf1356c43b95f1cddc270e5ac617c2537140232d50750d8d5e6a22a9581713e5ba115dc96be1b3383cd02a3e8c0c77ae447211b3
|
7
|
+
data.tar.gz: c3cecc20a335b518d4477fb10cfc15d3a3bf274b6a5a615d145c959af9fdc8ca40f983feca11a4dc7ee4e36c06f5d9a26ef68d5738946cf3897995e90851b5eb
|
data/filter_io.gemspec
CHANGED
@@ -17,8 +17,6 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_dependency 'activesupport', '>= 2.3.9'
|
21
|
-
|
22
20
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
23
21
|
spec.add_development_dependency 'rake'
|
24
22
|
spec.add_development_dependency 'simplecov'
|
data/lib/filter_io.rb
CHANGED
@@ -1,8 +1,3 @@
|
|
1
|
-
require 'active_support'
|
2
|
-
require 'active_support/core_ext/string'
|
3
|
-
require 'active_support/core_ext/array'
|
4
|
-
require 'active_support/core_ext/hash'
|
5
|
-
|
6
1
|
class FilterIO
|
7
2
|
DEFAULT_BLOCK_SIZE = 1024
|
8
3
|
|
@@ -26,7 +21,11 @@ class FilterIO
|
|
26
21
|
@pos = 0
|
27
22
|
@buffer = empty_string
|
28
23
|
@buffer_raw = empty_string_raw
|
29
|
-
|
24
|
+
|
25
|
+
invalid_options = @options.keys - [:block_size]
|
26
|
+
unless invalid_options.empty?
|
27
|
+
raise ArgumentError, "Invalid options: #{invalid_options.join ', '}"
|
28
|
+
end
|
30
29
|
end
|
31
30
|
|
32
31
|
def pos
|
data/lib/filter_io/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filter_io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Weathered
|
@@ -10,20 +10,6 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2014-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: activesupport
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 2.3.9
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 2.3.9
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: bundler
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|