burden_web 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,11 @@
1
1
  module BurdenWeb
2
2
  class ApplicationController < ActionController::Base
3
- def tasks
4
- Rails.application.load_tasks
5
- Rake.application.tasks.keep_if do |task|
6
- task.name =~ /^[a-z0-9_:]+$/
3
+ def rake_tasks
4
+ @rake_tasks ||= begin
5
+ Rails.application.load_tasks
6
+ Rake.application.tasks.keep_if do |task|
7
+ task.name =~ /^[a-z0-9_:]+$/
8
+ end
7
9
  end
8
10
  end
9
11
  end
@@ -1,7 +1,7 @@
1
1
  module BurdenWeb
2
2
  class RunsController < ApplicationController
3
3
  def index
4
- @runs = Burden::Storage.run.history(params[:task_id])
4
+ @runs = Burden.runs.history(params[:task_id])
5
5
  end
6
6
  end
7
7
  end
@@ -1,10 +1,10 @@
1
1
  module BurdenWeb
2
2
  class TasksController < ApplicationController
3
3
  def index
4
- @tasks = Burden::Storage.run.summary
5
- (tasks.map(&:name) - @tasks.map(&:name)).each do |nr_task| # Never runned tasks
4
+ @tasks = Burden.runs.summary
5
+ (rake_tasks.map(&:name) - @tasks.map(&:name)).each do |nr_task| # Never runned tasks
6
6
  next if ignore? nr_task
7
- @tasks << Burden::Storage.run.new(
7
+ @tasks << Burden.runs.new(
8
8
  name: nr_task
9
9
  )
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module BurdenWeb
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -2,79 +2,79 @@
2
2
  name: burden_web
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Gregory Eremin
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-07 00:00:00.000000000 Z
12
+ date: 2013-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  type: :runtime
17
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
18
19
  requirements:
19
20
  - - ! '>='
20
21
  - !ruby/object:Gem::Version
21
22
  version: '3.2'
22
- none: false
23
+ prerelease: false
23
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ! '>='
26
28
  - !ruby/object:Gem::Version
27
29
  version: '3.2'
28
- none: false
29
- prerelease: false
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: burden
32
32
  type: :development
33
33
  requirement: !ruby/object:Gem::Requirement
34
+ none: false
34
35
  requirements:
35
36
  - - '='
36
37
  - !ruby/object:Gem::Version
37
- version: 0.1.1
38
- none: false
38
+ version: 0.1.2
39
+ prerelease: false
39
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
40
42
  requirements:
41
43
  - - '='
42
44
  - !ruby/object:Gem::Version
43
- version: 0.1.1
44
- none: false
45
- prerelease: false
45
+ version: 0.1.2
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: sqlite3
48
48
  type: :development
49
49
  requirement: !ruby/object:Gem::Requirement
50
+ none: false
50
51
  requirements:
51
52
  - - ! '>='
52
53
  - !ruby/object:Gem::Version
53
54
  version: '0'
54
- none: false
55
+ prerelease: false
55
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
56
58
  requirements:
57
59
  - - ! '>='
58
60
  - !ruby/object:Gem::Version
59
61
  version: '0'
60
- none: false
61
- prerelease: false
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: awesome_print
64
64
  type: :development
65
65
  requirement: !ruby/object:Gem::Requirement
66
+ none: false
66
67
  requirements:
67
68
  - - ! '>='
68
69
  - !ruby/object:Gem::Version
69
70
  version: '0'
70
- none: false
71
+ prerelease: false
71
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
72
74
  requirements:
73
75
  - - ! '>='
74
76
  - !ruby/object:Gem::Version
75
77
  version: '0'
76
- none: false
77
- prerelease: false
78
78
  description: Burden is a manager and statistics collector for Rake tasks. It comes
79
79
  with this web interface.
80
80
  email:
@@ -151,23 +151,17 @@ rdoc_options: []
151
151
  require_paths:
152
152
  - lib
153
153
  required_ruby_version: !ruby/object:Gem::Requirement
154
+ none: false
154
155
  requirements:
155
156
  - - ! '>='
156
157
  - !ruby/object:Gem::Version
157
- segments:
158
- - 0
159
- hash: -873952355840704762
160
158
  version: '0'
161
- none: false
162
159
  required_rubygems_version: !ruby/object:Gem::Requirement
160
+ none: false
163
161
  requirements:
164
162
  - - ! '>='
165
163
  - !ruby/object:Gem::Version
166
- segments:
167
- - 0
168
- hash: -873952355840704762
169
164
  version: '0'
170
- none: false
171
165
  requirements: []
172
166
  rubyforge_project:
173
167
  rubygems_version: 1.8.23