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: df3c278d9ecfa81fbb1142a10aaf00ecf23edee6
4
- data.tar.gz: ff8b623eceefbdb49ff3ab107dbcd05bd5d54a1f
3
+ metadata.gz: b6fc83e395328d48f6dc9160a273e8476a0f5c83
4
+ data.tar.gz: 8d71e626185ffee750baab610ad9aafaaffcf09f
5
5
  SHA512:
6
- metadata.gz: d14004f3e7e39d7b05ef4c83d6b2d08671a793d3123459fed3c9afa777eb897c8df3bb633baa6b4d05de812eb7930a5f520537b9cc2bb7cda66b48bab1377760
7
- data.tar.gz: 64a9f1c54c0650159ce15f5b3195cc1621b4feed90bfe371c093fb61f8c1c1dd65caea55b3301a4a67dd77e8cc29b2f7d723985a275e4591b8d726dfbabaf566
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
@@ -1,3 +1,3 @@
1
1
  module ForemanDatacenter
2
- VERSION = '0.1.8'.freeze
2
+ VERSION = '0.1.9'.freeze
3
3
  end
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.8
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-06 00:00:00.000000000 Z
11
+ date: 2016-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface