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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +39 -3
  3. data/lib/cherry_pick/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9e9ed178a56da3cfcb433f295635ea678d07782
4
- data.tar.gz: 24d505495a299cb6b5e55884a8dcedc4d4c0d924
3
+ metadata.gz: eec031a669b74853e03f3968da2182f38c92bc30
4
+ data.tar.gz: 01294693ab09e64e441f247bb12f822fe47d6f0a
5
5
  SHA512:
6
- metadata.gz: 364e11eb1d973ae0f4db0d662e80a6ef63d2c7dc0df9bf5329d17c5301b6830ed19df4109f769ab9bbbf375774c2b93e11a2682f2d7d02ce7503970de91d1cc4
7
- data.tar.gz: 2e2c80b517cc2d45805829a50a86e1ef1e17be370049304cf45ef09af337cb819b9c0ff7c090773253aeae0895a0d57c27732068a8e42b280481236ca38192bc
6
+ metadata.gz: 4456e041b444b88dee756827d22d7ff02f9226bd137544bd7d2fe9b0abd94c68e86feba52d7963c70b38de084d6ce1bb6ddc4236a92839406d5c568b0429b530
7
+ data.tar.gz: eb9b16c388d426f6143bc83c742bcc11c3754692bcb5dc46ca34c545d333c0f02e3eed9a3af4099c630e7070af075ff07e541689179944d6ddd02d6e32abdfa2
data/README.md CHANGED
@@ -1,4 +1,40 @@
1
- cherry_pick
2
- ===========
1
+ [![Gem Version](https://badge.fury.io/rb/cherry_pick.png)](http://badge.fury.io/rb/cherry_pick)
3
2
 
4
- Allows cherry-picking of methods from modules.
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
@@ -1,3 +1,3 @@
1
1
  module CherryPick
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cherry_pick
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
  - Alex Sunderland