foreman_datacenter 0.1.8 → 0.1.9
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6fc83e395328d48f6dc9160a273e8476a0f5c83
|
4
|
+
data.tar.gz: 8d71e626185ffee750baab610ad9aafaaffcf09f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 789e13b2b62ec7fcfc495f5b5d3a7859e1a3057ed9d106f51332cc594c5cfb15a5788eb441fb42d521a1c62c7e0344cf95d4dca52e6ef37f3e64d06f9039ebd2
|
7
|
+
data.tar.gz: e7aa5cff41809aeeb0f5492abd272b7b85075286a19c22892b7be6038ec3d4150a3c6f43bd167e41db1c63490945548c40d964c80c28a18052b7b08e8285ac95
|
@@ -119,7 +119,7 @@ module ForemanDatacenter
|
|
119
119
|
|
120
120
|
def generate_qr_code(device)
|
121
121
|
name = device.name_without_fqdn
|
122
|
-
width = name.size * 5 + 40
|
122
|
+
width = (name.size * 5.5).round + 40 # magic
|
123
123
|
qr_code = RQRCode::QRCode.new(device_url(device))
|
124
124
|
png = qr_code.as_png(border_modules: 1, size: 240).to_s
|
125
125
|
document = Prawn::Document.new(page_size: [36, width * 2], page_layout: :landscape, margin: 0) do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_datacenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Ivanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|