timesheet_plugin 0.5.0 → 0.6.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.
- data/README.rdoc +1 -0
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/app/controllers/timesheet_controller.rb +16 -3
- data/app/helpers/timesheet_helper.rb +13 -8
- data/app/models/timesheet.rb +120 -12
- data/app/views/timesheet/_form.rhtml +5 -31
- data/app/views/timesheet/_issue_time_entries.rhtml +9 -2
- data/app/views/timesheet/index.rhtml +2 -5
- data/app/views/timesheet/report.rhtml +2 -5
- data/assets/images/csv.png +0 -0
- data/assets/javascripts/timesheet.js +17 -0
- data/assets/stylesheets/timesheet.css +6 -0
- data/config/locales/hu.yml +1 -1
- data/config/locales/hy.yml +9 -0
- data/config/locales/ja.yml +10 -0
- data/config/locales/pt-br.yml +10 -0
- data/config/locales/ru.yml +1 -0
- data/config/locales/sr.yml +10 -0
- data/config/locales/sv.yml +10 -0
- data/config/locales/uk.yml +10 -0
- data/config/routes.rb +4 -0
- data/init.rb +47 -1
- data/lang/hu.yml +1 -1
- data/lang/hy.yml +8 -0
- data/lang/ja.yml +9 -0
- data/lang/pt-br.yml +9 -0
- data/lang/ru.yml +1 -0
- data/lang/sr.yml +9 -0
- data/lang/sv.yml +9 -0
- data/lang/uk.yml +9 -0
- data/lib/timesheet_compatibility.rb +12 -1
- data/rails/init.rb +1 -29
- data/test/functional/timesheet_controller_test.rb +256 -0
- data/test/integration/timesheet_menu_test.rb +53 -0
- data/test/test_helper.rb +24 -0
- data/test/unit/sanity_test.rb +20 -0
- data/test/unit/timesheet_test.rb +653 -0
- metadata +28 -7
- data/lib/tasks/plugin_stat.rake +0 -38
- data/spec/controllers/timesheet_controller_spec.rb +0 -263
- data/spec/models/timesheet_spec.rb +0 -537
- data/spec/sanity_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -40
data/spec/sanity_spec.rb
DELETED
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
|