dj_mon 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,13 @@
1
- # DJ Mon [![Build Status](https://secure.travis-ci.org/akshayrawat/dj_mon.png)](http://travis-ci.org/akshayrawat/dj_mon)
1
+ # DJ Mon [![Build Status](https://secure.travis-ci.org/akshayrawat/dj_mon.png?branch=master)](http://travis-ci.org/akshayrawat/dj_mon)
2
2
 
3
- A Rails engine based frontend for Delayed Job.
3
+ A Rails engine based frontend for Delayed Job. It also has an [iPhone app](http://itunes.apple.com/app/dj-mon/id552732872).
4
+
5
+ ## Demo
6
+ * [A quick video tour](http://www.akshay.cc/dj_mon/)
7
+ * [Sandbox Demo URL](http://dj-mon-demo.herokuapp.com/)
8
+ * Username: `dj_mon`
9
+ * Password: `password`
10
+ * [Demo Source](https://github.com/akshayrawat/dj_mon_demo)
4
11
 
5
12
  ## Installation
6
13
 
@@ -18,7 +25,7 @@ Or install it yourself as:
18
25
 
19
26
  ## Note
20
27
 
21
- Supports only `activerecord` and `mongoid` for now.
28
+ Supports `activerecord` and `mongoid`.
22
29
 
23
30
  ## Usage
24
31
 
@@ -38,24 +45,24 @@ This uses http basic auth for authentication. Set the credentials in an initiali
38
45
  If the credentials are not set, then the username and password are assumed to be the above mentioned.
39
46
 
40
47
  Now visit `http://localhost:3000/dj_mon` and profit!
41
-
42
48
 
43
- ## Demo
49
+ ## iPhone App
50
+ * The iPhone app is written in RubyMotion. [Source](https://github.com/akshayrawat/dj_mon_iphone).
51
+ * [On App Store](http://itunes.apple.com/app/dj-mon/id552732872)
44
52
 
45
- * [Demo URL](http://dj-mon-demo.herokuapp.com/)
46
- * Username: `dj_mon`
47
- * Password: `password`
48
- * [Demo Source](https://github.com/akshayrawat/dj_mon_demo)
53
+ ## Contributing
49
54
 
50
- ![Screenshot](https://github.com/akshayrawat/dj_mon_demo/raw/master/docs/screenshot.jpg)
55
+ ### Things to do
56
+ * Mostly in the iPhone app. Mentioned in the [README](https://github.com/akshayrawat/dj_mon_iphone).
51
57
 
58
+ ### Running the test suite
52
59
 
53
- ## Running the test suite
54
-
55
- To run the test suite, execute the following commands on the project
60
+ To run the test suite, execute the following commands from the project
56
61
  root:
57
62
 
58
63
  gem install bundler
59
64
  bundle install
60
65
  rake test:prepare
61
66
  rake
67
+
68
+ ![Screenshot](https://github.com/akshayrawat/dj_mon_demo/raw/master/docs/screenshot.jpg)
@@ -1,12 +1,10 @@
1
- require 'dj_mon/version'
2
-
3
1
  module DjMon
4
2
  class DjReportsController < ActionController::Base
5
3
  respond_to :json, :html
6
4
  layout 'dj_mon'
7
5
 
8
6
  before_filter :authenticate
9
- after_filter :set_api_version
7
+ before_filter :set_api_version
10
8
 
11
9
  def index
12
10
  end
@@ -38,7 +36,7 @@ module DjMon
38
36
  def retry
39
37
  DjMon::Backend.retry params[:id]
40
38
  respond_to do |format|
41
- format.html { redirect_to root_url, notice: "The job has been queued for a re-run" and return }
39
+ format.html { redirect_to root_url, notice: "The job has been queued for a re-run" }
42
40
  format.json { head(:ok) }
43
41
  end
44
42
  end
@@ -46,7 +44,7 @@ module DjMon
46
44
  def destroy
47
45
  DjMon::Backend.destroy params[:id]
48
46
  respond_to do |format|
49
- format.html { redirect_to root_url, notice: "The job was deleted" and return }
47
+ format.html { redirect_to root_url, notice: "The job was deleted" }
50
48
  format.json { head(:ok) }
51
49
  end
52
50
  end
@@ -1,5 +1,3 @@
1
- require 'dj_mon/version'
2
-
3
1
  module DjMon
4
2
  class DjReport
5
3
  TIME_FORMAT = "%b %d %H:%M:%S"
@@ -1,4 +1,9 @@
1
- %p.lead Delayed Jobs
1
+ %p
2
+ .lead
3
+ Delayed Jobs
4
+ .pull-right
5
+ = link_to "Get DJ Mon for iPhone", "http://itunes.apple.com/app/dj-mon/id552732872", target: '_blank', class: 'btn btn-mini'
6
+
2
7
  %ul.nav.nav-tabs
3
8
  %li.active
4
9
  = link_to "All", "#all", "data-toggle" => "tab"
@@ -1,3 +1,3 @@
1
1
  module DjMon
2
- VERSION = "0.2.0".freeze
2
+ VERSION = "1.0.0".freeze
3
3
  end
data/lib/dj_mon.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'haml'
2
+ require 'dj_mon/version'
2
3
  require 'dj_mon/engine'
3
4
  require 'dj_mon/backend'
4
5
 
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dj_mon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Akshay Rawat
9
+ - Timo Schilling
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2012-08-11 00:00:00.000000000 Z
13
+ date: 2012-08-23 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rails