thecore_print_commons 2.1.7 → 2.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: ff7cb53138fab8c991338c6f585d2bc547ea34dd6c4458ce4d2fda798980db9b
4
- data.tar.gz: b3d1a389e3019373b61c5776747909ccacd309294b0b3ed3e9fa94a850845237
3
+ metadata.gz: 670b8b4f153ad70642a153811f71d2ce797e697ddc7e5af3cbc915739954abb4
4
+ data.tar.gz: daed3ca480be8480a89d93f4f6b494ace07a93224cee549d33c0941ec00a6431
5
5
  SHA512:
6
- metadata.gz: cecd2553a802eb1cf908730bc636e3987c651bdbbf1cda33e0c521c26ff9e40c4397101688c1ee331b7faf2946d21b2d4687f614a3348ede4a705039a8654518
7
- data.tar.gz: 0f9b85e7ea6019c63a5115f2e53d9a335710b796b539155e5354933b4792c55340b8883388640f09bf98026081e17aa531c18001ff6664eb6566cb4efd998927
6
+ metadata.gz: dd44e8214bddfa87012ec35e728b623eb70c8b21478670175c2f25a627a5cc246d38d5f3bb43b1e2ad5cd5252cdd1bcfdf4564d609d5241778416f479efe4b49
7
+ data.tar.gz: 21d5bc33596daeef921285ea6828a5f660f50df7389c105ffc011ed4c61bc8375351277759e1811c420c1178e4b8955a25d202c99f8e8c330dd3614fd49d40d5
@@ -17,7 +17,7 @@ module RailsAdmin::Printer
17
17
  field :default, :toggle
18
18
  field :temperature
19
19
  field :description
20
- field :online? do
20
+ field :is_online do
21
21
  read_only true
22
22
  formatted_value do # used in form views
23
23
  (value ? "<strong style='color:green'>👍</strong>" : "<strong style='color:red'>👎</strong>").html_safe
@@ -9,7 +9,7 @@ class Printer < ApplicationRecord
9
9
  validates :port, presence: true
10
10
  validates :print_template, presence: true
11
11
 
12
- def online?
12
+ def is_online
13
13
  begin
14
14
  Socket.tcp(self.ip, self.port, connect_timeout: 0.5).close
15
15
  rescue
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_print_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.7
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-27 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_background_jobs