detach 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -0
  3. data/README.md +43 -0
  4. data/Rakefile +8 -0
  5. metadata +12 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5f072cc4f0f35c933ba67ede12f20dbd8bcb258
4
- data.tar.gz: f442b9baf99c44c4a49ec2f8af5bc6bce365f50a
3
+ metadata.gz: 027a42175e76f59b5a91a5249fb6110e4c00423e
4
+ data.tar.gz: 99ddc23742785f51a11d419f97341ed80fd932c2
5
5
  SHA512:
6
- metadata.gz: 9d6f1eeb94dc88d3db16390ef1c802fb9421bee7c4fe17d06fce3ca7e3b9a50c247c7599b82254e34090d558f76d31d36f94c76968aed339557a5645a6ba54f6
7
- data.tar.gz: 0bddec8616d667425cdae4b0c6c775cc8dadea9b863bc307125ddfd068bdeaa788fcd0b88a0660e948aeb61820f870a09514f56d0c6df2d0d5a86c935ffe0db0
6
+ metadata.gz: d30ae00bde8f41e98b7b1335dcd7e6375b568282b2ee42df563af20fa00313cdf749e22045904400fe2e7170bc8637b962a9d4dbc06d4dd45b401429e326f8ac
7
+ data.tar.gz: 0811b6cd984df09d1183797e26ab55c07e72b9ab636cfd20bcc8d24c41670d3ad47202bc9ae55661e2f0390820382a9646f6a348d93b973a75ebfd3a9e674709
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Ryan Calhoun
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Detach
2
+
3
+ A mixin which separates method definitions by argument types, effectively allowing
4
+ C++ or Java style overloading.
5
+
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ gem 'detach'
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install detach
20
+
21
+ ## Usage
22
+
23
+ Include the module
24
+
25
+ include Detach
26
+
27
+ Then declare your overloaded methods
28
+
29
+ taking['String','Numeric']
30
+ def foo(a,b)
31
+ end
32
+
33
+ taking['Object']
34
+ def foo(a)
35
+ end
36
+
37
+ ## Contributing
38
+
39
+ 1. Fork it
40
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
41
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
42
+ 4. Push to the branch (`git push origin my-new-feature`)
43
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new {|t|
4
+ t.libs << 'test'
5
+ }
6
+
7
+ desc 'Run tests'
8
+ task :default => :test
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: detach
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Calhoun
@@ -10,16 +10,21 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-08-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description:
13
+ description: A mixin which separates method definitions by argument types, effectively
14
+ allowing C++ or Java style overloading.
14
15
  email:
15
16
  executables: []
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - LICENSE.txt
21
+ - README.md
22
+ - Rakefile
19
23
  - lib/detach.rb
20
24
  - test/test_detach.rb
21
- homepage:
22
- licenses: []
25
+ homepage: https://rubygems.org/gems/detach
26
+ licenses:
27
+ - MIT
23
28
  metadata: {}
24
29
  post_install_message:
25
30
  rdoc_options: []
@@ -41,4 +46,6 @@ rubygems_version: 2.2.2
41
46
  signing_key:
42
47
  specification_version: 4
43
48
  summary: Separate methods by argument types
44
- test_files: []
49
+ test_files:
50
+ - test/test_detach.rb
51
+ - Rakefile