Permalink
Browse files

Added license headers to code

  • Loading branch information...
1 parent df86ae9 commit 7757044de3ec04ddf430d4339e54c926abeb3350 @alg alg committed Sep 20, 2010
Showing with 1,281 additions and 40 deletions.
  1. +20 −0 LICENSE.txt
  2. +0 −4 TODO.txt
  3. +20 −0 app/controllers/application_controller.rb
  4. +20 −0 app/controllers/help_controller.rb
  5. +20 −0 app/controllers/pages_controller.rb
  6. +20 −0 app/helpers/application_helper.rb
  7. +20 −0 app/helpers/help_helper.rb
  8. +0 −2 app/helpers/pages_helper.rb
  9. +20 −0 app/models/ballot.rb
  10. +20 −0 app/models/ballot_style.rb
  11. +20 −0 app/models/flow_completion.rb
  12. +20 −0 app/models/precinct.rb
  13. +20 −0 app/models/precinct_split.rb
  14. +20 −0 app/models/registration.rb
  15. +20 −0 config/config.yml.sample
  16. +20 −0 config/database.yml.sample
  17. +20 −0 config/deploy.rb
  18. +20 −0 config/deploy/production.rb
  19. +20 −0 config/deploy/staging.rb
  20. +20 −0 config/environment.rb
  21. +20 −0 config/environments/development.rb
  22. +20 −0 config/environments/production.rb
  23. +20 −0 config/environments/staging.rb
  24. +20 −0 config/environments/test.rb
  25. +20 −0 config/initializers/backtrace_silencers.rb
  26. +20 −0 config/initializers/cookie_verification_secret.rb
  27. +20 −0 config/initializers/hoptoad.rb
  28. +20 −0 config/initializers/inflections.rb
  29. +20 −0 config/initializers/load_config.rb
  30. +20 −0 config/initializers/mime_types.rb
  31. +20 −0 config/initializers/new_rails_defaults.rb
  32. +20 −0 config/initializers/paperclip.rb
  33. +20 −0 config/initializers/session_store.rb
  34. +20 −0 config/initializers/simple_form.rb
  35. +20 −0 config/initializers/time_formats.rb
  36. +19 −2 config/locales/en.yml
  37. +20 −0 config/locales/simple_form.en.yml
  38. +20 −0 config/preinitializer.rb
  39. +20 −0 config/routes.rb
  40. +20 −0 db/migrate/20100823131318_create_registrations.rb
  41. +20 −0 db/migrate/20100826071359_add_address_fields_to_registrations.rb
  42. +20 −0 db/migrate/20100830121916_create_precincts.rb
  43. +20 −0 db/migrate/20100830122003_create_precinct_splits.rb
  44. +20 −0 db/migrate/20100830122801_create_ballot_styles.rb
  45. +20 −0 db/migrate/20100830131721_create_ballots.rb
  46. +20 −0 db/migrate/20100901115740_add_attestation_fields_to_registrations.rb
  47. +20 −0 db/migrate/20100915105215_remove_attestation_fields_from_registrations.rb
  48. +20 −0 db/migrate/20100915110521_create_flow_completions.rb
  49. +20 −0 db/migrate/20100915112918_add_checked_in_at_to_registrations.rb
  50. +20 −0 db/migrate/20100915115506_add_last_completed_at_to_registrations.rb
  51. +20 −0 db/seeds.rb
  52. +20 −0 db/seeds.rb.old
  53. +20 −0 lib/data_import.rb
  54. +20 −0 lib/paperclip_processors/encrypt.rb
  55. +20 −0 lib/seed_generator.rb
  56. +20 −0 lib/stats.rb
  57. +20 −0 lib/tasks/vbm.rake
  58. +20 −0 lib/voting_state.rb
  59. +22 −0 public/javascripts/functions.js
  60. +20 −0 spec/controllers/help_controller_spec.rb
  61. +20 −0 spec/controllers/pages_controller_spec.rb
  62. +20 −0 spec/factories.rb
  63. +0 −11 spec/helpers/help_helper_spec.rb
  64. +0 −11 spec/helpers/pages_helper_spec.rb
  65. +20 −0 spec/models/ballot_spec.rb
  66. +20 −10 spec/models/flow_completion_spec.rb
  67. +20 −0 spec/models/registration_spec.rb
  68. +20 −0 spec/spec_helper.rb
View
@@ -0,0 +1,20 @@
+Version: OSDV Public License 1.2
+"The contents of this file are subject to the OSDV Public License
+Version 1.2 (the "License"); you may not use this file except in
+compliance with the License. You may obtain a copy of the License at
+http://www.osdv.org/license/
+Software distributed under the License is distributed on an "AS IS"
+basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+See the License for the specific language governing rights and limitations
+under the License.
+
+The Original Code is:
+ TTV UOCAVA Ballot Portal.
+The Initial Developer of the Original Code is:
+ Open Source Digital Voting Foundation.
+Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+All Rights Reserved.
+
+Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+Thomas Gaskin, Sean Durham, John Sebes.
+
View
@@ -1,4 +0,0 @@
-= TODO
-
- * Filled ballots are uploaded to <rails_root>/ballots. Link them to a shared folder on deployment
- * Link public/assets to a shared folder on deployment
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
class HelpController < ApplicationController
def show
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
class PagesController < ApplicationController
before_filter :block_wrong_time, :except => [ :front, :about, :contact ]
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
View
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
module HelpHelper
def help_section(n, options = {})
@@ -1,2 +0,0 @@
-module PagesHelper
-end
View
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
class Ballot < ActiveRecord::Base
ERROR_NAME = "Please upload the ballot file with the same name that you downloaded"
View
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
class BallotStyle < ActiveRecord::Base
belongs_to :precinct_split
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
class FlowCompletion < ActiveRecord::Base
belongs_to :registration
View
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
class Precinct < ActiveRecord::Base
has_many :splits, :class_name => "PrecinctSplit", :dependent => :destroy
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
class PrecinctSplit < ActiveRecord::Base
belongs_to :precinct
View
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
require 'digest/sha1'
class Registration < ActiveRecord::Base
View
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
app_name: DC Digital VBM
from_email: support@voter.com
domain: voter.com
View
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
development:
adapter: mysql
encoding: utf8
View
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
set :stages, %w(staging production)
set :default_stage, "staging"
require 'capistrano/ext/multistage'
@@ -1,3 +1,23 @@
+# Version: OSDV Public License 1.2
+# "The contents of this file are subject to the OSDV Public License
+# Version 1.2 (the "License"); you may not use this file except in
+# compliance with the License. You may obtain a copy of the License at
+# http://www.osdv.org/license/
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
+# See the License for the specific language governing rights and limitations
+# under the License.
+#
+# The Original Code is:
+# TTV UOCAVA Ballot Portal.
+# The Initial Developer of the Original Code is:
+# Open Source Digital Voting Foundation.
+# Portions created by Open Source Digital Voting Foundation are Copyright (C) 2010.
+# All Rights Reserved.
+#
+# Contributors: Paul Stenbjorn, Aleksey Gureiev, Robin Bahr,
+# Thomas Gaskin, Sean Durham, John Sebes.
+
set :domain, "10.1.x.x"
set :rails_env, "production"
set :user, "boeuser"
Oops, something went wrong.

0 comments on commit 7757044

Please sign in to comment.