rtype-java 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26d9b5f52a0751920c528ad09892902417a87c6a
4
- data.tar.gz: 17914c634ee6098bad49631b880639f198177395
3
+ metadata.gz: 5628afd30e9995538e73c1bbcb7e67e9778489e7
4
+ data.tar.gz: 6d570cae0d421503c76aca5c1bcbb8f0e1fbfaab
5
5
  SHA512:
6
- metadata.gz: 31b92c9b62a23d35acb9b2552c7c52dc5e94a3760bc513cc63d7439757e5e0d2a690c312ad3edaf0046ce48f4077c9a0d56000867afbb5434cd0e2d0a610864f
7
- data.tar.gz: a7fd347eeb62797636bd729115b2c9a0df323a6a7d7e3285353e89ea6805761d191cdcfbb46669645974e61a062a9ff3324cc4108e3142f6d80e048948855f1c
6
+ metadata.gz: 96da455dae94c79f5fc6584c50a6515de2350bbe5af0d71ea9c4abc2f60c7b1f3dfc920459a006ff772702f636cebb4fc69e6cb68951d2300ea01eb79f575139
7
+ data.tar.gz: 12f17b8e16dde147d73b8ccb5fc4342e055699480864a39b8b101799bd2ddfa4ab184418537e05d2c0dd2292e3b04af009d2377f3c83123cbf97f1ea6067d95d
Binary file
data/spec/rtype_spec.rb CHANGED
@@ -609,7 +609,7 @@ describe Rtype do
609
609
  it 'is hash-type argument, not keyword argument' do
610
610
  klass.send :rtype, :return_arg, [{a: String}, {}] => Any
611
611
  expect {
612
- instance.return_arg({a: 123}, {})
612
+ instance.return_arg({a: 123})
613
613
  }.to raise_error Rtype::ArgumentTypeError
614
614
  end
615
615
  end
@@ -744,9 +744,11 @@ describe Rtype do
744
744
 
745
745
  describe 'method visibility works' do
746
746
  it 'protected' do
747
+ klass.send :rtype, :protected_func, [] => Any
747
748
  expect {instance.protected_func}.to raise_error NoMethodError
748
749
  end
749
750
  it 'private' do
751
+ klass.send :rtype, :private_func, [] => Any
750
752
  expect {instance.private_func}.to raise_error NoMethodError
751
753
  end
752
754
  end
@@ -776,7 +778,7 @@ describe Rtype do
776
778
  it 'raises error' do
777
779
  klass.send :rtype, :return_arg, [{a: String}, {}] => Any
778
780
  expect {
779
- instance.return_arg({a: "str", b: "str"}, {})
781
+ instance.return_arg({a: "str", b: "str"})
780
782
  }.to raise_error Rtype::ArgumentTypeError
781
783
  end
782
784
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtype-java
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sputnik Gugja
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-31 00:00:00.000000000 Z
11
+ date: 2016-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtype
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.6.5
19
+ version: 0.6.6
20
20
  type: :runtime
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: 0.6.5
26
+ version: 0.6.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement