idrac 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +9 -0
- data/lib/idrac/screenshot.rb +1 -1
- data/lib/idrac/version.rb +1 -1
- metadata +1 -2
- data/idrac.gemspec +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64086a691b3fd5b5811d7d69d40697a72cf7467b6162e3a83fd0eb717f040005
|
4
|
+
data.tar.gz: a7449f049f549858c740dc59ca3c931a3c670c4a99142ef808cec85f29d12e56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13ddf72ffd57083293314dc546ba68b0e0a70c506fa8c9385d5c37a41301aaa2adf4f7c010c49777cca489e71abba4847f23c026c56373f0ee928e4f2c5c50ae
|
7
|
+
data.tar.gz: c2cb2c1396a8f78e7cb6ed5d9921777a090331c8a5ac24b09169af945b9610d852cc55b7156c2e01298440e1d66587abbf18b0c5977b403decbfe784159e0231
|
data/Rakefile
CHANGED
@@ -6,3 +6,12 @@ require "rspec/core/rake_task"
|
|
6
6
|
RSpec::Core::RakeTask.new(:spec)
|
7
7
|
|
8
8
|
task default: :spec
|
9
|
+
|
10
|
+
# Add a task that tags and pushes to the repository and builds
|
11
|
+
# the gem and pushes it to rubygems.org.
|
12
|
+
# Depend on the build task to ensure the gem is up to date.
|
13
|
+
task :release => [:build] do
|
14
|
+
system "git tag v#{Idrac::VERSION}"
|
15
|
+
system "git push origin v#{Idrac::VERSION}"
|
16
|
+
system "gem push pkg/idrac-#{Idrac::VERSION}.gem"
|
17
|
+
end
|
data/lib/idrac/screenshot.rb
CHANGED
@@ -16,7 +16,7 @@ module Idrac
|
|
16
16
|
res = get(path: path, headers: tokens)
|
17
17
|
raise "Invalid login." unless res.code.between?(200, 299)
|
18
18
|
filename = "#{timestamp_ms}.png"
|
19
|
-
File.
|
19
|
+
File.open(filename, "wb") { |f| f.write(res.body) }
|
20
20
|
logout
|
21
21
|
filename
|
22
22
|
end
|
data/lib/idrac/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idrac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Siegel
|
@@ -104,7 +104,6 @@ files:
|
|
104
104
|
- ".rspec"
|
105
105
|
- README.md
|
106
106
|
- Rakefile
|
107
|
-
- idrac.gemspec
|
108
107
|
- lib/idrac.rb
|
109
108
|
- lib/idrac/client.rb
|
110
109
|
- lib/idrac/screenshot.rb
|
data/idrac.gemspec
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "lib/idrac/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "idrac"
|
7
|
-
spec.version = Idrac::VERSION
|
8
|
-
spec.authors = ["Jonathan Siegel"]
|
9
|
-
spec.email = ["<248302+usiegj00@users.noreply.github.com>"]
|
10
|
-
|
11
|
-
spec.summary = "API Client for Dell iDRAC"
|
12
|
-
spec.description = "A Ruby client for the Dell iDRAC API"
|
13
|
-
spec.homepage = "http://github.com"
|
14
|
-
spec.required_ruby_version = ">= 3.3.0" # Feel free to test and update.
|
15
|
-
|
16
|
-
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
17
|
-
|
18
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
-
# spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
20
|
-
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
21
|
-
|
22
|
-
# Specify which files should be added to the gem when it is released.
|
23
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
-
spec.files = Dir.chdir(__dir__) do
|
25
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
26
|
-
(File.expand_path(f) == __FILE__) ||
|
27
|
-
f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
|
28
|
-
end
|
29
|
-
end
|
30
|
-
spec.bindir = "exe"
|
31
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
|
-
spec.require_paths = ["lib"]
|
33
|
-
|
34
|
-
# Uncomment to register a new dependency of your gem
|
35
|
-
spec.add_dependency "httparty"
|
36
|
-
spec.add_dependency "nokogiri"
|
37
|
-
|
38
|
-
# Add dev dependencies:
|
39
|
-
spec.add_development_dependency "bundler"
|
40
|
-
spec.add_development_dependency "rake"
|
41
|
-
spec.add_development_dependency "rspec"
|
42
|
-
spec.add_development_dependency "debug"
|
43
|
-
|
44
|
-
# For more information and examples about making a new gem, check out our
|
45
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
46
|
-
end
|