timesheet_plugin 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/README.rdoc +1 -0
  2. data/Rakefile +2 -2
  3. data/VERSION +1 -1
  4. data/app/controllers/timesheet_controller.rb +16 -3
  5. data/app/helpers/timesheet_helper.rb +13 -8
  6. data/app/models/timesheet.rb +120 -12
  7. data/app/views/timesheet/_form.rhtml +5 -31
  8. data/app/views/timesheet/_issue_time_entries.rhtml +9 -2
  9. data/app/views/timesheet/index.rhtml +2 -5
  10. data/app/views/timesheet/report.rhtml +2 -5
  11. data/assets/images/csv.png +0 -0
  12. data/assets/javascripts/timesheet.js +17 -0
  13. data/assets/stylesheets/timesheet.css +6 -0
  14. data/config/locales/hu.yml +1 -1
  15. data/config/locales/hy.yml +9 -0
  16. data/config/locales/ja.yml +10 -0
  17. data/config/locales/pt-br.yml +10 -0
  18. data/config/locales/ru.yml +1 -0
  19. data/config/locales/sr.yml +10 -0
  20. data/config/locales/sv.yml +10 -0
  21. data/config/locales/uk.yml +10 -0
  22. data/config/routes.rb +4 -0
  23. data/init.rb +47 -1
  24. data/lang/hu.yml +1 -1
  25. data/lang/hy.yml +8 -0
  26. data/lang/ja.yml +9 -0
  27. data/lang/pt-br.yml +9 -0
  28. data/lang/ru.yml +1 -0
  29. data/lang/sr.yml +9 -0
  30. data/lang/sv.yml +9 -0
  31. data/lang/uk.yml +9 -0
  32. data/lib/timesheet_compatibility.rb +12 -1
  33. data/rails/init.rb +1 -29
  34. data/test/functional/timesheet_controller_test.rb +256 -0
  35. data/test/integration/timesheet_menu_test.rb +53 -0
  36. data/test/test_helper.rb +24 -0
  37. data/test/unit/sanity_test.rb +20 -0
  38. data/test/unit/timesheet_test.rb +653 -0
  39. metadata +28 -7
  40. data/lib/tasks/plugin_stat.rake +0 -38
  41. data/spec/controllers/timesheet_controller_spec.rb +0 -263
  42. data/spec/models/timesheet_spec.rb +0 -537
  43. data/spec/sanity_spec.rb +0 -7
  44. data/spec/spec_helper.rb +0 -40
data/spec/sanity_spec.rb DELETED
@@ -1,7 +0,0 @@
1
- require File.dirname(__FILE__) + '/spec_helper'
2
-
3
- describe Class do
4
- it "should be a class of Class" do
5
- Class.class.should eql(Class)
6
- end
7
- end
data/spec/spec_helper.rb DELETED
@@ -1,40 +0,0 @@
1
- # This file is copied to ~/spec when you run 'ruby script/generate rspec'
2
- # from the project root directory.
3
- ENV["RAILS_ENV"] = "test"
4
- require File.expand_path(File.dirname(__FILE__) + "/../../../../config/environment")
5
- require 'spec'
6
- require 'spec/rails'
7
- require 'ruby-debug'
8
-
9
- Spec::Runner.configure do |config|
10
- # If you're not using ActiveRecord you should remove these
11
- # lines, delete config/database.yml and disable :active_record
12
- # in your config/boot.rb
13
- config.use_transactional_fixtures = true
14
- config.use_instantiated_fixtures = false
15
- config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
16
-
17
- # == Fixtures
18
- #
19
- # You can declare fixtures for each example_group like this:
20
- # describe "...." do
21
- # fixtures :table_a, :table_b
22
- #
23
- # Alternatively, if you prefer to declare them only once, you can
24
- # do so right here. Just uncomment the next line and replace the fixture
25
- # names with your fixtures.
26
- #
27
- # config.global_fixtures = :table_a, :table_b
28
- #
29
- # If you declare global fixtures, be aware that they will be declared
30
- # for all of your examples, even those that don't use them.
31
- #
32
- # == Mock Framework
33
- #
34
- # RSpec uses it's own mocking framework by default. If you prefer to
35
- # use mocha, flexmock or RR, uncomment the appropriate line:
36
- #
37
- # config.mock_with :mocha
38
- # config.mock_with :flexmock
39
- # config.mock_with :rr
40
- end