ovirt_metrics 3.0.3 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +2 -2
- data/README.md +3 -3
- data/lib/ovirt_metrics/configurator.rb +1 -9
- data/lib/ovirt_metrics/version.rb +1 -1
- data/spec/spec_helper.rb +14 -7
- metadata +19 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66210bd87d0575e715ffca259400ec3cf45fdc1ca967685145a900506012a1a7
|
4
|
+
data.tar.gz: 4fc22790c3389a3732ce2df091ef97743ee31f4602277f52fb4f110b4e373c24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c594212bcba95090f7f9ac36ee0466dfd6107012a3a44af98217afa3209c122ca2a20e0d594791c69a9842395fbd4eeda3ac9af1047adc708fa051633e6c9ab
|
7
|
+
data.tar.gz: 2f1dc14c92f48f17b199a438794e92e1618c3c4182602dc24836f29d6397fe64f53a14e10eeca6fb1db519a67ebd7702a497f35bff507a37435a6d1e57062c59
|
data/.rspec
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# OvirtMetrics
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/ovirt_metrics.svg)](http://badge.fury.io/rb/ovirt_metrics)
|
4
|
-
[![
|
5
|
-
[![Code Climate](
|
6
|
-
[![Coverage
|
4
|
+
[![CI](https://github.com/ManageIQ/ovirt_metrics/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/ovirt_metrics/actions/workflows/ci.yaml)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/ManageIQ/ovirt_metrics.svg)](https://codeclimate.com/github/ManageIQ/ovirt_metrics)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/ManageIQ/ovirt_metrics/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/ovirt_metrics/coverage)
|
7
7
|
|
8
8
|
OvirtMetrics is an ActiveRecord-based gem for reading the oVirt History database.
|
9
9
|
|
@@ -10,15 +10,7 @@ module OvirtMetrics
|
|
10
10
|
attr_reader :connection_specification_name
|
11
11
|
|
12
12
|
def connection_specification_name=(value)
|
13
|
-
|
14
|
-
OvirtMetrics.warn "WARNING: ovirt_metric's " \
|
15
|
-
"connection_specification_name option is only available with " \
|
16
|
-
"Active Record 5 or newer. The main application pool " \
|
17
|
-
"('primary') will be used by default until you connect to a " \
|
18
|
-
"separate Ovirt database."
|
19
|
-
else
|
20
|
-
@connection_specification_name = value
|
21
|
-
end
|
13
|
+
@connection_specification_name = value
|
22
14
|
end
|
23
15
|
end
|
24
16
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
if ENV['CI']
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start
|
4
|
+
end
|
5
|
+
|
1
6
|
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
7
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
8
|
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
@@ -79,17 +84,19 @@ end
|
|
79
84
|
require 'support/active_record'
|
80
85
|
require 'ovirt_metrics'
|
81
86
|
|
82
|
-
begin
|
83
|
-
require 'coveralls'
|
84
|
-
Coveralls.wear!
|
85
|
-
rescue LoadError
|
86
|
-
end
|
87
|
-
|
88
87
|
OvirtMetrics.config do |c|
|
89
88
|
# Necessary because you currently cannot specify the
|
90
89
|
# connection name for ActiveRecord::Schema, which we use
|
91
90
|
# in tests to reset db schema for different RHEV versions.
|
92
|
-
|
91
|
+
case ActiveRecord::VERSION::MAJOR
|
92
|
+
when 7
|
93
|
+
c.connection_specification_name = 'ActiveRecord::Base'
|
94
|
+
else
|
95
|
+
c.connection_specification_name = 'primary'
|
96
|
+
end
|
93
97
|
end
|
94
98
|
ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:"
|
95
99
|
|
100
|
+
require "active_record"
|
101
|
+
puts
|
102
|
+
puts "\e[93mUsing ActiveRecord #{ActiveRecord.version}\e[0m"
|
metadata
CHANGED
@@ -1,38 +1,38 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovirt_metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Barenboim
|
8
8
|
- Jason Frey
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-02-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: activerecord
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
21
|
-
type: :
|
20
|
+
version: '6.0'
|
21
|
+
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
27
|
+
version: '6.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: pg
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
|
-
type: :
|
35
|
+
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: bundler
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: manageiq-style
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
@@ -96,41 +96,27 @@ dependencies:
|
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '3.0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
99
|
+
name: simplecov
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
104
|
+
version: 0.21.2
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
111
|
+
version: 0.21.2
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
114
|
-
requirement: !ruby/object:Gem::Requirement
|
115
|
-
requirements:
|
116
|
-
- - "<"
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: '6.1'
|
119
|
-
type: :runtime
|
120
|
-
prerelease: false
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
requirements:
|
123
|
-
- - "<"
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '6.1'
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: pg
|
113
|
+
name: sqlite3
|
128
114
|
requirement: !ruby/object:Gem::Requirement
|
129
115
|
requirements:
|
130
116
|
- - ">="
|
131
117
|
- !ruby/object:Gem::Version
|
132
118
|
version: '0'
|
133
|
-
type: :
|
119
|
+
type: :development
|
134
120
|
prerelease: false
|
135
121
|
version_requirements: !ruby/object:Gem::Requirement
|
136
122
|
requirements:
|
@@ -210,7 +196,7 @@ homepage: http://github.com/ManageIQ/ovirt_metrics
|
|
210
196
|
licenses:
|
211
197
|
- MIT
|
212
198
|
metadata: {}
|
213
|
-
post_install_message:
|
199
|
+
post_install_message:
|
214
200
|
rdoc_options: []
|
215
201
|
require_paths:
|
216
202
|
- lib
|
@@ -225,8 +211,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
211
|
- !ruby/object:Gem::Version
|
226
212
|
version: '0'
|
227
213
|
requirements: []
|
228
|
-
rubygems_version: 3.
|
229
|
-
signing_key:
|
214
|
+
rubygems_version: 3.4.20
|
215
|
+
signing_key:
|
230
216
|
specification_version: 4
|
231
217
|
summary: OvirtMetrics is an ActiveRecord-based gem for reading the oVirt History database.
|
232
218
|
test_files:
|