ruby_patches_merger 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +3 -3
- data/lib/ruby_patches_merger/cli.rb +18 -4
- data/lib/ruby_patches_merger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzQ4NGE2ZjQzNDFlNjM3MTgzMmUyZDA5YWZhMWQ0NzkxMjFhYWM5Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmEzMjQ5Njc0N2Y2MGJhYzk1OTIyY2M4MDlkZWU4ZTIxYmQyMGMzNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTA3Y2E3OTA2YWMyMDk3MmI2NDRjMTIzYmNiOTJmMDRhNjBlY2I4NzhlYjkw
|
10
|
+
YTZkMGY5YzM1Y2JiODYwZWNhY2JjZDgyOWZjMTgxMDZlZjIyOTI0ZWI3YzVi
|
11
|
+
Y2Y1Y2M3MGJiODY3OGQ0NWY1YmEyZTliNGNmZDk2ZjMzNDg4YTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTAxYWMzODEyMzU1YzY2NjcxYjBkNjNiNjMyMjVmYjRiN2U3ZjA3ZDQ0NTA1
|
14
|
+
NWQ5N2ZkMmZkYmE2NDc3MzA4MzZmYjIyNThjZjk2ZGViYjllMzU2NmE3MzYw
|
15
|
+
NTRiNjAyY2IwNzU0Y2MyYzM1YzI5M2Y1NDdiYWQxYTViOGUxMzI=
|
data/README.md
CHANGED
@@ -8,11 +8,11 @@ Help to manage ruby patches.
|
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
11
|
-
|
11
|
+
Download patches for revisions:
|
12
12
|
|
13
|
-
ruby_patches_merger r39171,r39296,r39333,r39334
|
13
|
+
ruby_patches_merger download r39171,r39296,r39333,r39334
|
14
14
|
|
15
|
-
Will download
|
15
|
+
Will download revisions to `patches/`, thanks to https://bugs.ruby-lang.org/issues/7959#note-16
|
16
16
|
|
17
17
|
## Testing
|
18
18
|
|
@@ -11,12 +11,26 @@ module RubyPatchesMerger
|
|
11
11
|
@args = args.map{|arg| arg.split(/[ ,]/)}.flatten
|
12
12
|
end
|
13
13
|
|
14
|
+
def help(message = nil)
|
15
|
+
puts message if message
|
16
|
+
puts <<HELP
|
17
|
+
Usage: ruby_patches_merger [download|help]
|
18
|
+
|
19
|
+
- download revisions,list
|
20
|
+
- help
|
21
|
+
|
22
|
+
HELP
|
23
|
+
end
|
24
|
+
|
14
25
|
def run
|
15
|
-
|
16
|
-
|
17
|
-
else
|
26
|
+
case args[0]
|
27
|
+
when 'download'
|
18
28
|
require 'ruby_patches_merger/revisions'
|
19
|
-
RubyPatchesMerger::Revisions.new(args).save_to("patches")
|
29
|
+
RubyPatchesMerger::Revisions.new(args[1..-1]).save_to("patches")
|
30
|
+
when nil, 'help', '--help'
|
31
|
+
help
|
32
|
+
else
|
33
|
+
help "Unknown arguments given '#{args*" "}'."
|
20
34
|
end
|
21
35
|
end
|
22
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_patches_merger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Papis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|