jvmargs 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a114ea124730cee5631a4de8fb75b080539bfa53
4
+ data.tar.gz: 127f4bb3f6c17cad1a23accd80348fc9df95eb0b
5
+ SHA512:
6
+ metadata.gz: ef8c5562c6193db012ef792ccdb30e1a716cd9546d87accee35c2f7194d0c7f8ac30f93d4703b7847a5a35cb16d1bdf4b0dec387870049d6d6a0295e4de1a258
7
+ data.tar.gz: 2395b34cfc76f967b599fdddbf5083a3b4794ac5eef4ea7096488c2aef0a09c447bd65632389d60e242f1541f5514224a430e1603f9d758bb5ef5a11b5ead3c8
data/lib/jvmargs/util.rb CHANGED
@@ -8,7 +8,11 @@ module JVMArgs
8
8
  else
9
9
  require 'ohai'
10
10
  ohai = Ohai::System.new
11
- ohai.require_plugin "linux::memory"
11
+ begin
12
+ ohai.all_plugins "memory"
13
+ rescue ArgumentError
14
+ ohai.require_plugin "linux::memory"
15
+ end
12
16
  total_ram = ohai["memory"]["total"]
13
17
  end
14
18
  self.convert_to_m(total_ram)
@@ -1,4 +1,4 @@
1
1
  module JVMArgs
2
2
  # The gem version
3
- VERSION = '0.0.7'
3
+ VERSION = '0.0.8'
4
4
  end
metadata CHANGED
@@ -1,78 +1,70 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jvmargs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
5
- prerelease:
4
+ version: 0.0.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bryan W. Berry
8
+ - Thom May
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-22 00:00:00.000000000 Z
12
+ date: 2014-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
16
16
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
17
  requirements:
19
- - - ! '>='
18
+ - - ">="
20
19
  - !ruby/object:Gem::Version
21
20
  version: '10.0'
22
21
  type: :runtime
23
22
  prerelease: false
24
23
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
- - - ! '>='
25
+ - - ">="
28
26
  - !ruby/object:Gem::Version
29
27
  version: '10.0'
30
28
  - !ruby/object:Gem::Dependency
31
29
  name: rspec
32
30
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
31
  requirements:
35
- - - ~>
32
+ - - "~>"
36
33
  - !ruby/object:Gem::Version
37
- version: 2.13.0
34
+ version: 3.0.0
38
35
  type: :development
39
36
  prerelease: false
40
37
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
- - - ~>
39
+ - - "~>"
44
40
  - !ruby/object:Gem::Version
45
- version: 2.13.0
41
+ version: 3.0.0
46
42
  - !ruby/object:Gem::Dependency
47
43
  name: rake
48
44
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
45
  requirements:
51
- - - ~>
46
+ - - "~>"
52
47
  - !ruby/object:Gem::Version
53
48
  version: 0.9.2.2
54
49
  type: :development
55
50
  prerelease: false
56
51
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
- - - ~>
53
+ - - "~>"
60
54
  - !ruby/object:Gem::Version
61
55
  version: 0.9.2.2
62
56
  - !ruby/object:Gem::Dependency
63
57
  name: pry
64
58
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
59
  requirements:
67
- - - ! '>='
60
+ - - ">="
68
61
  - !ruby/object:Gem::Version
69
62
  version: '0'
70
63
  type: :development
71
64
  prerelease: false
72
65
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
66
  requirements:
75
- - - ! '>='
67
+ - - ">="
76
68
  - !ruby/object:Gem::Version
77
69
  version: '0'
78
70
  description: Sanity check command-line arguments to the JVM
@@ -81,6 +73,7 @@ executables: []
81
73
  extensions: []
82
74
  extra_rdoc_files: []
83
75
  files:
76
+ - lib/jvmargs.rb
84
77
  - lib/jvmargs/args.rb
85
78
  - lib/jvmargs/directive.rb
86
79
  - lib/jvmargs/heaprules.rb
@@ -90,31 +83,28 @@ files:
90
83
  - lib/jvmargs/unstable.rb
91
84
  - lib/jvmargs/util.rb
92
85
  - lib/jvmargs/version.rb
93
- - lib/jvmargs.rb
94
86
  homepage: https://github.com/bryanwb/jvmargs
95
87
  licenses:
96
88
  - Apache2
89
+ metadata: {}
97
90
  post_install_message:
98
91
  rdoc_options: []
99
92
  require_paths:
100
93
  - lib
101
94
  required_ruby_version: !ruby/object:Gem::Requirement
102
- none: false
103
95
  requirements:
104
- - - ! '>='
96
+ - - ">="
105
97
  - !ruby/object:Gem::Version
106
98
  version: '0'
107
99
  required_rubygems_version: !ruby/object:Gem::Requirement
108
- none: false
109
100
  requirements:
110
- - - ! '>='
101
+ - - ">="
111
102
  - !ruby/object:Gem::Version
112
103
  version: '0'
113
104
  requirements: []
114
105
  rubyforge_project:
115
- rubygems_version: 1.8.25
106
+ rubygems_version: 2.2.2
116
107
  signing_key:
117
- specification_version: 3
118
- summary: jvmargs-0.0.7
108
+ specification_version: 4
109
+ summary: jvmargs-0.0.8
119
110
  test_files: []
120
- has_rdoc: