generics 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 32d9829502d2007dbb1e266845feacb2a40cb2fc
4
+ data.tar.gz: bbe0440878cb87b22eb84aefc68e370c88db2fa0
5
+ SHA512:
6
+ metadata.gz: 64257de2064f629fc083cb3051517a60ce60dfa8e7ec761e88940ad2c44b97692994099cfccfd8de77dbb3b5bc6df68bfc039acd728147068ef5606d74bb6db7
7
+ data.tar.gz: 44f0a610c9506da1ebd643ac39c37b99d970cc551c3fd69edf4f72fa93a9e10da775da115b2ab391dd809acaf1651b5e3ce6c32a2b3701a605c4d31765d335d5
@@ -0,0 +1,13 @@
1
+ *.sublime-project
2
+ *.sublime-workspace
3
+ /*.gem
4
+ /.bundle/
5
+ /.yardoc/
6
+ /coverage/
7
+ /doc/
8
+ /Gemfile.lock
9
+ /pkg/
10
+ /spec/reports/
11
+ /tmp/
12
+ /vendor/cache
13
+ /vendor/ruby
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at geoff.lee@lendesk.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in generics.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 matrinox
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,63 @@
1
+ # Generics
2
+
3
+ The philosophy here is to bring as much modern language features that help developers code better, safer, and more reliably. Here are some top priorities of this library:
4
+
5
+ - Immutability first with mutability as an option (e.g for speed)
6
+ - Type safety
7
+ - Follow functional practices
8
+ - Use standard interfaces of Ruby
9
+ - Fail early, throw fast
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'generics'
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install generics
26
+
27
+ ## Usage
28
+
29
+ ```ruby
30
+ list_of_ints = Generics::List[Integer].new(1, 2, 3, 4)
31
+ list_of_ints.add(5) # ok
32
+ list_of_ints.add('6') # NotSameType exception
33
+ list_of_ints.count # 4 (immutable)
34
+ list_of_ints.add(5).add(6).add(7).count # 7
35
+ ```
36
+
37
+ ## Development
38
+
39
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
40
+
41
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
42
+
43
+ ## TODO
44
+
45
+ - Other collection types (at least the same list as core ruby data types and the Hamster immutable library)
46
+ - More complex generics
47
+ - Responds to generics (another form of duck type, though modules are preferable)
48
+ - Array generics (e.g. list of strings)
49
+ - Hash generics (e.g. keys are numbers and values are list of strings)
50
+ - Either/enums (e.g. list of strings or integers of anything that responds to :x). This would require either adopting a library or creating one ourselves as a separate gem
51
+ - Generics in functions/closures
52
+ - Generics in methods
53
+ - Generics in classes
54
+
55
+ ## Contributing
56
+
57
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/generics. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
58
+
59
+
60
+ ## License
61
+
62
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
63
+
@@ -0,0 +1,2 @@
1
+ require 'bundler/gem_tasks'
2
+ task default: :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'generics'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require 'pry'
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,47 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'generics/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'generics'
8
+ spec.version = Generics::VERSION
9
+ spec.authors = ['matrinox']
10
+ spec.email = ['geoff.lee@lendesk.com']
11
+
12
+ spec.summary = %q{Generics for Ruby}
13
+ spec.description = %q{Generics for Ruby, starting with collections}
14
+ spec.homepage = 'https://github.com/matrinox/generics'
15
+ spec.license = 'MIT'
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
+ else
22
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = 'exe'
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ['lib']
29
+
30
+ spec.add_development_dependency 'bundler', '~> 1.12'
31
+ spec.add_development_dependency 'rake', '~> 10.0'
32
+
33
+ # Fun pry tools
34
+ spec.add_development_dependency 'awesome_print', '~> 1.6.1'
35
+ spec.add_development_dependency 'pry', '~> 0.10.4'
36
+ spec.add_development_dependency 'pry-byebug', '~> 3.3.0'
37
+ spec.add_development_dependency 'pry-coolline', '~> 0.2.5'
38
+ spec.add_development_dependency 'pry-rails', '~> 0.3.4'
39
+ spec.add_development_dependency 'pry-toys', '~> 0.0.2'
40
+ spec.add_development_dependency 'pry-macro', '~> 1.0.1'
41
+ spec.add_development_dependency 'pry-state', '~> 0.1.7'
42
+ spec.add_development_dependency 'pry-inline', '~> 1.0.1'
43
+ spec.add_development_dependency 'pry-doc', '~> 0.9.0'
44
+ spec.add_development_dependency 'pry-highlight', '~> 0.1.0'
45
+
46
+ spec.add_dependency 'hamster', '>= 3.0.0'
47
+ end
@@ -0,0 +1,7 @@
1
+ require 'generics/version'
2
+
3
+ module Generics
4
+ # Your code goes here...
5
+ end
6
+
7
+ require 'generics/collections/list'
@@ -0,0 +1,226 @@
1
+ require 'hamster'
2
+
3
+ module Generics
4
+ class List
5
+ include Enumerable
6
+
7
+ # Shared
8
+
9
+ class NotSameType < StandardError
10
+ end
11
+
12
+ # @param [Class, Module] type
13
+ # @return [Class]
14
+ def self.[](type)
15
+ Class.new(self).tap do |klass|
16
+ klass.instance_variable_set('@type', type)
17
+ klass.define_singleton_method(:name) { klass.superclass.name }
18
+ end
19
+ end
20
+
21
+ def self.type
22
+ @type
23
+ end
24
+
25
+ def compatible?(value)
26
+ value.is_a?(self.class.type)
27
+ end
28
+
29
+ def compatible!(value)
30
+ fail NotSameType unless value.is_a?(self.class.type)
31
+ true
32
+ end
33
+
34
+ # Object
35
+
36
+ def inspect
37
+ "#<#{self.class.name}[#{self.class.type}]: #{to_s}>"
38
+ end
39
+
40
+ def to_s
41
+ @collection.to_a.to_s
42
+ end
43
+
44
+ # Enumerable
45
+
46
+ def [](index)
47
+ @collection[index]
48
+ end
49
+
50
+ def each
51
+ @collection.each { |item| yield item }
52
+ return self
53
+ end
54
+
55
+ def map
56
+ self.class.new(super)
57
+ end
58
+
59
+ # Array
60
+
61
+ # Getters
62
+
63
+ def size
64
+ @collection.size
65
+ end
66
+
67
+ def length
68
+ @collection.length
69
+ end
70
+
71
+ def empty?
72
+ @collection.empty?
73
+ end
74
+
75
+ def last
76
+ @collection.last
77
+ end
78
+
79
+ def pop
80
+ @collection.pop
81
+ end
82
+
83
+ def reverse
84
+ @collection.reverse
85
+ end
86
+
87
+ def sample
88
+ @collection.sample
89
+ end
90
+
91
+ def slice(*args)
92
+ @collection.slice(*args)
93
+ end
94
+
95
+ # Methods that returns self
96
+
97
+ def delete_at(index)
98
+ self.class.new(*@collection.delete_at(index))
99
+ end
100
+
101
+ def shift
102
+ self.class.new(*@collection.shift)
103
+ end
104
+
105
+ def uniq(&block)
106
+ self.class.new(*@collection.uniq(&block))
107
+ end
108
+
109
+ # Immutable (default) only
110
+
111
+ # @param [Class, Module] type
112
+ def initialize(*collection)
113
+ collection.each { |value| compatible!(value) }
114
+ @collection = ::Hamster::Vector.new(collection)
115
+ end
116
+
117
+ # Does not preserve frozen state and does not copy singleton state
118
+ # @return [List]
119
+ def dup
120
+ self.class.new(*@collection.dup)
121
+ end
122
+
123
+ # Preserves frozen state and does copies singleton state
124
+ # @return [List]
125
+ def clone
126
+ self.class.new(*@collection.clone)
127
+ end
128
+
129
+ # Quick dup; does not duplicate, just relies on immutability
130
+ # @return [List]
131
+ def qdup
132
+ self.class.new(*@collection)
133
+ end
134
+
135
+ # Destructive
136
+
137
+ def add(value)
138
+ compatible!(value)
139
+ self.class.new(*@collection.add(value))
140
+ end
141
+
142
+ def set(index, value, &block)
143
+ compatible!(value)
144
+ self.class.new(*@collection.set(index, value, &block))
145
+ end
146
+
147
+ def insert(index, *values)
148
+ values.each { |value| compatible!(value) }
149
+ self.class.new(*@collection.insert(index, *values))
150
+ end
151
+
152
+ def delete(value)
153
+ compatible!(value)
154
+ self.class.new(*@collection.delete(value))
155
+ end
156
+
157
+ def delete_at(index)
158
+ self.class.new(*@collection.delete_at(index))
159
+ end
160
+
161
+ def unshift(value)
162
+ compatible!(value)
163
+ self.class.new(*@collection.unshift(value))
164
+ end
165
+
166
+ class Mutable < List
167
+ # @param [Class, Module] type
168
+ def initialize(*collection)
169
+ collection.each { |value| compatible!(value) }
170
+ @collection = collection.freeze
171
+ end
172
+
173
+ # Does not preserve frozen state and does not copy singleton state
174
+ # @return [List::Mutable]
175
+ def dup
176
+ self.class.new(*@collection.dup)
177
+ end
178
+
179
+ # Preserves frozen state and does copies singleton state
180
+ # @return [List::Mutable]
181
+ def clone
182
+ self.class.new(*@collection.clone)
183
+ end
184
+
185
+ # Destructive
186
+
187
+ def add(value)
188
+ compatible!(value)
189
+ @collection.push(value)
190
+ end
191
+
192
+ def set(index, value, &_block)
193
+ compatible!(value)
194
+ if block_given?
195
+ @collection[index] = yield @collection[index]
196
+ else
197
+ @collection[index] = value
198
+ end
199
+ end
200
+
201
+ def []=(index, value)
202
+ compatible!(value)
203
+ @collection[index] = value
204
+ end
205
+
206
+ def insert(index, *values)
207
+ values.each { |value| compatible!(value) }
208
+ self.class.new(*@collection.insert(index, *values))
209
+ end
210
+
211
+ def delete(value)
212
+ compatible!(value)
213
+ @collection.delete(value)
214
+ end
215
+
216
+ def delete_at(index)
217
+ @collection.delete_at(index)
218
+ end
219
+
220
+ def unshift(value)
221
+ compatible!(value)
222
+ self.class.new(*@collection.unshift(value))
223
+ end
224
+ end
225
+ end
226
+ end
@@ -0,0 +1,3 @@
1
+ module Generics
2
+ VERSION = '0.1.0'
3
+ end
metadata ADDED
@@ -0,0 +1,255 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: generics
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - matrinox
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.12'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: awesome_print
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.6.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.6.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.10.4
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.10.4
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry-byebug
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 3.3.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 3.3.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry-coolline
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.2.5
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.2.5
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry-rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.3.4
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.3.4
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry-toys
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.0.2
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.0.2
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry-macro
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.0.1
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.0.1
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry-state
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.1.7
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.1.7
153
+ - !ruby/object:Gem::Dependency
154
+ name: pry-inline
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 1.0.1
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.0.1
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry-doc
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 0.9.0
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 0.9.0
181
+ - !ruby/object:Gem::Dependency
182
+ name: pry-highlight
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: 0.1.0
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: 0.1.0
195
+ - !ruby/object:Gem::Dependency
196
+ name: hamster
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: 3.0.0
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: 3.0.0
209
+ description: Generics for Ruby, starting with collections
210
+ email:
211
+ - geoff.lee@lendesk.com
212
+ executables: []
213
+ extensions: []
214
+ extra_rdoc_files: []
215
+ files:
216
+ - ".gitignore"
217
+ - CODE_OF_CONDUCT.md
218
+ - Gemfile
219
+ - LICENSE
220
+ - LICENSE.txt
221
+ - README.md
222
+ - Rakefile
223
+ - bin/console
224
+ - bin/setup
225
+ - generics.gemspec
226
+ - lib/generics.rb
227
+ - lib/generics/collections/list.rb
228
+ - lib/generics/version.rb
229
+ homepage: https://github.com/matrinox/generics
230
+ licenses:
231
+ - MIT
232
+ metadata:
233
+ allowed_push_host: https://rubygems.org
234
+ post_install_message:
235
+ rdoc_options: []
236
+ require_paths:
237
+ - lib
238
+ required_ruby_version: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - ">="
241
+ - !ruby/object:Gem::Version
242
+ version: '0'
243
+ required_rubygems_version: !ruby/object:Gem::Requirement
244
+ requirements:
245
+ - - ">="
246
+ - !ruby/object:Gem::Version
247
+ version: '0'
248
+ requirements: []
249
+ rubyforge_project:
250
+ rubygems_version: 2.4.5
251
+ signing_key:
252
+ specification_version: 4
253
+ summary: Generics for Ruby
254
+ test_files: []
255
+ has_rdoc: