rbml 0.0.5.9.3.3 → 0.0.5.9.3.4
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/lib/cli_tools.rb +16 -8
- data/lib/rbml.rb +1 -1
- 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
|
-
|
31
|
-
|
30
|
+
seperate(args) if args
|
31
|
+
process_input
|
32
32
|
end
|
33
|
-
|
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
|
47
|
-
|
48
|
-
|
49
|
-
|
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
|
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.
|
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.
|
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:
|