manageiq-smartstate 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d2b72b1484823e29f31ec97946c358ed1bb2c2a
4
- data.tar.gz: 6ca99573c4dfab61a2c9474cf4a52e1e5d1e27e1
3
+ metadata.gz: 218f7dc491d95fe854e04bde9385ce69c9a51004
4
+ data.tar.gz: f34245551388cee4830292e40214572e1469293b
5
5
  SHA512:
6
- metadata.gz: 394987f249638435e077ca2483acd4fcf75461c10467213ced9ca3b4d3a21b8ee855349414d4d773509874ccf37c87f3ecef465143e0c883cdc6ea8d0f2ac5ca
7
- data.tar.gz: c48daab9410be7dcc229f0451dd4e41a4733c626c818340634757576d29965f46aeaed27889d0b31bf0a9709c118d0281de17f1c4d52083a66070199eef4b55f
6
+ metadata.gz: d95af933cab92495745a22230b5941700f881caa9ee1dd17a99963afac32a7a6f161b000d87fa22366da43ca37117c31faa7175beda81885d602e4f7c96ffef9
7
+ data.tar.gz: ee629560245080bafa1571997fb1d1a8a79888179058981f225df682befc1f88923342c8e1624041f9cc542a6933f45039dd991a56a9113337f367b39e18bffa
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in manageiq-smartstate.gemspec
4
4
  gemspec
5
5
 
6
- gem "manageiq-gems-pending", :git => "https://github.com/ManageIQ/manageiq-gems-pending", :branch => "master"
6
+ gem "manageiq-gems-pending", :git => "https://github.com/ManageIQ/manageiq-gems-pending.git", :branch => "master"
7
7
 
8
- # Modified gems for gems-pending. Setting sources here since they are git references
8
+ # Modified gems for vmware_web_service. Setting sources here since they are git references
9
9
  gem "handsoap", "~>0.2.5", :require => false, :git => "https://github.com/ManageIQ/handsoap.git", :tag => "v0.2.5-5"
File without changes
@@ -1,7 +1,3 @@
1
1
  require "manageiq/smartstate/version"
2
2
 
3
- module ManageIQ
4
- module Smartstate
5
- # Your code goes here...
6
- end
7
- end
3
+ require "manageiq/smartstate/util"
@@ -0,0 +1,24 @@
1
+ require 'uri'
2
+ require 'addressable'
3
+
4
+ module ManageIQ
5
+ module Smartstate
6
+ module Util
7
+ def self.path_to_uri(file, hostname = nil)
8
+ file = Addressable::URI.encode(file.tr('\\', '/'))
9
+ hostname = URI::Generic.build(:host => hostname).host if hostname # ensure IPv6 hostnames
10
+ "file://#{hostname}/#{file}"
11
+ end
12
+
13
+ def self.uri_to_local_path(uri_path)
14
+ # Detect and return UNC paths
15
+ return URI.decode(uri_path) if uri_path[0, 2] == '//'
16
+ local = URI.decode(URI.parse(uri_path).path)
17
+ return local[1..-1] if local[2, 1] == ':'
18
+ return local
19
+ rescue
20
+ return uri_path
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.1.6".freeze
3
+ VERSION = "0.2.0".freeze
4
4
  end
5
5
  end
@@ -20,12 +20,14 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
+ spec.add_dependency "addressable", "~> 2.4"
23
24
  spec.add_dependency "azure-armrest"
24
25
  spec.add_dependency "binary_struct", "~> 2.1"
25
26
  spec.add_dependency "iniparse"
26
27
  spec.add_dependency "linux_block_device", "~>0.2.1"
27
28
  spec.add_dependency "memory_buffer", ">=0.1.0"
28
29
  spec.add_dependency "rufus-lru", "~>1.0.3"
30
+ spec.add_dependency "sys-uname", "~>1.0.1"
29
31
  spec.add_dependency "vmware_web_service", "~>0.2.0"
30
32
 
31
33
  spec.add_development_dependency "bundler"
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-smartstate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-11 00:00:00.000000000 Z
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: addressable
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.4'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: azure-armrest
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +108,20 @@ dependencies:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
110
  version: 1.0.3
111
+ - !ruby/object:Gem::Dependency
112
+ name: sys-uname
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.0.1
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.0.1
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: vmware_web_service
99
127
  requirement: !ruby/object:Gem::Requirement
@@ -488,6 +516,7 @@ files:
488
516
  - lib/lib/tasks/azure.rake
489
517
  - lib/manageiq-smartstate.rb
490
518
  - lib/manageiq/smartstate.rb
519
+ - lib/manageiq/smartstate/util.rb
491
520
  - lib/manageiq/smartstate/version.rb
492
521
  - lib/metadata/MIQExtract/MIQExtract.rb
493
522
  - lib/metadata/MIQExtract/test/extractTest.rb
@@ -568,7 +597,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
568
597
  version: '0'
569
598
  requirements: []
570
599
  rubyforge_project:
571
- rubygems_version: 2.6.12
600
+ rubygems_version: 2.6.11
572
601
  signing_key:
573
602
  specification_version: 4
574
603
  summary: ManageIQ SmartState Analysis