eventhub-command 0.3.10 → 0.3.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31956e06ddf87f5b42edb274d41b2ad09f1ce6a2
4
- data.tar.gz: b666d07a5ca7004cbbef827ff88b60f380ce2d60
3
+ metadata.gz: 34f63e30b80473d005569e2555a0aae58f61c552
4
+ data.tar.gz: 7d18fe1726a97ccccd5c0d193e1dc72cee8417e8
5
5
  SHA512:
6
- metadata.gz: 8e558e0d7740178635eaa30c4b759d6e77d1a7b56bc9b1205802b1f977ac9deb4c7c4680917f066f40c3ea850961bc2907c7cdaf727cc6e3666713f8780a8ef5
7
- data.tar.gz: fb19ef1c3cefd937bbce9cc2de907fba96cc2dcf7af1ea801bfd9c913e8b8d69da34402035909da49b61fbd9b968c6c66fd244dd7dc52bb8a91e3c293a9daede
6
+ metadata.gz: 9b09df1dd9833e7e37934c86914f87de839ae76273f54550edd8a7b4dc5cb191ca8687592054e7e6275851ebe27f77bb17a73d1c535420f51972cb9a79181f27
7
+ data.tar.gz: b1390577c4c215041eed272ccac92a7faf9efefa14c74da71d6d8ff4f91cc55cafe48de23c77173a5adb690b67dd6c90212ecd7eed392d81540594fe8c740e12
@@ -1,7 +1,7 @@
1
- desc 'Packages processors to zip files'
1
+ desc 'Packages processors to zip files. '
2
+ arg_name '[processor_name,[other_processor_name,pattern*]]'
2
3
  command :package_ruby do |c|
3
4
  c.flag([:x, :exclude], :desc => "Exclude processors by name.", :type => Array, :long_desc => "You can specify multiple processors by providing a comma-separated list.")
4
- c.flag([:p, :processors], :desc => "Specify what processors to package", :type => Array, :long_desc => "You can specify multiple processors by providing a comma-separated list.")
5
5
  c.flag([:d, :destination], :desc => "Destination directory to place created zip files.", :default_value => Eh::Settings.current.ruby_release_dir)
6
6
  c.flag([:s, :source], :desc => "Source directory to read processors from.", :default_value => Eh::Settings.current.processors_src_dir)
7
7
 
@@ -22,10 +22,20 @@ command :package_ruby do |c|
22
22
 
23
23
  included_processor_names = processor_names
24
24
 
25
- # only include processors specified by -p option, if option is given
26
- if options['p']
25
+ # if processor names are given as arguments then use them.
26
+ # can contain wildcards like "console.*" to include all processors
27
+ # starting with "console.".
28
+ if args[0]
29
+ processor_names_from_arguments = args[0].split(',').map(&:strip)
30
+
27
31
  included_processor_names = included_processor_names.select do |processor_name|
28
- options['p'].include?(processor_name)
32
+ processor_names_from_arguments.any? do |query|
33
+ if query.end_with?('*')
34
+ processor_name.start_with?(query.gsub('*', ''))
35
+ else
36
+ processor_name == query
37
+ end
38
+ end
29
39
  end
30
40
  end
31
41
 
@@ -42,7 +52,6 @@ command :package_ruby do |c|
42
52
  raise "There are no processor names. Either your -s directory is empty or you specified a strange combination of -x and -p"
43
53
  end
44
54
 
45
-
46
55
  # make sure destination directory exists
47
56
  FileUtils.mkdir_p(destination_dir)
48
57
 
data/lib/eh/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eh
2
- VERSION = '0.3.10'
2
+ VERSION = '0.3.11'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventhub-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pascal Betz
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-18 00:00:00.000000000 Z
12
+ date: 2015-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -200,3 +200,4 @@ signing_key:
200
200
  specification_version: 4
201
201
  summary: Event Hub Command Line Tool
202
202
  test_files: []
203
+ has_rdoc: true