delayed_job_ui 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94d772c78046c542ea23ec40383b3e22e577922a
4
- data.tar.gz: 0c4b9e3bc7123e60b8f0189f55af705923bf0102
3
+ metadata.gz: a7c7c7f0aa7e7357a7d3a7f037b9db7855c35e4a
4
+ data.tar.gz: e5be501bc7ccbeba2b8c674f7ab8ef9aff109bf6
5
5
  SHA512:
6
- metadata.gz: ce1da16824a0cf9bf9c69a7a49eec34b9aea947a0ca01fdc36b11e1342eaf998c939ce6b47d56fb6e4efff0abc18bb56fc6fa83ed0892a7375b10cc6f25f44d6
7
- data.tar.gz: e7f744ed6aacea23f3cf7bc03451a29c8d7e34ae3174b6bccb561e60147e9fd8cf8ab0128484edfc8c714e925c72a82aa78136121c8a21bfbab806c732636b66
6
+ metadata.gz: c0720f32fb01462799a76f78c7dfbbb2a0f2a1df4d09eed79bc888b1d23830ddf42b0c5e98a500624f4f81b6cc181b835d1c56fa76f470fd69a1b0c55a3d099e
7
+ data.tar.gz: f6ab87dc79862db9892ac5507b95f5b15716629d047e31c9023ec7a9af146c1a3fc769fd901654673782cf7b20f56a5e94ba0a17279aa1923cfde7a8a2bf70a9
data/README.md CHANGED
@@ -4,14 +4,14 @@ My first attempt at a gem. A small and simple (and hopefully unintrusive) UI wra
4
4
 
5
5
  To get the routes properly set up, insert this into your routes.rb file.
6
6
  ```ruby
7
- unless Rails.env.production?
7
+ unless Rails.env.production? || Rails.env.test?
8
8
  mount DelayedJobUi::Engine => '/delayed_job_ui'
9
9
  end
10
10
  ```
11
11
 
12
12
  To drop in the UI element, insert the following at the bottom of your application's layout file.
13
13
  ```erb
14
- <% unless Rails.env.production? #prevent this view in production %>
14
+ <% unless Rails.env.production? || Rails.env.test? #prevent this view in production and test %>
15
15
  <%= delayed_job_ui_layout %>
16
16
  <% end %>
17
17
  ```
data/config/routes.rb ADDED
@@ -0,0 +1,4 @@
1
+ DelayedJobUi::Engine.routes.draw do
2
+ match '/invoke' => 'main#invoke', :as => :invoke, :via => [:post, :put]
3
+ match '/destroy' => 'main#destroy', :as => :destroy, :via => :delete
4
+ end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'delayed_job_ui'
3
- s.version = '0.0.1'
3
+ s.version = '0.0.2'
4
4
  s.date = '2014-09-18'
5
5
  s.summary = 'A UI wrapper for DelayedJob'
6
6
  s.description = s.summary
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.files = [
10
10
  "Gemfile",
11
11
  "delayed_job_ui.gemspec",
12
- ] + %x{ git ls-files }.split("\n").select { |d| d =~ %r{^(lib|test|app)} }
12
+ ] + %x{ git ls-files }.split("\n").select { |d| d =~ %r{^(lib|app|config)} }
13
13
  s.extra_rdoc_files = [
14
14
  "LICENSE.txt",
15
15
  "README.md"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Woojin Kim
@@ -71,6 +71,7 @@ files:
71
71
  - app/views/delayed_job_ui/_job.html.haml
72
72
  - app/views/delayed_job_ui/_job_table.html.haml
73
73
  - app/views/delayed_job_ui/_ui_layout.html.haml
74
+ - config/routes.rb
74
75
  - delayed_job_ui.gemspec
75
76
  - lib/delayed_job_ui.rb
76
77
  - lib/delayed_job_ui/engine.rb