irxrb 0.0.7 → 0.1.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 +8 -8
- data/irxrb.gemspec +1 -1
- data/lib/irxrb/version.rb +1 -1
- data/spec/generic_type_spec.rb +8 -9
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmUxYWI0M2Y2NTQ4MzU0MDUzMDlhNWZlYTg2NWZkMjg5ODkzMjA5ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWMzMWRmNTBmN2JjYzFkODllMDRlY2Y5NTZhOWY0NDU1M2RkYzliZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTYxYjQ3NDc2OTE5N2JiZGU4ZDMzZTdiZWU5NTU1ZDE5NTMyNWU0NzZkZDk1
|
10
|
+
ZGVlMTNjN2I4ZDAwZjY4YTRiYzg5YWM0NThmMWM5MmUzMTMyYzAxOGY2MGEy
|
11
|
+
NjUxNzExZmU5MTY2M2E5MDhjNWZkZDAyNDU5NzdkYjBkMTE5M2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTRiNDlkNjBlMTIzZTlmYzFlNjliZGQyYmM0YTU2N2I4NjRlMzI5MTlkZGQ5
|
14
|
+
NWFjMDViYjIzMzQ5YTJkMTk3YjJkN2JjZTIxNWYwNWRmODVkNzEwZGI4N2Y3
|
15
|
+
OWJjODI0ZDAzNzUyNzViOWFjMzZmNzA3MTAyNTBiODRiYzY1ZTY=
|
data/irxrb.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.description = %q{Ruby extension}
|
8
8
|
gem.summary = %q{Ruby extension}
|
9
9
|
gem.homepage = "https://github.com/irxground/irxrb"
|
10
|
-
|
10
|
+
gem.license = 'MIT'
|
11
11
|
gem.files = `git ls-files`.split($\)
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
data/lib/irxrb/version.rb
CHANGED
data/spec/generic_type_spec.rb
CHANGED
@@ -17,8 +17,9 @@ describe Irxrb::GenericType do
|
|
17
17
|
|
18
18
|
describe 'instance' do
|
19
19
|
subject { Factory[String].new }
|
20
|
-
|
21
|
-
it { should
|
20
|
+
|
21
|
+
it { should be_kind_of(Factory) }
|
22
|
+
it { should be_an_instance_of(Factory[String]) }
|
22
23
|
it { should_not be_an_instance_of(Factory[Object]) }
|
23
24
|
|
24
25
|
specify { subject.T == String }
|
@@ -30,17 +31,15 @@ describe Irxrb::GenericType do
|
|
30
31
|
module Map
|
31
32
|
type_parameter :Key, :Value
|
32
33
|
end
|
33
|
-
|
34
34
|
class ConcreteMap
|
35
35
|
include Map[Integer, String]
|
36
36
|
end
|
37
37
|
|
38
|
-
|
39
|
-
specify {
|
40
|
-
specify {
|
41
|
-
specify {
|
42
|
-
specify {
|
43
|
-
specify { subject.new.should_not be_kind_of(Map[String, String]) }
|
38
|
+
specify { ConcreteMap::Key.should == Integer }
|
39
|
+
specify { ConcreteMap::Value.should == String }
|
40
|
+
specify { ConcreteMap.new.should be_kind_of(Map) }
|
41
|
+
specify { ConcreteMap.new.should be_kind_of(Map[Integer, String]) }
|
42
|
+
specify { ConcreteMap.new.should_not be_kind_of(Map[String, String]) }
|
44
43
|
end
|
45
44
|
end
|
46
45
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irxrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- irxground
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby extension
|
14
14
|
email:
|
@@ -51,7 +51,8 @@ files:
|
|
51
51
|
- spec/range_to_regex_spec.rb
|
52
52
|
- spec/spec_helper.rb
|
53
53
|
homepage: https://github.com/irxground/irxrb
|
54
|
-
licenses:
|
54
|
+
licenses:
|
55
|
+
- MIT
|
55
56
|
metadata: {}
|
56
57
|
post_install_message:
|
57
58
|
rdoc_options: []
|