rbml 0.0.5.9.3.3 → 0.0.5.9.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/cli_tools.rb +16 -8
  2. data/lib/rbml.rb +1 -1
  3. metadata +1 -1
data/lib/cli_tools.rb CHANGED
@@ -27,10 +27,11 @@ module Flagger
27
27
  end
28
28
 
29
29
  def process(args=nil)
30
- seperate_arguments_from(args) if args
31
- process_command_line_input
30
+ seperate(args) if args
31
+ process_input
32
32
  end
33
- def seperate_arguments_from(args=nil)
33
+
34
+ def seperate(args=nil)
34
35
  return nil unless args
35
36
  args = args.duplicate
36
37
  while !args.empty? and not args.first.flag?
@@ -43,10 +44,17 @@ module Flagger
43
44
  @flags = args
44
45
  end
45
46
 
46
- def process_command_line_input &blk
47
- flags = parse_flags(@flags)
48
- run_flags @active_keys
49
- run_flags flags
47
+ def run_flags
48
+ process_flags parse_flags(@flags)
49
+ end
50
+
51
+ def run_keys
52
+ process_flags @active_keys
53
+ end
54
+
55
+ def process_input &blk
56
+ run_flags
57
+ run_keys
50
58
  end
51
59
 
52
60
  def trip_flag which, with_value=nil
@@ -113,7 +121,7 @@ module Flagger
113
121
  @associated_blocks.merge! tmp
114
122
  end
115
123
 
116
- def run_flags(options)
124
+ def process_flags(options)
117
125
  options.each { |key, value|
118
126
  @associated_blocks[key.to_sym][value] rescue help_docs
119
127
  }
data/lib/rbml.rb CHANGED
@@ -2,7 +2,7 @@ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)) + "/../languages")
2
2
  $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Rbml
5
- VERSION = '0.0.5.9.3.3'
5
+ VERSION = '0.0.5.9.3.4'
6
6
  end
7
7
  require 'extensions/kernel'
8
8
  require 'extensions/primitives'
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: rbml
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.5.9.3.3
6
+ version: 0.0.5.9.3.4
7
7
  date: 2007-05-02 00:00:00 -04:00
8
8
  summary: Rbml is a dsl framework for writing other languages in ruby
9
9
  require_paths: