thecore_print_commons 0.1.7 → 0.1.8
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 +4 -4
- data/app/models/printer.rb +1 -1
- data/lib/thecore_print_commons/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cea20e24856567e20ee36861bba025a17b815c31
|
|
4
|
+
data.tar.gz: da3bf35622bc21199a659781e0f5c936312fd50d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f27f1f283b55159b1186871fa847511fdfba52ebfa2951251aef6bc0f3aeead9a5df12a8432d688b23cb2a6282698b5401c67d6874e29654900348933f90cf22
|
|
7
|
+
data.tar.gz: 1abf80959ae5cbcbeaaaa9156e56ca60751738820f9989350dc3df2e8aea210425a78a7a7c4102ec0fad3892c9443a387402a3be9ad6c7f016df3a5c11660e39
|
data/app/models/printer.rb
CHANGED
|
@@ -36,7 +36,7 @@ class Printer < ApplicationRecord
|
|
|
36
36
|
|
|
37
37
|
def ip_enum
|
|
38
38
|
# Getting from CUPS the list of configured printers
|
|
39
|
-
if Settings.ns(:printer_commons).cups_server.blank? || ['127.0.0.1', 'localhost'].
|
|
39
|
+
if Settings.ns(:printer_commons).cups_server.blank? || ['127.0.0.1', 'localhost'].include?(Settings.ns(:printer_commons).cups_server)
|
|
40
40
|
# Local Cups server
|
|
41
41
|
CupsPrinter.get_all_printer_names
|
|
42
42
|
else
|
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: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gabriele Tassoni
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-11-
|
|
11
|
+
date: 2018-11-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thecore
|