queue_classic_admin 0.0.12 → 0.0.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afed2c5a1875321885c8fa8646df90fc6fbe3392
4
- data.tar.gz: 557f4507c2f8eeb1bd89fd20f9f440d6d3ad21f5
3
+ metadata.gz: 851415209926f178a6e77e82763e314e39e9d186
4
+ data.tar.gz: 4e4164c9807cbcafb3d0790aecf996e85bfc235b
5
5
  SHA512:
6
- metadata.gz: 3fbe137eb27360db37440e4385ba7123dc4d9135ae7b8229bff17bb7ef64f56a7bd124b8a4c5bc81474ada1174bdb7ef00dca3c200786105f9e323f6443576a9
7
- data.tar.gz: b5b89d15887f6a0d65de4f0188e182757a0f78000e4b44d25a03d3be40f347246f6f72cf5daca9147d4cd5b68e8e3a147d8d887f5b2a97771f75440518b53412
6
+ metadata.gz: 628666910f834624a20a69efd19ca3057b503af02ba3b1299502c31359dc94d5c30d6b2dc8f78cbadf8d8489d7de15da1ba0e400a3548e9922d13b3cbed4599d
7
+ data.tar.gz: dbdb4cef1c9bf9d473fc2b18c267a6e7cbb28665161053ebfc71ad3a7dd47ed70a4ec3a8f056b227f5f067cb865e0b418d41a73b1539ed595dc3bf235bce8aab
data/README.md CHANGED
@@ -26,6 +26,13 @@ Mount in your rails app config/routes.rb file
26
26
 
27
27
  mount QueueClassicAdmin::Engine => "/queue_classic_admin"
28
28
 
29
+ Add the following asset dependencies to your Gemfile
30
+
31
+ ```ruby
32
+ gem "twitter-bootstrap-rails"
33
+ gem "jquery-rails"
34
+ ```
35
+
29
36
  # Configuration
30
37
 
31
38
  ## Custom searchable fields
@@ -1,3 +1,5 @@
1
+ require 'will_paginate'
2
+
1
3
  module QueueClassicAdmin
2
4
  module JobCommon
3
5
  module ClassMethods
@@ -28,7 +30,11 @@ module QueueClassicAdmin
28
30
 
29
31
  module InstanceMethods
30
32
  def arguments
31
- MultiJson.decode(args)
33
+ if self.class.column_types["args"].type == :json
34
+ args
35
+ else
36
+ MultiJson.decode(args)
37
+ end
32
38
  end
33
39
  end
34
40
 
@@ -36,7 +42,7 @@ module QueueClassicAdmin
36
42
  receiver.extend ClassMethods
37
43
  receiver.send :include, InstanceMethods
38
44
  receiver.attr_accessible :q_name unless defined?(ActionController::StrongParameters)
39
- receiver.per_page = 50
45
+ receiver.per_page = 50 if receiver.respond_to?(:per_page)
40
46
  end
41
47
  end
42
48
  end
@@ -1,5 +1,7 @@
1
1
  class AddIdToLater < ActiveRecord::Migration
2
2
  def change
3
- add_column :queue_classic_later_jobs, :id, :primary_key
3
+ if ActiveRecord::Base.connection.table_exists?(:queue_classic_later_jobs)
4
+ add_column :queue_classic_later_jobs, :id, :primary_key
5
+ end
4
6
  end
5
7
  end
@@ -1,7 +1,9 @@
1
1
  class AddCreatedColumn < ActiveRecord::Migration
2
2
  def up
3
3
  %w(queue_classic_later_jobs queue_classic_jobs).each do |table|
4
- execute "ALTER TABLE #{table} ADD COLUMN created_at TIMESTAMP NOT NULL DEFAULT now();"
4
+ if ActiveRecord::Base.connection.table_exists?(:table)
5
+ execute "ALTER TABLE #{table} ADD COLUMN created_at TIMESTAMP NOT NULL DEFAULT now();"
6
+ end
5
7
  end
6
8
  end
7
9
 
@@ -1,3 +1,3 @@
1
1
  module QueueClassicAdmin
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
@@ -1,5 +1,7 @@
1
1
  require "queue_classic_admin/engine"
2
2
  require "queue_classic_admin/custom_action"
3
+ require 'will_paginate'
4
+ require "will_paginate-bootstrap"
3
5
 
4
6
  module QueueClassicAdmin
5
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue_classic_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Mathieu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-27 00:00:00.000000000 Z
11
+ date: 2014-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails