ruby-miradore 3.3.14 → 3.3.15

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: f775ab18d79f64312336ef6ec6d15a122de52bead8b0b21da003490285631730
4
- data.tar.gz: 31a066dac49870180da455990ffabc9e19425a54d36b387e06e4ccd0448cd06e
3
+ metadata.gz: 1bd3404518b59b883223a286aa8cb2b3f586367f0209678ca22414c003ebe1e2
4
+ data.tar.gz: e37515c3faadfb46a5ddbb275c68509a3e72304fb4971e0e8b36aef567e5a8da
5
5
  SHA512:
6
- metadata.gz: 6365dc5bd2b226adedd3923c16b59df2bbd8234e47cd278918b4cf87fa2861aa2f20d9ea55105cf8d01d603a4c39658ed91467ea10b450abf66eb7e34d377b9f
7
- data.tar.gz: 6f7afcfc6e5b133942edf9a19dce837614fec7120679c152ac34fa830ac67a20a064396def44c61ec701a93c88ac3be035ba21b5ab364c5d8b8954feb72255c0
6
+ metadata.gz: c50711bc929570b9b483c4d55686aa5c4d75dfcfa14a8f67f30f27d03199fb1554fb27699be7df86d0f54eabd26336c4724fc993fd4ea41d4017ca8d764861a3
7
+ data.tar.gz: 2744e5bdf3dc2d79140320da1bc0846487fe1e46d40dc5f0794035f9f9da26ed111e36fa8fb5f4580ee799ac09cdf9b6a02088d6459b3edd19385349f245f0a9
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://test634.online.miradore.com/API/Device/?auth=1_8,Yo-TV8QyCiBUF&filters=&select=*,InvDevice.*
5
+ uri: https://test634.online.miradore.com/API/Device/?auth=&filters=&select=*,InvDevice.*
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://test634.online.miradore.com/API/Device/?auth=1_8,Yo-TV8QyCiBUF&filters=(InvDevice.SerialNumber%20eq%2087DB6H2)&select=*,*
5
+ uri: https://test634.online.miradore.com/API/Device/?auth=&filters=ID%20eq%2037&select=*,*
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -37,26 +37,15 @@ http_interactions:
37
37
  X-Frame-Options:
38
38
  - SAMEORIGIN
39
39
  Date:
40
- - Wed, 03 Nov 2021 13:29:28 GMT
40
+ - Tue, 16 Nov 2021 09:03:17 GMT
41
41
  Content-Length:
42
- - '979'
42
+ - '547'
43
43
  body:
44
44
  encoding: ASCII-8BIT
45
- string: <?xml version="1.0" encoding="utf-8"?><Content><Items count="4"><Device><ID>2</ID><User><ID>1</ID></User><Enrollment><ID>6</ID></Enrollment><OnlineStatus>Unmanaged</OnlineStatus><LastReported>04.10.2021
46
- 10:00:00</LastReported><LastReportedDays>30</LastReportedDays><LastReportedHours>723</LastReportedHours><LastReportedMinutes>43409</LastReportedMinutes><IPAddress>185.212.21.63</IPAddress><LocalIPAddress>172.18.254.13</LocalIPAddress><MACAddress>D4:81:D7:F8:52:85</MACAddress><Platform>WindowsDesktop</Platform><OSVersionName>Windows
47
- 10 Pro (20H2)</OSVersionName><Client><ID>2</ID></Client><ConfigProfileDeployments
48
- /><Status>Deleted</Status><Created>13.08.2021 13:19:37</Created><Modified>04.10.2021
49
- 09:58:05</Modified><Source>MiradoreOnline</Source></Device><Device><ID>3</ID><Enrollment><ID>13</ID></Enrollment><OnlineStatus>Unmanaged</OnlineStatus><LastReported>04.10.2021
50
- 10:10:00</LastReported><LastReportedDays>30</LastReportedDays><LastReportedHours>723</LastReportedHours><LastReportedMinutes>43399</LastReportedMinutes><IPAddress>185.212.21.63</IPAddress><LocalIPAddress>172.18.254.13</LocalIPAddress><MACAddress>F8:59:71:86:81:CF</MACAddress><Platform>WindowsDesktop</Platform><OSVersionName>Windows
51
- 10 Professionnel (20H2)</OSVersionName><Client><ID>3</ID></Client><ConfigProfileDeployments
52
- /><Status>Deleted</Status><Created>04.10.2021 10:07:03</Created><Modified>05.10.2021
53
- 16:16:52</Modified><Source>MiradoreOnline</Source></Device><Device><ID>4</ID><Enrollment><ID>17</ID></Enrollment><OnlineStatus>Unmanaged</OnlineStatus><LastReported>12.10.2021
54
- 10:51:10</LastReported><LastReportedDays>22</LastReportedDays><LastReportedHours>531</LastReportedHours><LastReportedMinutes>31838</LastReportedMinutes><IPAddress>185.212.21.63</IPAddress><LocalIPAddress>172.18.254.16</LocalIPAddress><MACAddress>F8:59:71:86:81:CF</MACAddress><Platform>WindowsDesktop</Platform><OSVersionName>Windows
55
- 10 Pro (20H2)</OSVersionName><Client><ID>4</ID></Client><ConfigProfileDeployments
56
- /><Status>Deleted</Status><Created>04.10.2021 10:26:25</Created><Modified>12.10.2021
57
- 10:50:17</Modified><Source>MiradoreOnline</Source></Device><Device><ID>9</ID><User><ID>4</ID></User><Location><ID>1</ID></Location><Category><ID>3</ID></Category><Enrollment><ID>36</ID></Enrollment><OnlineStatus>Active</OnlineStatus><LastReported>03.11.2021
58
- 11:04:00</LastReported><LastReportedDays>0</LastReportedDays><LastReportedHours>2</LastReportedHours><LastReportedMinutes>145</LastReportedMinutes><IPAddress>185.212.21.34</IPAddress><LocalIPAddress>172.18.193.32</LocalIPAddress><MACAddress>F8:59:71:86:81:CF</MACAddress><Platform>WindowsDesktop</Platform><PurchaseDate>03.11.2021
59
- 00:00:00</PurchaseDate><OSVersionName>Windows 10 Pro (20H2)</OSVersionName><Client><ID>9</ID></Client><ConfigProfileDeployments><ConfigProfileDeployment><ID>1</ID><ConfigProfile><ID>7</ID></ConfigProfile></ConfigProfileDeployment></ConfigProfileDeployments><Status>Active</Status><Created>27.10.2021
60
- 08:10:37</Created><Modified>03.11.2021 11:09:57</Modified><Source>MiradoreOnline</Source></Device></Items></Content>
61
- recorded_at: Wed, 03 Nov 2021 13:29:28 GMT
45
+ string: <?xml version="1.0" encoding="utf-8"?><Content><Items count="1"><Device><ID>37</ID><User><ID>2</ID></User><Category><ID>8</ID></Category><Enrollment><ID>49</ID><User><ID>2</ID></User></Enrollment><OnlineStatus>Active</OnlineStatus><LastReported>16.11.2021
46
+ 08:31:26</LastReported><LastReportedDays>0</LastReportedDays><LastReportedHours>1</LastReportedHours><LastReportedMinutes>32</LastReportedMinutes><IPAddress>185.212.21.34</IPAddress><MACAddress>d4:dc:cd:d6:09:be</MACAddress><Platform>iOS</Platform><OSVersionName>iOS
47
+ 14.4.2</OSVersionName><Client><ID>37</ID></Client><ConfigProfileDeployments
48
+ /><Status>AutoGenerated</Status><Created>15.11.2021 19:21:35</Created><Modified>16.11.2021
49
+ 09:01:30</Modified><Source>MiradoreOnline</Source></Device></Items></Content>
50
+ recorded_at: Tue, 16 Nov 2021 09:03:17 GMT
62
51
  recorded_with: VCR 6.0.0
@@ -2,17 +2,17 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: https://test634.online.miradore.com/API/v2/Device/9/model
5
+ uri: https://test634.online.miradore.com/API/v2/Device/37/model
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"model":"test"}'
8
+ string: '{"id":"37","name":"test"}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - application/json
12
12
  Accept:
13
13
  - application/json
14
14
  X-Api-Key:
15
- - 1_8,Yo-TV8QyCiBUF
15
+ -
16
16
  Accept-Encoding:
17
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
18
  User-Agent:
@@ -30,11 +30,11 @@ http_interactions:
30
30
  - SAMEORIGIN
31
31
  - SAMEORIGIN
32
32
  Date:
33
- - Wed, 03 Nov 2021 13:30:26 GMT
33
+ - Tue, 16 Nov 2021 09:04:26 GMT
34
34
  Content-Length:
35
35
  - '2'
36
36
  body:
37
37
  encoding: UTF-8
38
38
  string: "{}"
39
- recorded_at: Wed, 03 Nov 2021 13:30:27 GMT
39
+ recorded_at: Tue, 16 Nov 2021 09:04:26 GMT
40
40
  recorded_with: VCR 6.0.0
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ruby
4
4
  module Miradore
5
- VERSION = "3.3.14"
5
+ VERSION = "3.3.15"
6
6
  end
7
7
  end
data/lib/ruby/miradore.rb CHANGED
@@ -152,7 +152,7 @@ module Ruby
152
152
  end
153
153
 
154
154
  def phone?
155
- !!invdevice&.imei
155
+ %w[Android iOS WindowsPhone].include?(platform)
156
156
  end
157
157
 
158
158
  def call(**args)
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: 3.3.14
4
+ version: 3.3.15
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: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2021-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport