-
Notifications
You must be signed in to change notification settings - Fork 3
/
typed-array.gemspec
93 lines (82 loc) · 2.99 KB
/
typed-array.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{typed-array}
s.version = "0.1.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = [%q{Ryan Biesemeyer}]
s.date = %q{2011-09-06}
s.description = %q{ All methods that alter the contents of an array that implements this Gem are first checked to
ensure that the added items are of the types allowed. All methods behave exactly as their Array
counterparts, including additional forms, block processing, etc.
Defining a TypedArray Class:
```ruby
class ThingsArray < Array
extend TypedArray
restrict_types Thing1, Thing2
end
things = ThingsArray.new
```
Generating a single TypedArray
```ruby
things = TypedArray(Thing1,Thing2).new
These classes can be extended, and their accepted-types appended to after their initial definition.
}
s.email = %q{[email protected]}
s.extra_rdoc_files = [
"LICENSE.txt",
"README.rdoc"
]
s.files = [
".document",
".rspec",
"Gemfile",
"LICENSE.txt",
"README.rdoc",
"Rakefile",
"VERSION",
"lib/typed-array.rb",
"lib/typed-array/functions.rb",
"spec/spec_helper.rb",
"spec/typed-array_spec.rb",
"typed-array.gemspec"
]
s.homepage = %q{http://github.com/yaauie/typed-array}
s.licenses = [%q{MIT}]
s.require_paths = [%q{lib}]
s.rubygems_version = %q{1.8.6}
s.summary = %q{Provides methods for creating type-enforced Arrays}
if s.respond_to? :specification_version then
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<typed-array>, [">= 0"])
s.add_development_dependency(%q<rcov>, [">= 0"])
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
s.add_development_dependency(%q<jeweler>, ["~> 1.6"])
s.add_development_dependency(%q<rcov>, [">= 0"])
s.add_development_dependency(%q<rdoc>, ["~> 3.9"])
s.add_development_dependency(%q<rspec>, ["~> 2.6"])
s.add_development_dependency(%q<rdoc>, ["~> 3.9"])
else
s.add_dependency(%q<typed-array>, [">= 0"])
s.add_dependency(%q<rcov>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.0"])
s.add_dependency(%q<jeweler>, ["~> 1.6"])
s.add_dependency(%q<rcov>, [">= 0"])
s.add_dependency(%q<rdoc>, ["~> 3.9"])
s.add_dependency(%q<rspec>, ["~> 2.6"])
s.add_dependency(%q<rdoc>, ["~> 3.9"])
end
else
s.add_dependency(%q<typed-array>, [">= 0"])
s.add_dependency(%q<rcov>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.0"])
s.add_dependency(%q<jeweler>, ["~> 1.6"])
s.add_dependency(%q<rcov>, [">= 0"])
s.add_dependency(%q<rdoc>, ["~> 3.9"])
s.add_dependency(%q<rspec>, ["~> 2.6"])
s.add_dependency(%q<rdoc>, ["~> 3.9"])
end
end