bookyt_projects 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -0,0 +1,2 @@
1
+ class TasksController < AuthorizedController
2
+ end
@@ -0,0 +1,4 @@
1
+ class Task < ActiveRecord::Base
2
+ belongs_to :project
3
+ belongs_to :person
4
+ end
@@ -0,0 +1,12 @@
1
+ = semantic_form_for @task do |f| #when:date from:datetime to:datetime person_id:integer project_id:integer comment:string
2
+ = f.inputs do
3
+ = f.input :person
4
+ = f.input :project
5
+ = f.inputs do
6
+ = f.input :when, :as => :date_field
7
+ = f.input :from, :as => :time_field
8
+ = f.input :to, :as => :time_field
9
+ = f.inputs do
10
+ = f.input :comment
11
+ = f.buttons do
12
+ = f.commit_button
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bookyt_projects}
8
- s.version = "0.1.0"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Roman Simecek}]
12
- s.date = %q{2011-09-09}
12
+ s.date = %q{2011-09-12}
13
13
  s.description = %q{Rails engine for project management it's used to extend the functionallity of bookyt.}
14
14
  s.email = %q{roman.simecek@cyt.ch}
15
15
  s.extra_rdoc_files = [
@@ -27,13 +27,16 @@ Gem::Specification.new do |s|
27
27
  "app/assets/stylesheets/bookyt_projects.sass",
28
28
  "app/controllers/project_states_controller.rb",
29
29
  "app/controllers/projects_controller.rb",
30
+ "app/controllers/tasks_controller.rb",
30
31
  "app/models/project.rb",
31
32
  "app/models/project_state.rb",
33
+ "app/models/task.rb",
32
34
  "app/views/project_states/_form.html.haml",
33
35
  "app/views/project_states/new.html.haml",
34
36
  "app/views/projects/_form.html.haml",
35
37
  "app/views/projects/_list.html.haml",
36
38
  "app/views/projects/new.html.haml",
39
+ "app/views/tasks/_form.html.haml",
37
40
  "bookyt_projects.gemspec",
38
41
  "config/locales/de.yml",
39
42
  "config/routes.rb",
@@ -3,6 +3,7 @@ de:
3
3
  models:
4
4
  project: Projekte
5
5
  project_state: Projektstatus
6
+ task: Arbeitsschritt
6
7
  attributes:
7
8
  project:
8
9
  name: Bezeichnung
data/config/routes.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  Rails.application.routes.draw do
2
2
  resources :projects
3
3
  resources :project_states
4
+ resources :tasks
4
5
  end
@@ -3,10 +3,11 @@ module BookytProjects
3
3
  def setup_bookyt_projects(navigation)
4
4
  navigation.item :projects, t_model(Project), projects_path, :if => Proc.new { user_signed_in? } do |projects|
5
5
  projects.item :project_index, t_title(:index, Project), projects_path, :highlights_on => /\/projects($|\/[0-9]*($|\/.*))/
6
+ projects.item :capture_hours, t_title(:new, Task), new_task_path
6
7
  projects.item :new_project, t_title(:new, Project), new_project_path
7
8
  projects.item :project_states, t_model(ProjectState), project_states_path, :highlights_on => /\/project_states($|\/([0-9]*|new)($|\/.*))/
8
- # projects.item :new_project_state, t_title(:new, ProjectState), new_project_state_path
9
9
  end
10
+ navigation.item :capture_hours, t_title(:new, Task), new_task_path
10
11
  end
11
12
  end
12
13
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookyt_projects
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 0.1.0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-09 00:00:00 Z
18
+ date: 2011-09-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  requirement: &id001 !ruby/object:Gem::Requirement
@@ -114,13 +114,16 @@ files:
114
114
  - app/assets/stylesheets/bookyt_projects.sass
115
115
  - app/controllers/project_states_controller.rb
116
116
  - app/controllers/projects_controller.rb
117
+ - app/controllers/tasks_controller.rb
117
118
  - app/models/project.rb
118
119
  - app/models/project_state.rb
120
+ - app/models/task.rb
119
121
  - app/views/project_states/_form.html.haml
120
122
  - app/views/project_states/new.html.haml
121
123
  - app/views/projects/_form.html.haml
122
124
  - app/views/projects/_list.html.haml
123
125
  - app/views/projects/new.html.haml
126
+ - app/views/tasks/_form.html.haml
124
127
  - bookyt_projects.gemspec
125
128
  - config/locales/de.yml
126
129
  - config/routes.rb