jvmargs 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,10 @@ module JVMArgs
10
10
  @value = true
11
11
  else
12
12
  @value = JVMArgs::Util.convert_to_m($2)
13
+ # value is a kilobyte value < 1 MB after conversion
14
+ if @value == "0M"
15
+ @value = JVMArgs::Util.normalize_units($2).join('')
16
+ end
13
17
  end
14
18
  end
15
19
 
data/lib/jvmargs/rules.rb CHANGED
@@ -25,7 +25,7 @@ module JVMArgs
25
25
  end
26
26
 
27
27
 
28
- def rule_heap_too_big(key="Xmx",args)
28
+ def rule_heap_too_big(args, key="Xmx")
29
29
  total_ram = JVMArgs::Util.get_raw_num(JVMArgs::Util.get_system_ram_m)
30
30
  new_ram = JVMArgs::Util.get_raw_num(args[:nonstandard][key].value)
31
31
  if new_ram > total_ram
@@ -33,7 +33,7 @@ module JVMArgs
33
33
  end
34
34
  end
35
35
 
36
- def rule_max_smaller_than_min(key="Xmx",args)
36
+ def rule_max_smaller_than_min(args, key="Xmx")
37
37
  if args[:nonstandard]["Xms"].nil?
38
38
  return
39
39
  else
@@ -1,4 +1,4 @@
1
1
  module JVMArgs
2
2
  # The gem version
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
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.3
4
+ version: 0.0.4
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-03-26 00:00:00.000000000 Z
12
+ date: 2013-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -115,6 +115,6 @@ rubyforge_project:
115
115
  rubygems_version: 1.8.24
116
116
  signing_key:
117
117
  specification_version: 3
118
- summary: jvmargs-0.0.3
118
+ summary: jvmargs-0.0.4
119
119
  test_files: []
120
120
  has_rdoc: