jvmargs 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,13 +5,13 @@ module JVMArgs
5
5
  attr_accessor :key, :value
6
6
 
7
7
  def initialize(arg)
8
- arg.sub!(/^-?D?/, '')
8
+ stripped = arg.sub(/^-?D?/, '')
9
9
 
10
- if arg =~ /(.*?)=(.*)/
10
+ if stripped =~ /(.*?)=(.*)/
11
11
  @key = $1
12
12
  @value = $2
13
13
  else
14
- @key = arg
14
+ @key = stripped
15
15
  @value = true
16
16
  end
17
17
  end
@@ -3,8 +3,8 @@ module JVMArgs
3
3
  attr_accessor :key, :value
4
4
 
5
5
  def initialize(arg)
6
- arg.sub!(/^-/, '')
7
- arg =~ /(X[a-z]+)([0-9]+[a-zA-Z])?/
6
+ stripped = arg.sub(/^-/, '')
7
+ stripped =~ /(X[a-z]+)([0-9]+[a-zA-Z])?/
8
8
  @key = $1
9
9
  if $2.nil?
10
10
  @value = true
@@ -5,8 +5,8 @@ module JVMArgs
5
5
  attr_accessor :key, :value
6
6
 
7
7
  def initialize(arg)
8
- arg.sub!(/^-/, '')
9
- @key = arg
8
+ stripped = arg.sub(/^-/, '')
9
+ @key = stripped
10
10
  @value = true
11
11
  end
12
12
 
@@ -4,14 +4,14 @@ module JVMArgs
4
4
  attr_accessor :key, :value
5
5
 
6
6
  def initialize(arg)
7
- arg.sub!(/^-?XX:/, '')
7
+ stripped = arg.sub(/^-?XX:/, '')
8
8
  # check it if a boolean option
9
- arg =~ /(\+|-)(.*)/
9
+ stripped =~ /(\+|-)(.*)/
10
10
  if !$1.nil?
11
11
  @key = $2
12
12
  @value = $1 == '+' ? true : false
13
13
  else
14
- arg =~ /(.*)=(.*)/
14
+ stripped =~ /(.*)=(.*)/
15
15
  @key = $1
16
16
  @value = $2
17
17
  end
@@ -1,4 +1,4 @@
1
1
  module JVMArgs
2
2
  # The gem version
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.6'
4
4
  end
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
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-04-02 00:00:00.000000000 Z
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.24
115
+ rubygems_version: 1.8.25
116
116
  signing_key:
117
117
  specification_version: 3
118
- summary: jvmargs-0.0.4
118
+ summary: jvmargs-0.0.6
119
119
  test_files: []
120
120
  has_rdoc: