mad_mimi_two 0.6.5 → 0.6.6

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.
data/bin/add_to_list.rb CHANGED
@@ -22,7 +22,7 @@ require 'optparse'
22
22
  #require 'java' if RUBY_PLATFORM =~ /java/
23
23
  # start the processing
24
24
  arg_hash=MadMimiTwo::Options.parse_options(ARGV)
25
- EstormScripts::Options.show_usage_exit(usage) if arg_hash[:help]==true
25
+ MadMimiTwo::Options.show_usage_exit(usage) if arg_hash[:help]==true
26
26
 
27
27
  require 'pp'
28
28
 
@@ -22,7 +22,7 @@ require 'optparse'
22
22
  #require 'java' if RUBY_PLATFORM =~ /java/
23
23
  # start the processing
24
24
  arg_hash=MadMimiTwo::Options.parse_options(ARGV)
25
- EstormScripts::Options.show_usage_exit(usage) if arg_hash[:help]==true
25
+ MadMimiTwo::Options.show_usage_exit(usage) if arg_hash[:help]==true
26
26
  require 'pp'
27
27
 
28
28
  options = arg_hash
data/bin/send_mimi.rb CHANGED
@@ -22,7 +22,7 @@ require 'optparse'
22
22
  #require 'java' if RUBY_PLATFORM =~ /java/
23
23
  # start the processing
24
24
  arg_hash=MadMimiTwo::Options.parse_options(ARGV)
25
- EstormScripts::Options.show_usage_exit(usage) if arg_hash[:help]==true
25
+ MadMimiTwo::Options.show_usage_exit(usage) if arg_hash[:help]==true
26
26
  require 'pp'
27
27
 
28
28
  options = arg_hash
@@ -29,8 +29,8 @@ module MadMimiTwo
29
29
  opts.on("-d","--debug", "turn on debug") { |val| temp_hash[:debug ] = true }
30
30
  opts.on("-k","--key VAL", String) { |val| temp_hash[:key ] = val
31
31
  puts "# mad mimi api key #{temp_hash[:key]}" }
32
- opts.on_tail("-h","--help", "get help message") { |val| temp_hash[:help ] = true
33
- puts opts }
32
+ opts.on_tail("-H","--help", "get help message") { |val| temp_hash[:help ] = true
33
+ puts opts }
34
34
 
35
35
  opts.parse(params)
36
36
  # puts " in HTTP #{hostname} port #{port} url: #{url}"
@@ -38,13 +38,14 @@ module MadMimiTwo
38
38
  return temp_hash
39
39
 
40
40
  end # parse options
41
+ def self.show_usage_exit(usage)
42
+ # usage=usage.gsub(/^\s*#/,'')
43
+ puts usage
44
+ exit
45
+ end
41
46
  end #class
42
47
  # help build xml commands from messages
43
- def self.show_usage_exit(usage)
44
- # usage=usage.gsub(/^\s*#/,'')
45
- puts usage
46
- exit
47
- end
48
+
48
49
 
49
50
  end #module
50
51
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mad_mimi_two
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 5
10
- version: 0.6.5
9
+ - 6
10
+ version: 0.6.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - scott sproule