backlog 0.36.2 → 0.37.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +16 -4
- data/Gemfile.lock +130 -0
- data/History.txt +17 -0
- data/README.txt +0 -2
- data/Rakefile +17 -7
- data/app/controllers/absences_controller.rb +1 -2
- data/app/controllers/application_controller.rb +13 -14
- data/app/controllers/application_controller.rb.rails2 +186 -0
- data/app/controllers/estimates_controller.rb +1 -1
- data/app/controllers/groups_controller.rb +3 -1
- data/app/controllers/periods_controller.rb +61 -50
- data/app/controllers/{backlogs_controller.rb → projects_controller.rb} +35 -35
- data/app/controllers/search_controller.rb +2 -2
- data/app/controllers/tasks_controller.rb +11 -11
- data/app/controllers/user_controller.rb +6 -4
- data/app/controllers/welcome_controller.rb +4 -4
- data/app/controllers/work_locks_controller.rb +2 -2
- data/app/controllers/works_controller.rb +31 -31
- data/app/helpers/application_helper.rb +2 -2
- data/app/helpers/application_helper.rb.rails2 +118 -0
- data/app/helpers/periods_helper.rb +3 -3
- data/app/helpers/{backlogs_helper.rb → projects_helper.rb} +5 -5
- data/app/helpers/user_helper.rb +2 -2
- data/app/{models → mailers}/user_notify.rb +1 -0
- data/app/models/absence.rb +2 -2
- data/{lib → app/models}/clock.rb +0 -0
- data/app/models/estimate.rb +2 -2
- data/app/models/party.rb +1 -2
- data/app/models/period.rb +17 -18
- data/app/models/{backlog.rb → project.rb} +2 -2
- data/app/models/sidebar.rb +2 -2
- data/app/models/task.rb +28 -28
- data/app/models/user.rb +5 -4
- data/app/models/work.rb +29 -23
- data/app/models/work_lock_nagger.rb +1 -1
- data/app/models/works_report_filter.rb +4 -4
- data/app/views/customers/_name_list.rhtml +1 -1
- data/app/views/layouts/_headers.rhtml +2 -1
- data/app/views/layouts/_left_top.rhtml +32 -29
- data/app/views/layouts/_shortcuts.rhtml +15 -9
- data/app/views/layouts/_shortcuts_js.rhtml +4 -4
- data/app/views/layouts/mwrt002.html.erb +44 -0
- data/app/views/periods/_burn_down_chart.rhtml +1 -1
- data/app/views/periods/_show_active.rhtml +3 -3
- data/app/views/periods/_title.rhtml +1 -1
- data/app/views/{backlogs → projects}/_buttons.rhtml +4 -4
- data/app/views/projects/_form.rhtml +44 -0
- data/app/views/projects/_name_list.rhtml +5 -0
- data/app/views/projects/edit.rhtml +14 -0
- data/app/views/{backlogs → projects}/finish_task.rjs +0 -0
- data/app/views/projects/list.rhtml +16 -0
- data/app/views/{backlogs → projects}/move_task_to_period.rjs +0 -0
- data/app/views/{backlogs → projects}/new.rhtml +1 -1
- data/app/views/{backlogs → projects}/reopen_task.rjs +0 -0
- data/app/views/{backlogs → projects}/show.rhtml +6 -6
- data/app/views/search/results.rhtml +3 -3
- data/app/views/tasks/_backlog_header.rhtml +4 -4
- data/app/views/tasks/_completed.rhtml +2 -2
- data/app/views/tasks/_form.rhtml +13 -13
- data/app/views/tasks/_task.rhtml +10 -10
- data/app/views/tasks/edit.rhtml +1 -1
- data/app/views/tasks/list.rhtml +3 -3
- data/app/views/tasks/list_started.rhtml +4 -4
- data/app/views/tasks/start_work.rjs +1 -1
- data/app/views/user/login.rhtml +1 -1
- data/app/views/user/signup.rhtml +1 -1
- data/app/views/user/welcome.rhtml +1 -1
- data/app/views/works/_description_list.rhtml +1 -1
- data/app/views/works/_form.rhtml +5 -5
- data/app/views/works/_new_row.rhtml +8 -8
- data/app/views/works/_row.rhtml +1 -1
- data/app/views/works/_task_id_list.rhtml +1 -1
- data/app/views/works/daily_work_sheet.rhtml +1 -1
- data/app/views/works/list.rhtml +5 -5
- data/app/views/works/list_excel.rhtml +2 -2
- data/app/views/works/timeliste.rhtml +14 -14
- data/app/views/works/weekly_work_sheet.rhtml +5 -5
- data/app/views/works/weekly_work_sheet_details.rhtml +5 -5
- data/backlog.gemspec +44 -0
- data/bin/backlog +5 -1
- data/config.ru +4 -0
- data/config/application.rb +10 -0
- data/config/boot.rb +12 -116
- data/config/database.yml +3 -6
- data/config/database.yml~ +17 -0
- data/config/environment.rb +28 -49
- data/config/environments/development.rb +24 -20
- data/config/environments/development.rb.rails2 +26 -0
- data/config/environments/production.rb +26 -22
- data/config/environments/test.rb +20 -15
- data/config/environments/user_environment.rb +1 -1
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/inflections.rb +10 -0
- data/config/initializers/jdbc.rb +1 -1
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/secret_token.rb +7 -0
- data/config/initializers/session_store.rb +8 -0
- data/config/locales/en.yml +22 -11
- data/config/locales/no.yml +1 -0
- data/config/routes.rb +4 -5
- data/cruise_build.sh +6 -2
- data/db/migrate/004_add_period.rb +22 -22
- data/db/migrate/015_add_user_option.rb +5 -19
- data/db/migrate/017_increase_backlog_name_limit.rb +10 -0
- data/db/migrate/021_create_work_accounts.rb +0 -2
- data/db/migrate/20101006092700_rename_backlogs_to_projects.rb +22 -0
- data/db/migrate/20101006092700_rename_backlogs_to_projects.rb~ +22 -0
- data/db/schema.rb +27 -30
- data/db/seeds.rb +7 -0
- data/lib/array_helper.rb +0 -8
- data/lib/class_table_inheritance.rb +8 -7
- data/lib/tasks/backup.rake +3 -3
- data/lib/tasks/jdbc.rake +2 -2
- data/lib/version_from_history.rb +1 -1
- data/public/404.html +23 -7
- data/public/422.html +26 -0
- data/public/500.html +23 -6
- data/public/images/rails.png +0 -0
- data/public/javascripts/controls.js +5 -3
- data/public/javascripts/dragdrop.js +7 -6
- data/public/javascripts/effects.js +8 -13
- data/public/javascripts/prototype.js +3381 -1700
- data/public/javascripts/rails.js +175 -0
- data/public/robots.txt +5 -1
- data/script/rails +6 -0
- data/test/client/login.rb +0 -2
- data/test/client/login_test.rb +1 -1
- data/test/client/setup.rb +25 -24
- data/test/fixtures/{backlogs.yml → projects.yml} +2 -2
- data/test/fixtures/tasks.yml +9 -9
- data/test/fixtures/work_lock_subscriptions.yml +2 -2
- data/test/fixtures/works.yml +7 -7
- data/test/functional/periods_controller_test.rb +1 -1
- data/test/functional/{backlogs_controller_test.rb → projects_controller_test.rb} +22 -21
- data/test/functional/search_controller_test.rb +1 -1
- data/test/functional/tasks_controller_test.rb +17 -17
- data/test/functional/user_controller_test.rb +16 -21
- data/test/functional/welcome_controller_test.rb +4 -3
- data/test/functional/works_controller_test.rb +5 -5
- data/test/integration/user_system_test.rb +1 -1
- data/test/mocks/test/clock.rb +1 -1
- data/test/performance/browsing_test.rb +9 -0
- data/test/performance/common.rb +1 -1
- data/test/test_helper.rb +23 -6
- data/test/test_helper.rb~ +121 -0
- data/test/unit/user_test.rb +3 -3
- data/test/unit/work_test.rb +7 -7
- data/vendor/plugins/assert_cookie/lib/assert_cookie.rb +0 -2
- data/vendor/plugins/{foreign_key_migrations → dynamic_form}/MIT-LICENSE +1 -1
- data/vendor/plugins/dynamic_form/README +13 -0
- data/vendor/plugins/dynamic_form/Rakefile +10 -0
- data/vendor/plugins/dynamic_form/dynamic_form.gemspec +12 -0
- data/vendor/plugins/dynamic_form/init.rb +1 -0
- data/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb +300 -0
- data/vendor/plugins/dynamic_form/lib/action_view/locale/en.yml +8 -0
- data/vendor/plugins/dynamic_form/lib/dynamic_form.rb +5 -0
- data/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb +42 -0
- data/vendor/plugins/dynamic_form/test/dynamic_form_test.rb +370 -0
- data/vendor/plugins/dynamic_form/test/test_helper.rb +9 -0
- data/vendor/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb +432 -0
- data/vendor/plugins/prototype_legacy_helper/test/test_prototype_helper.rb +297 -0
- data/vendor/plugins/rails_time/test/debug.log +1 -0
- data/vendor/plugins/{redhillonrails_core → verification}/MIT-LICENSE +1 -1
- data/vendor/plugins/verification/README +34 -0
- data/vendor/plugins/verification/Rakefile +22 -0
- data/vendor/plugins/verification/init.rb +3 -0
- data/vendor/plugins/verification/lib/action_controller/verification.rb +132 -0
- data/vendor/plugins/verification/test/test_helper.rb +18 -0
- data/vendor/plugins/verification/test/verification_test.rb +270 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/collection.rb +1 -1
- metadata +115 -134
- data/Gemfile~ +0 -4
- data/History.txt~ +0 -961
- data/LICENSE_LOCALIZATION +0 -20
- data/README_LOCALIZATION +0 -61
- data/README_RAILS +0 -180
- data/app/views/backlogs/_form.rhtml +0 -44
- data/app/views/backlogs/_name_list.rhtml +0 -5
- data/app/views/backlogs/edit.rhtml +0 -14
- data/app/views/backlogs/list.rhtml +0 -16
- data/app/views/layouts/mwrt002.rhtml +0 -43
- data/config/initializers/mongrel.rb +0 -83
- data/config/preinitializer.rb +0 -20
- data/config/warble.rb~ +0 -84
- data/db/migrate/017_insert_datek_projects.rb +0 -98
- data/lib/change_column_null_migration_fix.rb +0 -15
- data/no_test.rb~ +0 -6
- data/public/dispatch.cgi +0 -10
- data/public/dispatch.fcgi +0 -24
- data/public/dispatch.rb +0 -10
- data/script/about +0 -3
- data/script/breakpointer +0 -3
- data/script/console +0 -3
- data/script/dbconsole +0 -3
- data/script/destroy +0 -3
- data/script/generate +0 -3
- data/script/performance/benchmarker +0 -3
- data/script/performance/profiler +0 -3
- data/script/plugin +0 -3
- data/script/process/inspector +0 -3
- data/script/process/reaper +0 -3
- data/script/process/spawner +0 -3
- data/script/runner +0 -3
- data/script/server +0 -3
- data/test/client/login.rb~ +0 -33
- data/test/mocks/test/user_notify.rb +0 -16
- data/vendor/plugins/foreign_key_migrations/CHANGELOG +0 -103
- data/vendor/plugins/foreign_key_migrations/README +0 -87
- data/vendor/plugins/foreign_key_migrations/about.yml +0 -5
- data/vendor/plugins/foreign_key_migrations/init.rb +0 -1
- data/vendor/plugins/foreign_key_migrations/install.rb +0 -1
- data/vendor/plugins/foreign_key_migrations/lib/foreign_key_migrations.rb +0 -3
- data/vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/base.rb +0 -22
- data/vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/connection_adapters/abstract_adapter.rb +0 -22
- data/vendor/plugins/foreign_key_migrations/lib/red_hill_consulting/foreign_key_migrations/active_record/connection_adapters/table_definition.rb +0 -28
- data/vendor/plugins/lightwindow_helper/README +0 -33
- data/vendor/plugins/lightwindow_helper/assets/images/ajax-loading.gif +0 -0
- data/vendor/plugins/lightwindow_helper/assets/images/arrow-down.gif +0 -0
- data/vendor/plugins/lightwindow_helper/assets/images/arrow-up.gif +0 -0
- data/vendor/plugins/lightwindow_helper/assets/images/black-70.png +0 -0
- data/vendor/plugins/lightwindow_helper/assets/images/black.png +0 -0
- data/vendor/plugins/lightwindow_helper/assets/images/nextlabel.gif +0 -0
- data/vendor/plugins/lightwindow_helper/assets/images/prevlabel.gif +0 -0
- data/vendor/plugins/lightwindow_helper/assets/javascripts/lightwindow.js +0 -1921
- data/vendor/plugins/lightwindow_helper/assets/stylesheets/lightwindow.css +0 -376
- data/vendor/plugins/lightwindow_helper/init.rb +0 -1
- data/vendor/plugins/lightwindow_helper/install.rb +0 -7
- data/vendor/plugins/lightwindow_helper/lib/lightwindow_helper.rb +0 -31
- data/vendor/plugins/redhillonrails_core/CHANGELOG +0 -150
- data/vendor/plugins/redhillonrails_core/README +0 -124
- data/vendor/plugins/redhillonrails_core/init.rb +0 -19
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/base.rb +0 -54
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/abstract_adapter.rb +0 -31
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb +0 -21
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/foreign_key_definition.rb +0 -26
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/index_definition.rb +0 -11
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/mysql_adapter.rb +0 -74
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/mysql_column.rb +0 -8
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/postgresql_adapter.rb +0 -99
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/schema_statements.rb +0 -16
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/sqlite3_adapter.rb +0 -9
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/table_definition.rb +0 -27
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb +0 -27
- data/vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema_dumper.rb +0 -47
- data/vendor/plugins/transactional_migrations/CHANGELOG +0 -9
- data/vendor/plugins/transactional_migrations/MIT-LICENSE +0 -20
- data/vendor/plugins/transactional_migrations/README +0 -15
- data/vendor/plugins/transactional_migrations/about.yml +0 -5
- data/vendor/plugins/transactional_migrations/init.rb +0 -1
- data/vendor/plugins/transactional_migrations/lib/red_hill_consulting/transactional_migrations/active_record/migration.rb +0 -19
data/config/preinitializer.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require "rubygems"
|
3
|
-
require "bundler"
|
4
|
-
rescue LoadError
|
5
|
-
raise "Could not load the bundler gem. Install it with `gem install bundler`."
|
6
|
-
end
|
7
|
-
|
8
|
-
if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")
|
9
|
-
raise RuntimeError, "Your bundler version is too old for Rails 2.3." +
|
10
|
-
"Run `gem install bundler` to upgrade."
|
11
|
-
end
|
12
|
-
|
13
|
-
begin
|
14
|
-
# Set up load paths for all bundled gems
|
15
|
-
ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
|
16
|
-
Bundler.setup
|
17
|
-
rescue Bundler::GemNotFound
|
18
|
-
raise RuntimeError, "Bundler couldn't find some gems." +
|
19
|
-
"Did you run `bundle install`?"
|
20
|
-
end
|
data/config/warble.rb~
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
# Warbler web application assembly configuration file
|
2
|
-
Warbler::Config.new do |config|
|
3
|
-
# Temporary directory where the application is staged
|
4
|
-
# config.staging_dir = "tmp/war"
|
5
|
-
|
6
|
-
# Application directories to be included in the webapp.
|
7
|
-
config.dirs = %w(app config lib log vendor tmp)
|
8
|
-
|
9
|
-
# Additional files/directories to include, above those in config.dirs
|
10
|
-
# config.includes = FileList["db"]
|
11
|
-
|
12
|
-
# Additional files/directories to exclude
|
13
|
-
# config.excludes = FileList["lib/tasks/*"]
|
14
|
-
|
15
|
-
# Additional Java .jar files to include. Note that if .jar files are placed
|
16
|
-
# in lib (and not otherwise excluded) then they need not be mentioned here.
|
17
|
-
# JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your
|
18
|
-
# own versions if you directly set the value
|
19
|
-
# config.java_libs += FileList["lib/java/*.jar"]
|
20
|
-
|
21
|
-
# Loose Java classes and miscellaneous files to be placed in WEB-INF/classes.
|
22
|
-
# config.java_classes = FileList["target/classes/**.*"]
|
23
|
-
|
24
|
-
# One or more pathmaps defining how the java classes should be copied into
|
25
|
-
# WEB-INF/classes. The example pathmap below accompanies the java_classes
|
26
|
-
# configuration above. See http://rake.rubyforge.org/classes/String.html#M000017
|
27
|
-
# for details of how to specify a pathmap.
|
28
|
-
# config.pathmaps.java_classes << "%{target/classes/,}p"
|
29
|
-
|
30
|
-
# Gems to be included. You need to tell Warbler which gems your application needs
|
31
|
-
# so that they can be packaged in the war file.
|
32
|
-
# The Rails gems are included by default unless the vendor/rails directory is present.
|
33
|
-
# config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"]
|
34
|
-
# config.gems << "tzinfo"
|
35
|
-
config.gems << 'activerecord-jdbc-adapter'
|
36
|
-
|
37
|
-
# Uncomment this if you don't want to package rails gem.
|
38
|
-
# config.gems -= ["rails"]
|
39
|
-
|
40
|
-
# The most recent versions of gems are used.
|
41
|
-
# You can specify versions of gems by using a hash assignment:
|
42
|
-
# config.gems["rails"] = "2.0.2"
|
43
|
-
|
44
|
-
# You can also use regexps or Gem::Dependency objects for flexibility or
|
45
|
-
# fine-grained control.
|
46
|
-
# config.gems << /^merb-/
|
47
|
-
# config.gems << Gem::Dependency.new("merb-core", "= 0.9.3")
|
48
|
-
|
49
|
-
# Include gem dependencies not mentioned specifically
|
50
|
-
config.gem_dependencies = true
|
51
|
-
|
52
|
-
# Files to be included in the root of the webapp. Note that files in public
|
53
|
-
# will have the leading 'public/' part of the path stripped during staging.
|
54
|
-
# config.public_html = FileList["public/**/*", "doc/**/*"]
|
55
|
-
config.public_html = FileList["History.txt"]
|
56
|
-
|
57
|
-
# Pathmaps for controlling how public HTML files are copied into the .war
|
58
|
-
# config.pathmaps.public_html = ["%{public/,}p"]
|
59
|
-
|
60
|
-
# Name of the war file (without the .war) -- defaults to the basename
|
61
|
-
# of RAILS_ROOT
|
62
|
-
# config.war_name = "mywar"
|
63
|
-
|
64
|
-
# Value of RAILS_ENV for the webapp -- default as shown below
|
65
|
-
# config.webxml.rails.env = ENV['RAILS_ENV'] || 'production'
|
66
|
-
|
67
|
-
# Application booter to use, one of :rack, :rails, or :merb. (Default :rails)
|
68
|
-
# config.webxml.booter = :rails
|
69
|
-
|
70
|
-
# When using the :rack booter, "Rackup" script to use.
|
71
|
-
# The script is evaluated in a Rack::Builder to load the application.
|
72
|
-
# Examples:
|
73
|
-
# config.webxml.rackup = %{require './lib/demo'; run Rack::Adapter::Camping.new(Demo)}
|
74
|
-
# config.webxml.rackup = require 'cgi' && CGI::escapeHTML(File.read("config.ru"))
|
75
|
-
|
76
|
-
# Control the pool of Rails runtimes. Leaving unspecified means
|
77
|
-
# the pool will grow as needed to service requests. It is recommended
|
78
|
-
# that you fix these values when running a production server!
|
79
|
-
# config.webxml.jruby.min.runtimes = 2
|
80
|
-
# config.webxml.jruby.max.runtimes = 4
|
81
|
-
|
82
|
-
# JNDI data source name
|
83
|
-
# config.webxml.jndi = 'jdbc/rails'
|
84
|
-
end
|
@@ -1,98 +0,0 @@
|
|
1
|
-
class InsertDatekProjects < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
change_column :backlogs, :name, :string, :limit => 64, :null => false
|
4
|
-
|
5
|
-
if RAILS_ENV =~ /datek|development/
|
6
|
-
projects = {
|
7
|
-
1 => 'Viderefakturering SCR',
|
8
|
-
2 => 'NSB Godstrafikk vedlikehold',
|
9
|
-
3 => 'NSB Persontrafikk vedlikehold',
|
10
|
-
4 => 'NSB Godstrafikk løpende prosjekter',
|
11
|
-
5 => 'NSB Persontrafikk løpende prosjekter',
|
12
|
-
12 => 'Norsk Tipping',
|
13
|
-
13 => 'Norsk Tipping initiell',
|
14
|
-
14 => 'Norsk Tipping IBM',
|
15
|
-
26 => 'Mobilnet',
|
16
|
-
27 => 'Ikke fakturerbar feilretting for kunde',
|
17
|
-
28 => 'Ikke fakturerbar support for kunde',
|
18
|
-
29 => 'Ikke fakturerbar videreutvikling CPAS',
|
19
|
-
30 => 'Ikke fakturerbar videreutvikling SISS',
|
20
|
-
31 => 'Ikke fakturerbar videreutvikling diverse',
|
21
|
-
34 => 'Interne oppgaver spesifisert',
|
22
|
-
35 => 'Fakturerbar support mindre kunder',
|
23
|
-
43 => 'Support Modem',
|
24
|
-
46 => 'CPAS 5,0 SMS',
|
25
|
-
49 => 'CPAS 5,0 MMS',
|
26
|
-
52 => 'Lysstyring',
|
27
|
-
54 => 'GoPocket',
|
28
|
-
55 => 'Mobilnet WAP Plattform',
|
29
|
-
56 => 'De norske Bokklubbene',
|
30
|
-
57 => 'NSB SIT MK2',
|
31
|
-
58 => 'Cargonet Oppgr 2003',
|
32
|
-
60 => 'Porteringsprosjektet',
|
33
|
-
61 => 'M2M server',
|
34
|
-
62 => 'Mesta',
|
35
|
-
63 => 'GSM-R Pilot',
|
36
|
-
64 => 'CTU',
|
37
|
-
66 => 'Netcom utvidede takstklasser',
|
38
|
-
67 => 'Gateway',
|
39
|
-
68 => 'Diverse til lager',
|
40
|
-
69 => 'Trådløs bedrift',
|
41
|
-
70 => 'Abonnementshåndtering',
|
42
|
-
71 => 'Utvikling applikasjoner',
|
43
|
-
72 => 'NSB Materiell',
|
44
|
-
73 => 'JBV kameraovervåkning',
|
45
|
-
74 => 'Conax, Globacom',
|
46
|
-
75 => 'Pilot for enhetstracking',
|
47
|
-
76 => 'CPAS 5.0 WAP',
|
48
|
-
78 => 'Support WAT',
|
49
|
-
79 => 'M2M Fleet',
|
50
|
-
80 => 'Transportsentralen Lillestrøm',
|
51
|
-
81 => 'GFS',
|
52
|
-
}
|
53
|
-
Backlog.reset_column_information
|
54
|
-
|
55
|
-
projects.each do |invoice_code, name|
|
56
|
-
if backlog = Backlog.find_by_invoice_code(invoice_code.to_s)
|
57
|
-
if backlog.invoice_code.nil? || backlog.invoice_code.length >= 31
|
58
|
-
puts "Set Mamut project code to #{invoice_code} for '#{name}'"
|
59
|
-
backlog.invoice_code = invoice_code
|
60
|
-
backlog.save!
|
61
|
-
end
|
62
|
-
else
|
63
|
-
puts "Adding Mamut project #{invoice_code} #{name}"
|
64
|
-
Backlog.new(:invoice_code => invoice_code, :name => name).save!
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
users = {
|
69
|
-
'uwe' => 'Uwe Kubosch',
|
70
|
-
'lars' => 'Lars Ingjer larsi@datek.no'
|
71
|
-
}
|
72
|
-
users.each do |login, full_name|
|
73
|
-
unless User.find_by_login(login)
|
74
|
-
puts "Added user #{login} #{full_name}"
|
75
|
-
first_name = full_name.split[0]
|
76
|
-
last_name = full_name.split[1]
|
77
|
-
email = full_name.split[2] || (login + '@datek.no')
|
78
|
-
execute "INSERT INTO users (login, salted_password, email, first_name, last_name, salt, verified, role, security_token, token_expiry, deleted) VALUES ('#{login}', '8db087dd79f0f904be5027f27becd517a9df6055', '#{email}', '#{first_name}', '#{last_name}', '48aaecbc8568ffb9913177d5369b54c5eb603237', true, NULL, '32b3ab565d89cf066b0c286fd203bb65824b26f9', '2007-06-13 13:41:54', false)"
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
def self.down
|
85
|
-
execute "UPDATE backlogs SET name = SUBSTR(name, 0, 33)"
|
86
|
-
change_column :backlogs, :name, :string, :limit => 32, :null => false
|
87
|
-
end
|
88
|
-
|
89
|
-
class Backlog < ActiveRecord::Base
|
90
|
-
end
|
91
|
-
|
92
|
-
class Period < ActiveRecord::Base
|
93
|
-
end
|
94
|
-
|
95
|
-
class User < ActiveRecord::Base
|
96
|
-
end
|
97
|
-
|
98
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
class ActiveRecord::Migration
|
2
|
-
def self.change_column_null(table_name, column_name, column_type, null, default = nil) #:nodoc:
|
3
|
-
unless null || default.nil?
|
4
|
-
execute("UPDATE #{table_name} SET #{column_name}=#{quote(default)} WHERE #{column_name} IS NULL")
|
5
|
-
end
|
6
|
-
if ActiveRecord::Base.connection.adapter_name.downcase == "postgresql"
|
7
|
-
execute("ALTER TABLE #{table_name} ALTER #{column_name} #{null ? 'DROP' : 'SET'} NOT NULL")
|
8
|
-
elsif ActiveRecord::Base.connection.adapter_name.downcase == "mysql"
|
9
|
-
execute("ALTER TABLE #{table_name} MODIFY COLUMN #{column_name} #{column_type} #{null ? 'NULL' : 'NOT NULL'}")
|
10
|
-
else
|
11
|
-
raise "'change_column_null' is not supported for connection adapter #{ActiveRecord::Base.connection.adapter_name}."
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|
data/no_test.rb~
DELETED
data/public/dispatch.cgi
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby
|
2
|
-
|
3
|
-
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
|
4
|
-
|
5
|
-
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
|
6
|
-
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
|
7
|
-
require "dispatcher"
|
8
|
-
|
9
|
-
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
|
10
|
-
Dispatcher.dispatch
|
data/public/dispatch.fcgi
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby
|
2
|
-
#
|
3
|
-
# You may specify the path to the FastCGI crash log (a log of unhandled
|
4
|
-
# exceptions which forced the FastCGI instance to exit, great for debugging)
|
5
|
-
# and the number of requests to process before running garbage collection.
|
6
|
-
#
|
7
|
-
# By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log
|
8
|
-
# and the GC period is nil (turned off). A reasonable number of requests
|
9
|
-
# could range from 10-100 depending on the memory footprint of your app.
|
10
|
-
#
|
11
|
-
# Example:
|
12
|
-
# # Default log path, normal GC behavior.
|
13
|
-
# RailsFCGIHandler.process!
|
14
|
-
#
|
15
|
-
# # Default log path, 50 requests between GC.
|
16
|
-
# RailsFCGIHandler.process! nil, 50
|
17
|
-
#
|
18
|
-
# # Custom log path, normal GC behavior.
|
19
|
-
# RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
|
20
|
-
#
|
21
|
-
require File.dirname(__FILE__) + "/../config/environment"
|
22
|
-
require 'fcgi_handler'
|
23
|
-
|
24
|
-
RailsFCGIHandler.process!
|
data/public/dispatch.rb
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby
|
2
|
-
|
3
|
-
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
|
4
|
-
|
5
|
-
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
|
6
|
-
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
|
7
|
-
require "dispatcher"
|
8
|
-
|
9
|
-
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
|
10
|
-
Dispatcher.dispatch
|
data/script/about
DELETED
data/script/breakpointer
DELETED
data/script/console
DELETED
data/script/dbconsole
DELETED
data/script/destroy
DELETED
data/script/generate
DELETED
data/script/performance/profiler
DELETED
data/script/plugin
DELETED
data/script/process/inspector
DELETED
data/script/process/reaper
DELETED
data/script/process/spawner
DELETED
data/script/runner
DELETED
data/script/server
DELETED
data/test/client/login.rb~
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'setup.rb'
|
2
|
-
|
3
|
-
include FireWatir
|
4
|
-
|
5
|
-
def login
|
6
|
-
$ff.goto("#{APP}/acegilogin.jsp")
|
7
|
-
|
8
|
-
form = $ff.form('loginForm')
|
9
|
-
username = form.text_field(:name, 'j_username')
|
10
|
-
username.value = 'test'
|
11
|
-
|
12
|
-
password = form.text_field(:name, 'j_password')
|
13
|
-
password.value = 'test'
|
14
|
-
|
15
|
-
form.submit
|
16
|
-
end
|
17
|
-
|
18
|
-
def logout
|
19
|
-
$ff.goto("#{APP}/index.jsp?logoff=true")
|
20
|
-
end
|
21
|
-
|
22
|
-
def choose_customer_application(appname="svdrammen")
|
23
|
-
$ff.select_list(:name, "jumpmenu").option(:text, /#{appname}/).select
|
24
|
-
sleep 2
|
25
|
-
end
|
26
|
-
|
27
|
-
def choose_language(language="English")
|
28
|
-
$ff.link(:text, "#{language}").click
|
29
|
-
end
|
30
|
-
|
31
|
-
login()
|
32
|
-
choose_language()
|
33
|
-
choose_customer_application("svdrammen")
|
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'models/user_notify.rb'
|
2
|
-
|
3
|
-
ActionMailer::Base.class_eval {
|
4
|
-
@@inject_one_error = false
|
5
|
-
cattr_accessor :inject_one_error
|
6
|
-
|
7
|
-
private
|
8
|
-
def perform_delivery_test(mail)
|
9
|
-
if inject_one_error
|
10
|
-
ActionMailer::Base::inject_one_error = false
|
11
|
-
raise "Failed to send email" if raise_delivery_errors
|
12
|
-
else
|
13
|
-
deliveries << mail
|
14
|
-
end
|
15
|
-
end
|
16
|
-
}
|
@@ -1,103 +0,0 @@
|
|
1
|
-
[REVISION 20071128]
|
2
|
-
|
3
|
-
[FIXED] Workaround to ensure plugin is only ever loaded once.
|
4
|
-
|
5
|
-
[REVISION 20070905]
|
6
|
-
|
7
|
-
[FIXED] "some_column_name" referenced in foreign key constraint does not exist.
|
8
|
-
|
9
|
-
[REVISION 20070904]
|
10
|
-
|
11
|
-
[NEW] Support :references keyword when calling primary_key().
|
12
|
-
|
13
|
-
[NEW] [#11995] the parameter :references needs the second argument referencing the field name.
|
14
|
-
|
15
|
-
[REVISION 20070707]
|
16
|
-
|
17
|
-
[NEW] Support acts_as_tree convention: if a column is named parent_id it will be treated as a circular reference to the table in which it is defined.
|
18
|
-
|
19
|
-
[REVISION 20070703]
|
20
|
-
|
21
|
-
[FIXED] Foreign-keys not created when using add_column.
|
22
|
-
|
23
|
-
[REVISION 20070628]
|
24
|
-
|
25
|
-
[FIXED] Stack level too deep in 'add_column_without_foreign_key_migrations' (Ronen Barzel).
|
26
|
-
|
27
|
-
[REVISION 20070503]
|
28
|
-
|
29
|
-
[NEW] Support for SQL92 [NOT] DEFERRABLE on foreign keys.
|
30
|
-
|
31
|
-
[REVISION 20061202]
|
32
|
-
|
33
|
-
[CHANGED] Use Rails 1.2 alias_method_chain.
|
34
|
-
|
35
|
-
[CHANGED] Separate modules into individual files.
|
36
|
-
|
37
|
-
[REVISION 20061013]
|
38
|
-
|
39
|
-
[NEW] install.rb informs user of missing dependencies.
|
40
|
-
|
41
|
-
[REVISION 20060909]
|
42
|
-
|
43
|
-
[CHANGED] Replaced dependence on defunct Foreign Key Support and Schema Defining plugins with a single dependece on RedHill on Rails Core.
|
44
|
-
|
45
|
-
[REVISION 20060831]
|
46
|
-
|
47
|
-
[CHANGED] Separated out generic foreign-key functionality into new foreign key support plugin.
|
48
|
-
|
49
|
-
[REVISION 20060629]
|
50
|
-
|
51
|
-
[NEW] Added foreign_key method to table to allow t.foreign_key(columns, references_table_name, references_column_names, options).
|
52
|
-
|
53
|
-
[NEW] Support foreign keys in add_column as we do for initial table columns.
|
54
|
-
|
55
|
-
[NEW] Support :on_update and :on_delete as options--with values of :set_null, :cascade, or :restrict--for all foreign key creation mechanisms.
|
56
|
-
|
57
|
-
[REVISION 20060627]
|
58
|
-
|
59
|
-
[CHANGED] Reverted to overloaded column method with optional :references as the preferred mechanism with belongs_to a "nicety". This is really as a result of using it in a large-scale production application where belongs_to just didn't feel right in many cases and was semantically ambiguous.
|
60
|
-
|
61
|
-
[REVISION 20060824]
|
62
|
-
|
63
|
-
[CHANGED] Replaced method and column option :references with :belongs_to in keeping with the rails model keywords. The references variations are still available but have been deprecated and will be removed.
|
64
|
-
|
65
|
-
[NEW] Added options :dependent => :nullify to SET NULL or :dependent => :delete_all | :destroy to CASCADE DELETE.
|
66
|
-
|
67
|
-
[REVISION 20060812]
|
68
|
-
|
69
|
-
[NEW] Added new table method references(table, options) which is essentially an alias for column(:table_id, :integer, options).
|
70
|
-
|
71
|
-
[REVISION 20060803]
|
72
|
-
|
73
|
-
[FIXED] The method proper_pluralized_table_name tries to call pluralize_table_name where it should call pluralized_table_name.
|
74
|
-
|
75
|
-
[REVISION 20060623]
|
76
|
-
|
77
|
-
[FIXED] Another try at a hack-around for a "feature" of pluralize that when called to pluralize a word that is already in the plural, acts as singularize.
|
78
|
-
|
79
|
-
[REVISION 20060616]
|
80
|
-
|
81
|
-
[FIXED] Hack-around for a "feature" of pluralize that when called to pluralize a word that is already in the plural, acts as singularize. Ie. "countries".pluralize becomes "country"!
|
82
|
-
|
83
|
-
[REVISION 200606004]
|
84
|
-
|
85
|
-
[CHANGED] This plugin now depends on Schema Defining!
|
86
|
-
|
87
|
-
[REVISION 20060602]
|
88
|
-
|
89
|
-
[CHANGED] Simplified static method overriding thanks to Ryan Tomayko.
|
90
|
-
|
91
|
-
[REVISION 20060525]
|
92
|
-
|
93
|
-
[CHANGED] Disabled foreign-key generation when executing a schema dump. This is a temporary measure until I get around to batching up the foreign keys at the end of the script.
|
94
|
-
|
95
|
-
[REVISION 20060523]
|
96
|
-
|
97
|
-
[NEW] Support :references => nil to prevent unwanted foreign-keys.
|
98
|
-
|
99
|
-
[FIXED] Pluralization.
|
100
|
-
|
101
|
-
[REVISION 20060522]
|
102
|
-
|
103
|
-
[FIXED] Infinite recursion caused by bug in 1.8.4 method_alias on windows.
|