oxen_account 0.3.0 → 0.3.1

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: cfbe2c62b66079cc9d4a9d037be74aa17d7e2251
4
- data.tar.gz: fc00b920a302c1eee18a561a32c136d9cbedf9cd
3
+ metadata.gz: b3f315ac7c9df23170186df96e626f389757a1e7
4
+ data.tar.gz: c0b37baad3cad127926431fcda2a9548967e20c9
5
5
  SHA512:
6
- metadata.gz: bae364ac4291f7ada1855c0a5918470a3b78a89e5e28e58227da630b72a80ec41484f790ca045e1c27e6c37783dc330a12ce700c7e8f7c1ec93e3fed0d38c098
7
- data.tar.gz: f1cec3b1ce1f0b23d949b9074a332873ee17365f58e899e0840ddae969649137b3924b2c79fd7075a6c8895bfcaf68d5b0ab4854af07f00882f2a604e50bf4e6
6
+ metadata.gz: 8c2e752fc4cda85db52d4a6afa0703b5b012512e69ba2b82b02999bfad46e924e8ad4d781ebad73b6d450add0a222c8bd2c051feb44fec8a7be1f679ff7a5aa4
7
+ data.tar.gz: 1ca2fa04fd89948dd68cf46d96cd575f7566c7233765b4dfd1cf80930bd6521b382072c97693b603cc387500ca61fc80a5fc732c55cdcddcab893aba1bbeec83
@@ -9,15 +9,17 @@ module Oxen
9
9
  link_to arr[0], arr[1]
10
10
  end
11
11
 
12
- def show_print_servers resource
13
- unless resource.print_server_addresses.blank?
14
- resource.print_server_addresses.split(",").collect do |n|
15
- m=n.match /(.*): (.*)/
16
- link_to( m[1], 'http://10.0.0.142:631', target: '_blank') if m.size==3
17
- end.join( "<br />").html_safe
18
- else
19
- link_to t('.cups_adm'), 'http://10.0.0.142:631', target: '_blank'
20
- end
12
+ def show_printservers account
13
+ links = account.printservers.collect do |printserver|
14
+ port = printserver.port.to_i+2000
15
+ port = "631"
16
+ printgateway = "http://10.0.0.142"
17
+ link_to "#{printgateway}:#{port}", data_action: "new_get_window", target: "_blank", alt: "#{printserver.lokation}" do
18
+ content_tag :i, 'print', class: 'material-icons small pink-text lighten-4', title: "#{printserver.lokation}", alt: "#{printserver.lokation}"
19
+ end
20
+ end.join( " ").html_safe
21
+ rescue
22
+ " "
21
23
  end
22
24
 
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module OxenAccount
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxen_account
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walther H Diechmann
@@ -336,8 +336,6 @@ files:
336
336
  - app/views/users/invitations/_new.html.haml
337
337
  - app/views/users/invitations/create.html.haml
338
338
  - app/views/users/invitations/edit.html.haml
339
- - bin/console
340
- - bin/setup
341
339
  - config/initializers/devise.rb
342
340
  - config/initializers/devise_permitted_parameters.rb
343
341
  - config/locales/devise.da.yml
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "account"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here