epitools 0.4.42 → 0.4.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/epitools.gemspec +4 -3
  3. data/lib/epitools/sys.rb +18 -0
  4. metadata +28 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.42
1
+ 0.4.43
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{epitools}
8
- s.version = "0.4.42"
8
+ s.version = "0.4.43"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["epitron"]
12
- s.date = %q{2011-06-09}
12
+ s.date = %q{2011-06-12}
13
13
  s.description = %q{Miscellaneous utility libraries to make my life easier.}
14
14
  s.email = %q{chris@ill-logic.com}
15
15
  s.extra_rdoc_files = [
@@ -64,10 +64,11 @@ Gem::Specification.new do |s|
64
64
  s.homepage = %q{http://github.com/epitron/epitools}
65
65
  s.licenses = ["WTFPL"]
66
66
  s.require_paths = ["lib"]
67
- s.rubygems_version = %q{1.6.2}
67
+ s.rubygems_version = %q{1.3.7}
68
68
  s.summary = %q{NOT UTILS... METILS!}
69
69
 
70
70
  if s.respond_to? :specification_version then
71
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
71
72
  s.specification_version = 3
72
73
 
73
74
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -297,6 +297,22 @@ module Sys
297
297
 
298
298
  #-----------------------------------------------------------------------------
299
299
 
300
+ cross_platform_method :hostname
301
+
302
+ def self.hostname_linux
303
+ `uname -n`.strip
304
+ end
305
+
306
+ def self.hostname_mac
307
+ `uname -n`.strip.gsub(/\.local$/, '')
308
+ end
309
+
310
+ def self.hostname_windows
311
+ raise NotImplementedError
312
+ end
313
+
314
+ #-----------------------------------------------------------------------------
315
+
300
316
  cross_platform_method :interfaces
301
317
 
302
318
  #
@@ -407,6 +423,8 @@ module Sys
407
423
  raise "Not implemented"
408
424
  end
409
425
 
426
+ #-----------------------------------------------------------------------------
427
+
410
428
  def self.temperatures
411
429
  #/Applications/Utilities/TemperatureMonitor.app/Contents/MacOS/tempmonitor -a -l
412
430
  #CPU Core 1: 28 C
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epitools
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.4.42
4
+ hash: 89
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 4
9
+ - 43
10
+ version: 0.4.43
6
11
  platform: ruby
7
12
  authors:
8
13
  - epitron
@@ -10,7 +15,7 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-06-09 00:00:00 -04:00
18
+ date: 2011-06-12 00:00:00 -04:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
@@ -21,6 +26,11 @@ dependencies:
21
26
  requirements:
22
27
  - - ~>
23
28
  - !ruby/object:Gem::Version
29
+ hash: 7
30
+ segments:
31
+ - 2
32
+ - 2
33
+ - 0
24
34
  version: 2.2.0
25
35
  type: :development
26
36
  version_requirements: *id001
@@ -32,6 +42,11 @@ dependencies:
32
42
  requirements:
33
43
  - - ~>
34
44
  - !ruby/object:Gem::Version
45
+ hash: 23
46
+ segments:
47
+ - 1
48
+ - 0
49
+ - 0
35
50
  version: 1.0.0
36
51
  type: :development
37
52
  version_requirements: *id002
@@ -43,6 +58,9 @@ dependencies:
43
58
  requirements:
44
59
  - - ">="
45
60
  - !ruby/object:Gem::Version
61
+ hash: 3
62
+ segments:
63
+ - 0
46
64
  version: "0"
47
65
  type: :development
48
66
  version_requirements: *id003
@@ -113,17 +131,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
131
  requirements:
114
132
  - - ">="
115
133
  - !ruby/object:Gem::Version
134
+ hash: 3
135
+ segments:
136
+ - 0
116
137
  version: "0"
117
138
  required_rubygems_version: !ruby/object:Gem::Requirement
118
139
  none: false
119
140
  requirements:
120
141
  - - ">="
121
142
  - !ruby/object:Gem::Version
143
+ hash: 3
144
+ segments:
145
+ - 0
122
146
  version: "0"
123
147
  requirements: []
124
148
 
125
149
  rubyforge_project:
126
- rubygems_version: 1.6.2
150
+ rubygems_version: 1.3.7
127
151
  signing_key:
128
152
  specification_version: 3
129
153
  summary: NOT UTILS... METILS!