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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 153015f29c925bdc3e3f232bef84b24ce66e5cd5
4
- data.tar.gz: 7f67801d371b9e05b6b543ff3cc9268e8e96868d
3
+ metadata.gz: f1cb1c5f84b0cddd924603e941450302c549858d
4
+ data.tar.gz: a451b82ce46d27ce9a47393a90451f1b3de7a4c1
5
5
  SHA512:
6
- metadata.gz: 16952dba9a57805e96fb8f23f78bab8ea9b2b2f4638a5eda2016a8119793515066320b9d254b2008e2154f4f62bb920d572b7d8862460354d8a9443176765256
7
- data.tar.gz: 8d3f368facfd069549d6d6881ec6643616a0fd6a47bac65589eef74a3f53d2d6766e51f98436c3800d0edfaa3acd36f780f53d9b6716c58a5c65642a837e5b50
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
- @options.assert_valid_keys :block_size
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
@@ -1,3 +1,3 @@
1
1
  class FilterIO
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
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.3
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