array-hooked 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +12 -0
- data/README.md +59 -0
- data/lib/array-hooked.rb +2 -0
- data/lib/array/hooked.rb +43 -0
- data/lib/array/hooked/array_interface.rb +1233 -0
- data/lib/array/namespaces.rb +6 -0
- data/lib/array/requires.rb +27 -0
- data/lib/hooked/array.rb +2 -0
- data/lib/hooked_array.rb +6 -0
- data/lib/hooked_array/array_interface.rb +29 -0
- data/spec/array/hooked_spec.rb +758 -0
- data/spec/hooked_array_spec.rb +13 -0
- metadata +74 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
|
2
|
+
require_relative '../lib/array-hooked.rb'
|
3
|
+
|
4
|
+
describe ::HookedArray do
|
5
|
+
|
6
|
+
it 'acts just like an ::Array::Hooked but takes a configuration instance' do
|
7
|
+
configuration_instance = ::Module.new
|
8
|
+
instance = ::HookedArray.new( configuration_instance )
|
9
|
+
instance.configuration_instance.should == configuration_instance
|
10
|
+
instance.is_a?( ::Array::Hooked ).should == true
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: array-hooked
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Asher
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-06-30 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: identifies_as
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
description: A subclass of Array that offers event hooks for pre-insert/pre-set/pre-delete,
|
31
|
+
insert/set/delete. ::HookedArray offers implicit reference to a configuration instance.
|
32
|
+
email: asher@ridiculouspower.com
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- lib/array/hooked/array_interface.rb
|
38
|
+
- lib/array/hooked.rb
|
39
|
+
- lib/array/namespaces.rb
|
40
|
+
- lib/array/requires.rb
|
41
|
+
- lib/array-hooked.rb
|
42
|
+
- lib/hooked/array.rb
|
43
|
+
- lib/hooked_array/array_interface.rb
|
44
|
+
- lib/hooked_array.rb
|
45
|
+
- spec/array/hooked_spec.rb
|
46
|
+
- spec/hooked_array_spec.rb
|
47
|
+
- README.md
|
48
|
+
- CHANGELOG.rdoc
|
49
|
+
homepage: http://rubygems.org/gems/array-hooked
|
50
|
+
licenses: []
|
51
|
+
post_install_message:
|
52
|
+
rdoc_options: []
|
53
|
+
require_paths:
|
54
|
+
- lib
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
requirements: []
|
68
|
+
rubyforge_project: array-hooked
|
69
|
+
rubygems_version: 1.8.23
|
70
|
+
signing_key:
|
71
|
+
specification_version: 3
|
72
|
+
summary: Provides ::Array::Hooked and ::HookedArray.
|
73
|
+
test_files: []
|
74
|
+
has_rdoc:
|