redmine_rate 0.2.0

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.
Files changed (60) hide show
  1. data/COPYRIGHT.txt +18 -0
  2. data/CREDITS.txt +5 -0
  3. data/GPL.txt +339 -0
  4. data/README.rdoc +93 -0
  5. data/Rakefile +37 -0
  6. data/VERSION +1 -0
  7. data/app/controllers/rate_caches_controller.rb +35 -0
  8. data/app/controllers/rates_controller.rb +154 -0
  9. data/app/models/rate.rb +161 -0
  10. data/app/views/rate_caches/index.html.erb +21 -0
  11. data/app/views/rates/_form.html.erb +36 -0
  12. data/app/views/rates/_list.html.erb +42 -0
  13. data/app/views/rates/create.js.rjs +2 -0
  14. data/app/views/rates/create_error.js.rjs +5 -0
  15. data/app/views/rates/edit.html.erb +3 -0
  16. data/app/views/rates/index.html.erb +5 -0
  17. data/app/views/rates/new.html.erb +3 -0
  18. data/app/views/rates/show.html.erb +23 -0
  19. data/app/views/users/_membership_rate.html.erb +23 -0
  20. data/app/views/users/_rates.html.erb +17 -0
  21. data/assets/images/database_refresh.png +0 -0
  22. data/config/locales/de.yml +18 -0
  23. data/config/locales/en.yml +18 -0
  24. data/config/locales/fr.yml +20 -0
  25. data/config/locales/ru.yml +9 -0
  26. data/config/routes.rb +4 -0
  27. data/init.rb +49 -0
  28. data/lang/de.yml +9 -0
  29. data/lang/en.yml +9 -0
  30. data/lang/fr.yml +8 -0
  31. data/lib/rate_conversion.rb +16 -0
  32. data/lib/rate_memberships_hook.rb +15 -0
  33. data/lib/rate_project_hook.rb +106 -0
  34. data/lib/rate_sort_helper_patch.rb +102 -0
  35. data/lib/rate_time_entry_patch.rb +66 -0
  36. data/lib/rate_users_helper_patch.rb +37 -0
  37. data/lib/redmine_rate/hooks/plugin_timesheet_view_timesheets_report_header_tags_hook.rb +11 -0
  38. data/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_group_header_hook.rb +9 -0
  39. data/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_hook.rb +18 -0
  40. data/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_sum_hook.rb +17 -0
  41. data/lib/redmine_rate/hooks/plugin_timesheet_views_timesheets_time_entry_row_class_hook.rb +21 -0
  42. data/lib/redmine_rate/hooks/timesheet_hook_helper.rb +14 -0
  43. data/lib/redmine_rate/hooks/view_layouts_base_html_head_hook.rb +9 -0
  44. data/lib/tasks/cache.rake +13 -0
  45. data/lib/tasks/data.rake +163 -0
  46. data/rails/init.rb +1 -0
  47. data/test/functional/rates_controller_test.rb +401 -0
  48. data/test/integration/admin_panel_test.rb +81 -0
  49. data/test/integration/routing_test.rb +16 -0
  50. data/test/test_helper.rb +43 -0
  51. data/test/unit/lib/rate_time_entry_patch_test.rb +77 -0
  52. data/test/unit/lib/rate_users_helper_patch_test.rb +37 -0
  53. data/test/unit/lib/redmine_rate/hooks/plugin_timesheet_view_timesheets_report_header_tags_hook_test.rb +26 -0
  54. data/test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_group_header_hook_test.rb +26 -0
  55. data/test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_hook_test.rb +47 -0
  56. data/test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_sum_hook_test.rb +48 -0
  57. data/test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheets_time_entry_row_class_hook_test.rb +60 -0
  58. data/test/unit/rate_for_test.rb +74 -0
  59. data/test/unit/rate_test.rb +333 -0
  60. metadata +137 -0
metadata ADDED
@@ -0,0 +1,137 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: redmine_rate
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
+ platform: ruby
12
+ authors:
13
+ - Eric Davis
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-03-03 00:00:00 -08:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: The Rate plugin stores billing rates for Users. It also provides an API that can be used to find the rate for a Member of a Project at a specific date.
23
+ email: edavis@littlestreamsoftware.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files:
29
+ - README.rdoc
30
+ files:
31
+ - COPYRIGHT.txt
32
+ - CREDITS.txt
33
+ - GPL.txt
34
+ - README.rdoc
35
+ - Rakefile
36
+ - VERSION
37
+ - app/controllers/rate_caches_controller.rb
38
+ - app/controllers/rates_controller.rb
39
+ - app/models/rate.rb
40
+ - app/views/rate_caches/index.html.erb
41
+ - app/views/rates/_form.html.erb
42
+ - app/views/rates/_list.html.erb
43
+ - app/views/rates/create.js.rjs
44
+ - app/views/rates/create_error.js.rjs
45
+ - app/views/rates/edit.html.erb
46
+ - app/views/rates/index.html.erb
47
+ - app/views/rates/new.html.erb
48
+ - app/views/rates/show.html.erb
49
+ - app/views/users/_membership_rate.html.erb
50
+ - app/views/users/_rates.html.erb
51
+ - assets/images/database_refresh.png
52
+ - config/locales/de.yml
53
+ - config/locales/en.yml
54
+ - config/locales/fr.yml
55
+ - config/locales/ru.yml
56
+ - config/routes.rb
57
+ - init.rb
58
+ - lang/de.yml
59
+ - lang/en.yml
60
+ - lang/fr.yml
61
+ - lib/rate_conversion.rb
62
+ - lib/rate_memberships_hook.rb
63
+ - lib/rate_project_hook.rb
64
+ - lib/rate_sort_helper_patch.rb
65
+ - lib/rate_time_entry_patch.rb
66
+ - lib/rate_users_helper_patch.rb
67
+ - lib/redmine_rate/hooks/plugin_timesheet_view_timesheets_report_header_tags_hook.rb
68
+ - lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_group_header_hook.rb
69
+ - lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_hook.rb
70
+ - lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_sum_hook.rb
71
+ - lib/redmine_rate/hooks/plugin_timesheet_views_timesheets_time_entry_row_class_hook.rb
72
+ - lib/redmine_rate/hooks/timesheet_hook_helper.rb
73
+ - lib/redmine_rate/hooks/view_layouts_base_html_head_hook.rb
74
+ - lib/tasks/cache.rake
75
+ - lib/tasks/data.rake
76
+ - rails/init.rb
77
+ - test/functional/rates_controller_test.rb
78
+ - test/integration/admin_panel_test.rb
79
+ - test/integration/routing_test.rb
80
+ - test/test_helper.rb
81
+ - test/unit/lib/rate_time_entry_patch_test.rb
82
+ - test/unit/lib/rate_users_helper_patch_test.rb
83
+ - test/unit/lib/redmine_rate/hooks/plugin_timesheet_view_timesheets_report_header_tags_hook_test.rb
84
+ - test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_group_header_hook_test.rb
85
+ - test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_hook_test.rb
86
+ - test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_sum_hook_test.rb
87
+ - test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheets_time_entry_row_class_hook_test.rb
88
+ - test/unit/rate_for_test.rb
89
+ - test/unit/rate_test.rb
90
+ has_rdoc: true
91
+ homepage: https://projects.littlestreamsoftware.com/projects/redmine-rate
92
+ licenses: []
93
+
94
+ post_install_message:
95
+ rdoc_options:
96
+ - --charset=UTF-8
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ hash: 3
105
+ segments:
106
+ - 0
107
+ version: "0"
108
+ required_rubygems_version: !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ hash: 3
114
+ segments:
115
+ - 0
116
+ version: "0"
117
+ requirements: []
118
+
119
+ rubyforge_project: redmine_rate
120
+ rubygems_version: 1.3.7
121
+ signing_key:
122
+ specification_version: 3
123
+ summary: A Rate plugin for Redmine to store billing rate for user.
124
+ test_files:
125
+ - test/test_helper.rb
126
+ - test/integration/routing_test.rb
127
+ - test/integration/admin_panel_test.rb
128
+ - test/unit/rate_for_test.rb
129
+ - test/unit/lib/rate_time_entry_patch_test.rb
130
+ - test/unit/lib/rate_users_helper_patch_test.rb
131
+ - test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheets_time_entry_row_class_hook_test.rb
132
+ - test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_hook_test.rb
133
+ - test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_group_header_hook_test.rb
134
+ - test/unit/lib/redmine_rate/hooks/plugin_timesheet_views_timesheet_time_entry_sum_hook_test.rb
135
+ - test/unit/lib/redmine_rate/hooks/plugin_timesheet_view_timesheets_report_header_tags_hook_test.rb
136
+ - test/unit/rate_test.rb
137
+ - test/functional/rates_controller_test.rb