oxen_printer 0.2.8 → 0.2.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: b5289d8bcfdf6ca46e800d404ad8f40e047359c0
4
- data.tar.gz: 091633409c2c7824c053d8122882d917a4375925
3
+ metadata.gz: 135d01658e5c426ead5a0be899e34990b233635d
4
+ data.tar.gz: 438c0ed5d10bdd22e66cb7ee62d669def2bacdbc
5
5
  SHA512:
6
- metadata.gz: 243e30a2becc37e38bfe181ff9ab873d7c559984f32424c43c2e5c91701d671dea4def0b448040c12d331ec293cf129804d5e57f5013aa08e7e7206d8bb073ad
7
- data.tar.gz: d1a76218f76787c4f03bbe387fad9f238499810cf526192185744f52ba0e269a97a88891a82332a14aba2940f773b7ec8937467dab537ef1c98e9da1cd9639b1
6
+ metadata.gz: 2d6474a88806f7e8a927a1e8b45d02b8bb04cc293b854d97481adbac6b9874e84d6d9243a4421ae49dd4b5d3132ecfda81ddcd74c0b24d08bf218d72946629e6
7
+ data.tar.gz: 3b21b3d4113b1114f2627452735a8c7cb6fbcefba68170aa8680a5e0f4b61b85b65f4bc65b5f5b752eb631e2339306c8bc5a4025e6160361e76249be2805fee2
@@ -30,6 +30,7 @@ class OxPrintJob < AbstractResource
30
30
 
31
31
  scope :stated, ->(pap) { where(state: pap) }
32
32
  scope :queued, ->{ where(print_jobs.state >> ['processing','printing']) }
33
+ scope :newest, ->{ order(created_at: :desc)}
33
34
 
34
35
  # Temporary attribute for the print_job object to hold the instanciated printer (PdfPrinter, HtmlPrinter, CsvPrinter etc.)
35
36
  attr_accessor :action_printer, :snap_shot, :download
@@ -7,5 +7,5 @@
7
7
  %th= t(:delete)
8
8
 
9
9
  %tbody#account_printers.resources_list
10
- - resource.print_jobs.each do |print_job|
10
+ - resource.print_jobs.newest.each do |print_job|
11
11
  = render partial: 'oxen/print_jobs/printer_print_job', locals: { print_job: print_job, parent: resource, parent_id: resource.id }
@@ -1,3 +1,3 @@
1
1
  module OxenPrinter
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxen_printer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walther H Diechmann