detach 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/detach.rb +1 -0
  2. data/test/test_detach.rb +4 -0
  3. metadata +11 -9
  4. checksums.yaml +0 -7
data/lib/detach.rb CHANGED
@@ -97,6 +97,7 @@ module Detach
97
97
  #
98
98
  # Detach::Types does not need to be extended directly.
99
99
  module Types
100
+ @@types = nil
100
101
  # Decorator method for defining argument signature.
101
102
  #
102
103
  # Example:
data/test/test_detach.rb CHANGED
@@ -66,6 +66,10 @@ class TestDetach < Test::Unit::TestCase
66
66
  class Foo
67
67
  include Detach
68
68
 
69
+ def foo
70
+ raise 'unused, and no annotation'
71
+ end
72
+
69
73
  taking[String, String]
70
74
  def foo(a, b)
71
75
  "Strings #{a + b}"
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: detach
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ryan Calhoun
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-08-22 00:00:00.000000000 Z
12
+ date: 2015-10-15 00:00:00.000000000 Z
12
13
  dependencies: []
13
14
  description: A mixin which separates method definitions by argument types, effectively
14
15
  allowing C++ or Java style overloading.
@@ -18,34 +19,35 @@ executables: []
18
19
  extensions: []
19
20
  extra_rdoc_files: []
20
21
  files:
22
+ - lib/detach.rb
21
23
  - LICENSE.txt
22
24
  - README.md
23
- - Rakefile
24
- - lib/detach.rb
25
25
  - test/test_detach.rb
26
+ - Rakefile
26
27
  homepage: https://github.com/theryan/detach
27
28
  licenses:
28
29
  - MIT
29
- metadata: {}
30
30
  post_install_message:
31
31
  rdoc_options: []
32
32
  require_paths:
33
33
  - lib
34
34
  required_ruby_version: !ruby/object:Gem::Requirement
35
+ none: false
35
36
  requirements:
36
- - - ">="
37
+ - - ! '>='
37
38
  - !ruby/object:Gem::Version
38
39
  version: '0'
39
40
  required_rubygems_version: !ruby/object:Gem::Requirement
41
+ none: false
40
42
  requirements:
41
- - - ">="
43
+ - - ! '>='
42
44
  - !ruby/object:Gem::Version
43
45
  version: '0'
44
46
  requirements: []
45
47
  rubyforge_project:
46
- rubygems_version: 2.2.2
48
+ rubygems_version: 1.8.11
47
49
  signing_key:
48
- specification_version: 4
50
+ specification_version: 3
49
51
  summary: Separate methods by argument types
50
52
  test_files:
51
53
  - test/test_detach.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 70d08bcd4bfbae5a1aab1faa9900e26b0397ee1e
4
- data.tar.gz: fcae820f173e8053c35e82c23f53fcac47e77668
5
- SHA512:
6
- metadata.gz: 7742a36cc469786dc36c3aeea32a379f9d95fe6ce7c49bc072c1b331224baec0619e717a74a747b10bae20836bc10a11f2aa17776f3d786bcf429a98204c2e4a
7
- data.tar.gz: 548716816c73bd3719737768c0f2f2bb3a43e78a17a37ba9b2c76ae072b02438569478d8500f368be37e21eb6ed906b6ab87dec5d49613196ebe249ca800c423