cherry_pick 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +39 -3
- data/lib/cherry_pick/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eec031a669b74853e03f3968da2182f38c92bc30
|
4
|
+
data.tar.gz: 01294693ab09e64e441f247bb12f822fe47d6f0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4456e041b444b88dee756827d22d7ff02f9226bd137544bd7d2fe9b0abd94c68e86feba52d7963c70b38de084d6ce1bb6ddc4236a92839406d5c568b0429b530
|
7
|
+
data.tar.gz: eb9b16c388d426f6143bc83c742bcc11c3754692bcb5dc46ca34c545d333c0f02e3eed9a3af4099c630e7070af075ff07e541689179944d6ddd02d6e32abdfa2
|
data/README.md
CHANGED
@@ -1,4 +1,40 @@
|
|
1
|
-
cherry_pick
|
2
|
-
===========
|
1
|
+
[](http://badge.fury.io/rb/cherry_pick)
|
3
2
|
|
4
|
-
|
3
|
+
# CherryPick
|
4
|
+
|
5
|
+
Allows class and instance methods to be taken from modules, without including/extending the entire module.
|
6
|
+
|
7
|
+
This gem is not intended for serious use.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
gem 'cherry_pick'
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install cherry_pick
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Include the module
|
26
|
+
|
27
|
+
include CherryPick
|
28
|
+
|
29
|
+
Then declare your cherrypicked methods, and where they're coming from.
|
30
|
+
|
31
|
+
cherry_pick :foo, Foo
|
32
|
+
class_cherry_pick :bar, :baz, Bam
|
33
|
+
|
34
|
+
## Contributing
|
35
|
+
|
36
|
+
1. Fork it
|
37
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
38
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
39
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
40
|
+
5. Create new Pull Request
|
data/lib/cherry_pick/version.rb
CHANGED