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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjRmYTA4N2YxYTVlMDVkOTc5YWY0ODY0MmJhY2Q0OTgxZDExNzcwZQ==
4
+ YzQ4NGE2ZjQzNDFlNjM3MTgzMmUyZDA5YWZhMWQ0NzkxMjFhYWM5Yg==
5
5
  data.tar.gz: !binary |-
6
- MmFmZmFmM2FkMmY0YjEwYmE4ZWNjZDUxNDVjZWQ5YjA1OTAzNzYwMQ==
6
+ YmEzMjQ5Njc0N2Y2MGJhYzk1OTIyY2M4MDlkZWU4ZTIxYmQyMGMzNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzkxZDc2YjQzNzA4NzUyMTIzOGIyZjI5ZDMzZjE4NTY4NjZkOWE4NTBjM2Mz
10
- YjI2MzYwMjUyMzg1NjVhNDZlYWVmYTI0OWRkNGVkMzAwYzcwZTliNGMwYjAw
11
- M2RjZTNjN2MwZWVlOGMxYjAzN2YyMWM3NzE0ZGQxOTFkMzExMjQ=
9
+ YTA3Y2E3OTA2YWMyMDk3MmI2NDRjMTIzYmNiOTJmMDRhNjBlY2I4NzhlYjkw
10
+ YTZkMGY5YzM1Y2JiODYwZWNhY2JjZDgyOWZjMTgxMDZlZjIyOTI0ZWI3YzVi
11
+ Y2Y1Y2M3MGJiODY3OGQ0NWY1YmEyZTliNGNmZDk2ZjMzNDg4YTM=
12
12
  data.tar.gz: !binary |-
13
- OTM1MmU4NDljNjQyOTFjNGUyZjU2NTg4OThkNzZiZDYwYjdiZmUwYmY5YTRk
14
- NjMxMjYwOWJkY2M0MThhMWQ1NjRmZDBkYjdkNDNhNDhlNzZjMTAyNjRlYzc0
15
- NzYyMzZjOTg1MThlZWE4MTMyMGNkZWY5NTI4MDNhZDgzMzZmMjI=
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
- So far only downloading patches for revisions is implemented:
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 patches for those revisions to `patches/`, thanks to https://bugs.ruby-lang.org/issues/7959#note-16
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
- if args.empty?
16
- puts "No arguments given - try: ruby_patches_merger revision1 revision2,revision3"
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
@@ -1,3 +1,3 @@
1
1
  module RubyPatchesMerger
2
- VERSION = '0.1.1'
2
+ VERSION = '0.2.0'
3
3
  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.1.1
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-15 00:00:00.000000000 Z
11
+ date: 2013-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri