tspec 0.4.0 → 0.5.0

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
- SHA1:
3
- metadata.gz: 84d333dcb760ef858b22802125d730f1b92620e3
4
- data.tar.gz: e584d70cc0359970c93dc0b5c4953a526a20720b
2
+ SHA256:
3
+ metadata.gz: 64e024fe79c4e1cf76a0647cb1c42b33a6f9eefcee58d4a1ddd8651571075d9f
4
+ data.tar.gz: 524fd57534f9f33bf92dfd46484066a9a44fec3e4d46e49b4bf2cf0d45ce962a
5
5
  SHA512:
6
- metadata.gz: 89a5b92412920594c39e4ea503a693e82036bbec41ef4447e2d4520267af63192c83e1fd663cf66949f006623ce956f363ba5b74979e5fb4e4f27e87ed4e6646
7
- data.tar.gz: dbe9ac78c9a44d35889114b8365aca4cfd8ec85f8c35bc34daa2609ed79bc87cc5febb31f73fa3b20ec2555c968b9ea1a7e97066ff3062df93cc7e4febf90425
6
+ metadata.gz: 2971b1ce3343d2e95c157f986cf012aa2ccd43eea0d37c7b67ed9932cbc7da6fbf059735d14605de95fdb0d9c041e201b1755385bd1bf74e18f4173da87c2f2f
7
+ data.tar.gz: 69d59975a69b4d855ceb740692eeb1bd49a0808d072bee5302d2cdd7f773af8d13bc871bd79c27064d179bd7b1e8dec6f6016cc903a69192d4cf997f6fb382c0
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig ADDED
Binary file
data/.travis.yml CHANGED
@@ -1,7 +1,5 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.2
5
- - 2.3.3
6
- - 2.4.0
7
- before_install: gem install bundler -v 1.14.3
4
+ - 2.5.0
5
+ before_install: gem install bundler -v 1.16.1
data/lib/tspec/core.rb CHANGED
@@ -101,7 +101,7 @@ module TSpec
101
101
  key = "#{tp.defined_class}::#{tp.method_id}"
102
102
 
103
103
  if types = @method_arguments_type_table[key]
104
- arguments = tp.binding.eval("method(:#{tp.method_id}).parameters.map(&:last)")
104
+ arguments = tp.binding.local_variables
105
105
 
106
106
  types.each do |name, type|
107
107
  name = arguments.first if name == type.__id__
data/lib/tspec/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TSpec
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
data/tspec.gemspec CHANGED
@@ -10,11 +10,11 @@ Gem::Specification.new do |spec|
10
10
  spec.authors = ["siman-man"]
11
11
  spec.email = ["k128585@ie.u-ryukyu.ac.jp"]
12
12
 
13
- spec.summary = %q{Add type check method}
14
- spec.description = %q{Add type check method}
13
+ spec.summary = %q{tspec can check type of methods arguments and return value.}
14
+ spec.description = %q{tspec can check type of methods arguments and return value.}
15
15
  spec.homepage = "https://github.com/siman-man/tspec"
16
16
  spec.license = "MIT"
17
- spec.required_ruby_version = '>= 2.2.0'
17
+ spec.required_ruby_version = '>= 2.5.0'
18
18
 
19
19
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
20
  f.match(%r{^(test|spec|features)/})
metadata CHANGED
@@ -1,14 +1,38 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - siman-man
8
8
  autorequire:
9
9
  bindir: exe
10
- cert_chain: []
11
- date: 2017-02-26 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIID0jCCArqgAwIBAgIBATANBgkqhkiG9w0BAQUFADBoMRAwDgYDVQQDDAdrMTI4
14
+ NTg1MRIwEAYKCZImiZPyLGQBGRYCaWUxGDAWBgoJkiaJk/IsZAEZFgh1LXJ5dWt5
15
+ dTESMBAGCgmSJomT8ixkARkWAmFjMRIwEAYKCZImiZPyLGQBGRYCanAwHhcNMTcw
16
+ NTEyMDg0MzI4WhcNMTgwNTEyMDg0MzI4WjBoMRAwDgYDVQQDDAdrMTI4NTg1MRIw
17
+ EAYKCZImi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+NJkf
33
+ BLzd24MyvHKRaGDWAmiJAd9Z04Vkyw==
34
+ -----END CERTIFICATE-----
35
+ date: 2018-02-27 00:00:00.000000000 Z
12
36
  dependencies:
13
37
  - !ruby/object:Gem::Dependency
14
38
  name: bundler
@@ -66,7 +90,7 @@ dependencies:
66
90
  - - "~>"
67
91
  - !ruby/object:Gem::Version
68
92
  version: '1.1'
69
- description: Add type check method
93
+ description: tspec can check type of methods arguments and return value.
70
94
  email:
71
95
  - k128585@ie.u-ryukyu.ac.jp
72
96
  executables: []
@@ -104,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
128
  requirements:
105
129
  - - ">="
106
130
  - !ruby/object:Gem::Version
107
- version: 2.2.0
131
+ version: 2.5.0
108
132
  required_rubygems_version: !ruby/object:Gem::Requirement
109
133
  requirements:
110
134
  - - ">="
@@ -112,8 +136,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
136
  version: '0'
113
137
  requirements: []
114
138
  rubyforge_project:
115
- rubygems_version: 2.6.10
139
+ rubygems_version: 2.7.6
116
140
  signing_key:
117
141
  specification_version: 4
118
- summary: Add type check method
142
+ summary: tspec can check type of methods arguments and return value.
119
143
  test_files: []
metadata.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ �H��1�w�[���
2
+ yM���{z焀�A�᠐�3��/d�ƝӐtMsH�e߮3_����D�ʏϻ��s�vR� ��'��"#|ǁ���Ր��oS�*��"�!GT��=�����KU譲�7Xv͋#��I�U�K