ruby-miradore 4.1.4 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +4 -4
- data/lib/ruby/miradore/version.rb +1 -1
- data/lib/ruby/miradore.rb +5 -1
- data/ruby-miradore.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c14f13d1988de125e7a13ef06bd020bb02fe01e9c52f6c82e098ef6b12353930
|
4
|
+
data.tar.gz: 8ca0d9ee5b5e741042eb5837b633261e7d0f80f33a566d504a2f9ba75e3297d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffbdf1d2de5249d6c31fb60675b91d0477640576a1a836fe64fa4636a28401d044b778a78c8482adc4b6c0b5d32785550fe9d1508f78ac5de53e8190480d115f
|
7
|
+
data.tar.gz: 7ce63965c9e8706a860d510fb65cca7d1dd46afc271711f5bc9a2abbe0a38c3ef14e6b915da4712dfb56b077d3d2b36ba63927ff8a5f29a4324a79da2f14586f
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.1
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby-miradore (4.
|
4
|
+
ruby-miradore (4.2.0)
|
5
5
|
activesupport (~> 7.0)
|
6
6
|
builder (~> 3.1)
|
7
7
|
crack (~> 0.4)
|
@@ -14,7 +14,7 @@ PATH
|
|
14
14
|
GEM
|
15
15
|
remote: https://rubygems.org/
|
16
16
|
specs:
|
17
|
-
activesupport (7.0.2.
|
17
|
+
activesupport (7.0.2.3)
|
18
18
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
19
|
i18n (>= 1.6, < 2)
|
20
20
|
minitest (>= 5.1)
|
@@ -60,13 +60,13 @@ GEM
|
|
60
60
|
diff-lcs (>= 1.2.0, < 2.0)
|
61
61
|
rspec-support (~> 3.11.0)
|
62
62
|
rspec-support (3.11.0)
|
63
|
-
rubocop (1.
|
63
|
+
rubocop (1.26.0)
|
64
64
|
parallel (~> 1.10)
|
65
65
|
parser (>= 3.1.0.0)
|
66
66
|
rainbow (>= 2.2.2, < 4.0)
|
67
67
|
regexp_parser (>= 1.8, < 3.0)
|
68
68
|
rexml
|
69
|
-
rubocop-ast (>= 1.
|
69
|
+
rubocop-ast (>= 1.16.0, < 2.0)
|
70
70
|
ruby-progressbar (~> 1.7)
|
71
71
|
unicode-display_width (>= 1.4.0, < 3.0)
|
72
72
|
rubocop-ast (1.16.0)
|
data/lib/ruby/miradore.rb
CHANGED
@@ -69,7 +69,7 @@ module Ruby
|
|
69
69
|
item: self.class.to_s.split('::').last,
|
70
70
|
attribute: args.fetch(:attribute, '*'),
|
71
71
|
filter: args.fetch(:filter, nil),
|
72
|
-
options: args.fetch(:options, nil)
|
72
|
+
options: args.fetch(:options, nil)&.to_query&.sub('&', ',')
|
73
73
|
)
|
74
74
|
self.class.method(args.fetch(:method, :get)).call(url, body: args.fetch(:body, nil)&.to_xml(root: 'Content', skip_types: true))
|
75
75
|
end
|
@@ -134,6 +134,10 @@ module Ruby
|
|
134
134
|
http_method(**args.merge(method: :post, action: __method__))
|
135
135
|
end
|
136
136
|
|
137
|
+
def retire(**args)
|
138
|
+
http_method(**args.merge(method: :delete, id: id, action: nil))
|
139
|
+
end
|
140
|
+
|
137
141
|
def device_serial_number
|
138
142
|
invdevice.serial_number || invdevice.hardware_serial_number
|
139
143
|
end
|
data/ruby-miradore.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = "Miradore MSP Ruby Gem"
|
13
13
|
spec.homepage = "https://github.com/eddygarcas/ruby-miradore"
|
14
14
|
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 3.
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 3.1.1")
|
16
16
|
|
17
17
|
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
|
18
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-miradore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduard Garcia Castelló
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -188,14 +188,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
188
188
|
requirements:
|
189
189
|
- - ">="
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version: 3.
|
191
|
+
version: 3.1.1
|
192
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
194
|
- - ">="
|
195
195
|
- !ruby/object:Gem::Version
|
196
196
|
version: '0'
|
197
197
|
requirements: []
|
198
|
-
rubygems_version: 3.3.
|
198
|
+
rubygems_version: 3.3.7
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: Miradore is a MSP providing an API to get devices information as well s perform
|