ovirt_metrics 3.1.0 → 3.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
  SHA256:
3
- metadata.gz: 6211f1ed82214c903ff55a414db74930b58ee2bdc4c581f22cb3dd3f4f01bd3a
4
- data.tar.gz: aa3a4075b113230c0c1f19d80c5d8c43a82dafacd34dc2b64b1c867d3b8a4d0f
3
+ metadata.gz: 66210bd87d0575e715ffca259400ec3cf45fdc1ca967685145a900506012a1a7
4
+ data.tar.gz: 4fc22790c3389a3732ce2df091ef97743ee31f4602277f52fb4f110b4e373c24
5
5
  SHA512:
6
- metadata.gz: 59e4b4e747d95bd9f75e511a135636b0aa09065516b3cc11d1aa7176fb3b496b2463518b6dbf4d1de6cd11e9f4de890509402e7b693245f1dfe03200cacd2e5d
7
- data.tar.gz: 2151ec8e5dfc07cc350c4f7b1bc6bd51377d22d7242f0bd897913aab35b8d8d705b9ba4c24dd43b2776424c911a2a7dbcf6001d5ccd57ca86b47ab62338876dc
6
+ metadata.gz: 8c594212bcba95090f7f9ac36ee0466dfd6107012a3a44af98217afa3209c122ca2a20e0d594791c69a9842395fbd4eeda3ac9af1047adc708fa051633e6c9ab
7
+ data.tar.gz: 2f1dc14c92f48f17b199a438794e92e1618c3c4182602dc24836f29d6397fe64f53a14e10eeca6fb1db519a67ebd7702a497f35bff507a37435a6d1e57062c59
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
- --color
2
- --warnings
3
1
  --require spec_helper
2
+ --color
3
+ --order random
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
- [![Build Status](https://travis-ci.org/ManageIQ/ovirt_metrics.svg?branch=master)](https://travis-ci.org/ManageIQ/ovirt_metrics)
5
- [![Code Climate](http://img.shields.io/codeclimate/github/ManageIQ/ovirt_metrics.svg)](https://codeclimate.com/github/ManageIQ/ovirt_metrics)
6
- [![Coverage Status](http://img.shields.io/coveralls/ManageIQ/ovirt_metrics.svg)](https://coveralls.io/r/ManageIQ/ovirt_metrics)
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
- if ActiveRecord::VERSION::MAJOR < 5
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
@@ -1,3 +1,3 @@
1
1
  module OvirtMetrics
2
- VERSION = "3.1.0"
2
+ VERSION = "3.2.0"
3
3
  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,16 @@ 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
- c.connection_specification_name = 'primary' if ActiveRecord::VERSION::MAJOR >= 5
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
 
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.1.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: 2022-02-03 00:00:00.000000000 Z
12
+ date: 2024-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: bundler
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: :development
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: coveralls
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: :development
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: manageiq-style
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: pry
57
+ name: manageiq-style
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - ">="
@@ -96,47 +96,27 @@ dependencies:
96
96
  - !ruby/object:Gem::Version
97
97
  version: '3.0'
98
98
  - !ruby/object:Gem::Dependency
99
- name: sqlite3
99
+ name: simplecov
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="
103
103
  - !ruby/object:Gem::Version
104
- version: '0'
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: '0'
111
+ version: 0.21.2
112
112
  - !ruby/object:Gem::Dependency
113
- name: activerecord
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: '5.0'
119
- - - "<"
120
- - !ruby/object:Gem::Version
121
- version: '7.0'
122
- type: :runtime
123
- prerelease: false
124
- version_requirements: !ruby/object:Gem::Requirement
125
- requirements:
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- version: '5.0'
129
- - - "<"
130
- - !ruby/object:Gem::Version
131
- version: '7.0'
132
- - !ruby/object:Gem::Dependency
133
- name: pg
113
+ name: sqlite3
134
114
  requirement: !ruby/object:Gem::Requirement
135
115
  requirements:
136
116
  - - ">="
137
117
  - !ruby/object:Gem::Version
138
118
  version: '0'
139
- type: :runtime
119
+ type: :development
140
120
  prerelease: false
141
121
  version_requirements: !ruby/object:Gem::Requirement
142
122
  requirements:
@@ -216,7 +196,7 @@ homepage: http://github.com/ManageIQ/ovirt_metrics
216
196
  licenses:
217
197
  - MIT
218
198
  metadata: {}
219
- post_install_message:
199
+ post_install_message:
220
200
  rdoc_options: []
221
201
  require_paths:
222
202
  - lib
@@ -231,8 +211,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
211
  - !ruby/object:Gem::Version
232
212
  version: '0'
233
213
  requirements: []
234
- rubygems_version: 3.3.5
235
- signing_key:
214
+ rubygems_version: 3.4.20
215
+ signing_key:
236
216
  specification_version: 4
237
217
  summary: OvirtMetrics is an ActiveRecord-based gem for reading the oVirt History database.
238
218
  test_files: