onering-client 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/onering.rb +1 -9
- data/lib/onering/util.rb +6 -10
- data/lib/onering/version.rb +8 -0
- metadata +2 -1
data/lib/onering.rb
CHANGED
@@ -1,14 +1,6 @@
|
|
1
1
|
$: << File.expand_path(File.dirname(__FILE__))
|
2
2
|
|
3
|
-
|
4
|
-
module Client
|
5
|
-
VERSION = "0.4.0"
|
6
|
-
|
7
|
-
class Error < Exception; end
|
8
|
-
class FatalError < Error; end
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
3
|
+
require 'onering/version'
|
12
4
|
require 'onering/logger'
|
13
5
|
|
14
6
|
if not ENV['ONERING_LOGLEVEL'].nil?
|
data/lib/onering/util.rb
CHANGED
@@ -78,16 +78,12 @@ module Onering
|
|
78
78
|
}
|
79
79
|
|
80
80
|
def gem_path(name)
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
}.last.full_gem_path
|
88
|
-
end
|
89
|
-
rescue Gem::LoadError
|
90
|
-
return nil
|
81
|
+
if Gem::Specification.respond_to?(:find_by_name)
|
82
|
+
return Gem::Specification.find_by_name(name).gem_dir
|
83
|
+
else
|
84
|
+
return Gem::SourceIndex.from_installed_gems.find_name(name).sort{|a,b|
|
85
|
+
a.version.to_s <=> b.version.to_s
|
86
|
+
}.last.full_gem_path
|
91
87
|
end
|
92
88
|
end
|
93
89
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: onering-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Gary Hetzel
|
@@ -165,6 +165,7 @@ files:
|
|
165
165
|
- lib/etc/facter.list
|
166
166
|
- lib/onering.rb
|
167
167
|
- lib/onering/logger.rb
|
168
|
+
- lib/onering/version.rb
|
168
169
|
- lib/onering/cli.rb
|
169
170
|
- lib/onering/config.rb
|
170
171
|
- lib/onering/api.rb
|