ov 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +7 -7
- data/Rakefile +2 -6
- data/lib/ov/version.rb +1 -1
- data/ov.gemspec +2 -2
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3409748614eefe08f0fbe3b99b5b7f7ec3f71e03b81d037a2e44285ed584fce5
|
4
|
+
data.tar.gz: 2d3a4e8c16561931ec702abc89b961d0cb64d565fc94a798e774c30ef22201b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7143608b15d4beb711e9dff8b06d6371a8f38b7d7045e34fc7839ee1f58b921ce9d65aeede5eecf82eaedf32d83f9409b8bad391cc8fa02d857039dcbf66a90
|
7
|
+
data.tar.gz: 5650ef3869f093be3666dd132c60c6b3f21bea990a31e9be128d13caea374dadfd64d5e0b04b66411df10d2ed6dbecd85a4ceba67a255c889165ffc1105fab80
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ov
|
2
2
|
|
3
|
-
Create
|
3
|
+
Create multimethods in Ruby
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -17,7 +17,7 @@ Or install it yourself as:
|
|
17
17
|
$ gem install ov
|
18
18
|
|
19
19
|
|
20
|
-
##
|
20
|
+
## A few examples:
|
21
21
|
|
22
22
|
```ruby
|
23
23
|
require 'ov'
|
@@ -84,7 +84,7 @@ puts result
|
|
84
84
|
|
85
85
|
## Usage
|
86
86
|
|
87
|
-
Firstly include `Ov` in
|
87
|
+
Firstly include `Ov` in your class
|
88
88
|
|
89
89
|
```ruby
|
90
90
|
class MyClass
|
@@ -92,7 +92,7 @@ class MyClass
|
|
92
92
|
end
|
93
93
|
```
|
94
94
|
|
95
|
-
After define method with types:
|
95
|
+
After: define method with types:
|
96
96
|
|
97
97
|
```ruby
|
98
98
|
class MyClass
|
@@ -217,7 +217,7 @@ end
|
|
217
217
|
|
218
218
|
Examples
|
219
219
|
--------
|
220
|
-
see [link](https://github.com/
|
220
|
+
see [link](https://github.com/fntz/ov/blob/master/samples)
|
221
221
|
|
222
222
|
## TODO
|
223
223
|
|
@@ -226,13 +226,13 @@ see [link](https://github.com/fntzr/ov/blob/master/samples)
|
|
226
226
|
|
227
227
|
```ruby
|
228
228
|
# multiple arguments
|
229
|
-
let :test,
|
229
|
+
let :test, Integer, [String] # signature: Integer, and others must be String
|
230
230
|
|
231
231
|
let :test, Multiple #any types
|
232
232
|
|
233
233
|
let :test, :foo # Type must have :foo method
|
234
234
|
|
235
|
-
let :test, Or[
|
235
|
+
let :test, Or[Integer, String] # work for String or Integer
|
236
236
|
|
237
237
|
```
|
238
238
|
|
data/Rakefile
CHANGED
data/lib/ov/version.rb
CHANGED
data/ov.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler",
|
22
|
-
spec.add_development_dependency "rake", '~>
|
21
|
+
spec.add_development_dependency "bundler", '~> 2.0'
|
22
|
+
spec.add_development_dependency "rake", '~> 12.3', '>= 12.3.3'
|
23
23
|
spec.add_development_dependency "rspec", '~> 2.14', '>= 2.14.0'
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fntz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,34 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.3'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 12.3.3
|
34
37
|
type: :development
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
41
|
- - "~>"
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
43
|
+
version: '12.3'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 12.3.3
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rspec
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|