redfish_tools 0.2.7 → 0.2.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6eb47b4ce78b595e4465c9efcda2ca2a8700b22257bd039cd4651411b0b5e9d
4
- data.tar.gz: d6fb33b3c654c4edd44279bfb107ecbc941d0d456bac7c0652062a88449d9fcd
3
+ metadata.gz: 592c8b36a8aa30fd8b392335d8b94b44b9509af715c4df5c7bcd9a876ba4f17e
4
+ data.tar.gz: 1e8f3700b40a5f856ed86345cd6a00905da73e268d4b63f4d9c43723dc06bcde
5
5
  SHA512:
6
- metadata.gz: b6a62c917f853e1812c9ce2a2266aeebfdcff73d313a92a7b5d1434e596084d8d50eea6a0acf4c05d8935c44326aac2dd75705ff7f05a5fd62ceb2c9cd43d234
7
- data.tar.gz: c88535b973f5010dcdd50b9b218882fc45240b63b2a22fb93cffe868bf4e6c9fc3b6601668680cf9c4407ccdb662ab1bff474813e7674319b86746440aaa857e
6
+ metadata.gz: 273293ce7da64f787ca8ef5c218dd85d81cbdc4de6ce18f5764090da6c85f7903b09b4de1f8748d2ba9eb09729a96b6dad1f853dcccb18c3a780f567a7699457
7
+ data.tar.gz: 1ee70c3d1c2f8328178fb3f57f75404dea81becdd1dd0b77b0e525f8447f0ae879e61b79df61d706af4e3a9caa26a36ab4a1ef5b9dbd0c0e6b9d7a81fc590ac9
data/README.md CHANGED
@@ -3,19 +3,22 @@
3
3
  [![Build Status](https://travis-ci.com/xlab-si/redfish_tools.svg?branch=master)](https://travis-ci.com/xlab-si/redfish_tools)
4
4
 
5
5
 
6
- This repository contains source code for redfish_tools gem that contains tools
7
- for testing application that know how to work with Redfish API.
6
+ This repository contains source code for redfish_tools gem that contains
7
+ helpers for testing application that know how to work with Redfish API.
8
8
 
9
- The only tool that is currently available is mock server, but in the near
10
- future, we will also add a mock creator tool and interactive inspector for
11
- Redfish services.
9
+ The main entry point is the `redfish` command that offers a mock Redfish
10
+ server, a mock server-side events (SSE) server, and a redfish recorder for
11
+ taking a snapshot of an existing Redfish API among other things. Consult the
12
+ built-in help for more information about the available commands.
12
13
 
13
14
 
14
15
  ## Installation
15
16
 
16
- Add this line to your application's Gemfile:
17
+ Create a new *Gemfile* with the following content:
17
18
 
18
- gem "redfish_tools"
19
+ source "https://rubygems.org" do
20
+ gem "redfish_tools"
21
+ end
19
22
 
20
23
  And then execute:
21
24
 
@@ -34,8 +37,11 @@ this:
34
37
 
35
38
  $ redfish
36
39
  Commands:
37
- redfish help [COMMAND] # Describe available commands
38
- redfish serve [OPTIONS] PATH # serve mock from PATH
40
+ redfish help [COMMAND] # Describe available commands or one specific command
41
+ redfish listen_sse ADDRESS # listen to events from ADDRESS
42
+ redfish record SERVICE PATH # create recording of SERVICE in PATH
43
+ redfish serve [OPTIONS] PATH # serve mock from PATH
44
+ redfish serve_sse [OPTIONS] SOURCE # serve events from SOURCE
39
45
 
40
46
  To start serving existing Redfish recording, we run the `serve` command:
41
47
 
@@ -15,7 +15,7 @@ module RedfishTools
15
15
  raise Exceptions::MergeConflict, "Conflict at '%s'" % (path + [key.to_s]).join(".")
16
16
  end
17
17
  else
18
- raise Exceptions::MergeConflict, "Key '%s' does not exists in source hash" % (path + [key.to_s]).join(".")
18
+ a[key] = value
19
19
  end
20
20
  }
21
21
  a
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedfishTools
4
- VERSION = "0.2.7"
4
+ VERSION = "0.2.8"
5
5
  end
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
 
35
35
  spec.add_development_dependency "bundler"
36
36
  spec.add_development_dependency "pry"
37
- spec.add_development_dependency "rake", "~> 10.0"
37
+ spec.add_development_dependency "rake"
38
38
  spec.add_development_dependency "rspec", "~> 3.0"
39
39
  spec.add_development_dependency "rubocop"
40
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redfish_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tadej Borovšak
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-02 00:00:00.000000000 Z
11
+ date: 2020-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redfish_client
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '10.0'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -177,8 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  - !ruby/object:Gem::Version
178
178
  version: '0'
179
179
  requirements: []
180
- rubyforge_project:
181
- rubygems_version: 2.7.7
180
+ rubygems_version: 3.0.8
182
181
  signing_key:
183
182
  specification_version: 4
184
183
  summary: Collection of tools for working with Redfish services.