typerb 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +2 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +16 -18
- data/lib/typerb.rb +1 -1
- data/lib/typerb/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0d36da771caf7376c9ade13b380b77ae20cd50ac03172c86e6d54f3c54af5414
|
4
|
+
data.tar.gz: 1bb04d2199a1384049168302010c8a8d0e5114301e26108167d8d54810f4c79a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79fa49f81f729c9e760afe1cd4abf5e2d259b1ed48a711ff64732a1411219c2d6c6fd2154dc5386e3b12d4f7cd607d4f612e06908938802ae6890c2cfd0029be
|
7
|
+
data.tar.gz: 5f405c7242a53f27925df6981944cc31f57b7bad60077aa36c9f7c08fd6a6a428998caca93ddf3f124829c5b40254f840bcbdf183d20ce19b41caf7b2438ebfa
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6.
|
1
|
+
2.6.6
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
typerb (0.
|
4
|
+
typerb (0.3.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -10,7 +10,7 @@ GEM
|
|
10
10
|
awesome_print (1.8.0)
|
11
11
|
coderay (1.1.2)
|
12
12
|
diff-lcs (1.3)
|
13
|
-
ffi (1.
|
13
|
+
ffi (1.11.1)
|
14
14
|
formatador (0.2.5)
|
15
15
|
guard (2.15.0)
|
16
16
|
formatador (>= 0.2.4)
|
@@ -26,7 +26,7 @@ GEM
|
|
26
26
|
guard (~> 2.1)
|
27
27
|
guard-compat (~> 1.1)
|
28
28
|
rspec (>= 2.99.0, < 4.0)
|
29
|
-
jaro_winkler (1.5.
|
29
|
+
jaro_winkler (1.5.3)
|
30
30
|
listen (3.1.5)
|
31
31
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
32
32
|
rb-inotify (~> 0.9, >= 0.9.7)
|
@@ -37,46 +37,44 @@ GEM
|
|
37
37
|
notiffany (0.1.1)
|
38
38
|
nenv (~> 0.1)
|
39
39
|
shellany (~> 0.0)
|
40
|
-
parallel (1.
|
41
|
-
parser (2.
|
40
|
+
parallel (1.17.0)
|
41
|
+
parser (2.6.3.0)
|
42
42
|
ast (~> 2.4.0)
|
43
|
-
powerpack (0.1.2)
|
44
43
|
pry (0.12.2)
|
45
44
|
coderay (~> 1.1.0)
|
46
45
|
method_source (~> 0.9.0)
|
47
46
|
rainbow (3.0.0)
|
48
47
|
rake (12.3.2)
|
49
48
|
rb-fsevent (0.10.3)
|
50
|
-
rb-inotify (0.
|
51
|
-
ffi (
|
49
|
+
rb-inotify (0.10.0)
|
50
|
+
ffi (~> 1.0)
|
52
51
|
rspec (3.8.0)
|
53
52
|
rspec-core (~> 3.8.0)
|
54
53
|
rspec-expectations (~> 3.8.0)
|
55
54
|
rspec-mocks (~> 3.8.0)
|
56
|
-
rspec-core (3.8.
|
55
|
+
rspec-core (3.8.1)
|
57
56
|
rspec-support (~> 3.8.0)
|
58
|
-
rspec-expectations (3.8.
|
57
|
+
rspec-expectations (3.8.4)
|
59
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
60
59
|
rspec-support (~> 3.8.0)
|
61
|
-
rspec-mocks (3.8.
|
60
|
+
rspec-mocks (3.8.1)
|
62
61
|
diff-lcs (>= 1.2.0, < 2.0)
|
63
62
|
rspec-support (~> 3.8.0)
|
64
|
-
rspec-support (3.8.
|
65
|
-
rubocop (0.
|
63
|
+
rspec-support (3.8.2)
|
64
|
+
rubocop (0.72.0)
|
66
65
|
jaro_winkler (~> 1.5.1)
|
67
66
|
parallel (~> 1.10)
|
68
|
-
parser (>= 2.
|
69
|
-
powerpack (~> 0.1)
|
67
|
+
parser (>= 2.6)
|
70
68
|
rainbow (>= 2.2.2, < 4.0)
|
71
69
|
ruby-progressbar (~> 1.7)
|
72
|
-
unicode-display_width (
|
73
|
-
ruby-progressbar (1.10.
|
70
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
71
|
+
ruby-progressbar (1.10.1)
|
74
72
|
ruby_dep (1.5.0)
|
75
73
|
shellany (0.0.1)
|
76
74
|
super_awesome_print (0.2.5)
|
77
75
|
awesome_print
|
78
76
|
thor (0.20.3)
|
79
|
-
unicode-display_width (1.
|
77
|
+
unicode-display_width (1.6.0)
|
80
78
|
|
81
79
|
PLATFORMS
|
82
80
|
ruby
|
data/lib/typerb.rb
CHANGED
@@ -5,7 +5,7 @@ require 'typerb/variable_name'
|
|
5
5
|
require 'typerb/exceptional'
|
6
6
|
|
7
7
|
module Typerb
|
8
|
-
refine
|
8
|
+
refine BasicObject do
|
9
9
|
def type!(*klasses)
|
10
10
|
raise ArgumentError, 'provide at least one class' if klasses.empty?
|
11
11
|
return self if klasses.any? { |kls| is_a?(kls) }
|
data/lib/typerb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typerb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Antonyan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -167,8 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
|
-
|
171
|
-
rubygems_version: 2.6.14.1
|
170
|
+
rubygems_version: 3.0.3
|
172
171
|
signing_key:
|
173
172
|
specification_version: 4
|
174
173
|
summary: Typecheck sugar for Ruby.
|