activeadmin_async_export 0.0.1 → 0.0.2

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.
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
17
17
  gem.required_ruby_version = '>= 1.9.2'
18
18
 
19
19
  gem.add_runtime_dependency 'activeadmin', '>= 0.5.1'
20
- gem.add_runtime_dependency 'resque_mailer'
20
+ gem.add_runtime_dependency 'sidekiq'
21
21
  end
@@ -1,7 +1,6 @@
1
1
  module ActiveAdmin
2
2
  module AsyncExport
3
3
  class AsyncExportMailer < ActionMailer::Base
4
- include Resque::Mailer
5
4
  add_template_helper MethodOrProcHelper
6
5
 
7
6
  def csv_export(admin_email, model_name)
@@ -11,7 +11,7 @@ module ActiveAdmin
11
11
  format.email do
12
12
  current_user_method = active_admin_config.namespace.application.current_user_method
13
13
  admin_email = send(current_user_method).email
14
- ActiveAdmin::AsyncExport::AsyncExportMailer.csv_export(admin_email, collection.first.class.to_s).deliver
14
+ ActiveAdmin::AsyncExport::AsyncExportMailer.delay.csv_export(admin_email, collection.first.class.to_s)
15
15
  redirect_to :back, notice: "CSV export emailed to #{admin_email}!"
16
16
  end
17
17
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module AsyncExport
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_async_export
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-26 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activeadmin
@@ -28,7 +28,7 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: 0.5.1
30
30
  - !ruby/object:Gem::Dependency
31
- name: resque_mailer
31
+ name: sidekiq
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements: