jvmargs 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jvmargs/directive.rb +3 -3
- data/lib/jvmargs/nonstandard.rb +2 -2
- data/lib/jvmargs/standard.rb +2 -2
- data/lib/jvmargs/unstable.rb +3 -3
- data/lib/jvmargs/version.rb +1 -1
- metadata +9 -9
data/lib/jvmargs/directive.rb
CHANGED
@@ -5,13 +5,13 @@ module JVMArgs
|
|
5
5
|
attr_accessor :key, :value
|
6
6
|
|
7
7
|
def initialize(arg)
|
8
|
-
arg.sub
|
8
|
+
stripped = arg.sub(/^-?D?/, '')
|
9
9
|
|
10
|
-
if
|
10
|
+
if stripped =~ /(.*?)=(.*)/
|
11
11
|
@key = $1
|
12
12
|
@value = $2
|
13
13
|
else
|
14
|
-
@key =
|
14
|
+
@key = stripped
|
15
15
|
@value = true
|
16
16
|
end
|
17
17
|
end
|
data/lib/jvmargs/nonstandard.rb
CHANGED
data/lib/jvmargs/standard.rb
CHANGED
data/lib/jvmargs/unstable.rb
CHANGED
@@ -4,14 +4,14 @@ module JVMArgs
|
|
4
4
|
attr_accessor :key, :value
|
5
5
|
|
6
6
|
def initialize(arg)
|
7
|
-
arg.sub
|
7
|
+
stripped = arg.sub(/^-?XX:/, '')
|
8
8
|
# check it if a boolean option
|
9
|
-
|
9
|
+
stripped =~ /(\+|-)(.*)/
|
10
10
|
if !$1.nil?
|
11
11
|
@key = $2
|
12
12
|
@value = $1 == '+' ? true : false
|
13
13
|
else
|
14
|
-
|
14
|
+
stripped =~ /(.*)=(.*)/
|
15
15
|
@key = $1
|
16
16
|
@value = $2
|
17
17
|
end
|
data/lib/jvmargs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jvmargs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|
@@ -81,16 +81,16 @@ executables: []
|
|
81
81
|
extensions: []
|
82
82
|
extra_rdoc_files: []
|
83
83
|
files:
|
84
|
-
- lib/jvmargs.rb
|
85
84
|
- lib/jvmargs/args.rb
|
85
|
+
- lib/jvmargs/directive.rb
|
86
|
+
- lib/jvmargs/heaprules.rb
|
86
87
|
- lib/jvmargs/nonstandard.rb
|
87
|
-
- lib/jvmargs/version.rb
|
88
88
|
- lib/jvmargs/rules.rb
|
89
|
-
- lib/jvmargs/util.rb
|
90
|
-
- lib/jvmargs/heaprules.rb
|
91
|
-
- lib/jvmargs/directive.rb
|
92
89
|
- lib/jvmargs/standard.rb
|
93
90
|
- lib/jvmargs/unstable.rb
|
91
|
+
- lib/jvmargs/util.rb
|
92
|
+
- lib/jvmargs/version.rb
|
93
|
+
- lib/jvmargs.rb
|
94
94
|
homepage: https://github.com/bryanwb/jvmargs
|
95
95
|
licenses:
|
96
96
|
- Apache2
|
@@ -112,9 +112,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 1.8.
|
115
|
+
rubygems_version: 1.8.25
|
116
116
|
signing_key:
|
117
117
|
specification_version: 3
|
118
|
-
summary: jvmargs-0.0.
|
118
|
+
summary: jvmargs-0.0.6
|
119
119
|
test_files: []
|
120
120
|
has_rdoc:
|