Permalink
Browse files

Initial commit. Go, democracy!

  • Loading branch information...
0 parents commit 325cfbddbf7d47b913b2eefe22d2ff27dd9209e0 @paulsmith paulsmith committed Aug 31, 2012
Showing with 7,988 additions and 0 deletions.
  1. +18 −0 .gitignore
  2. +1 −0 .rbenv-version
  3. +1 −0 .rspec
  4. +43 −0 Gemfile
  5. +240 −0 Gemfile.lock
  6. +12 −0 LICENSE.md
  7. +127 −0 README.md
  8. +8 −0 Rakefile
  9. BIN app/assets/images/rails.png
  10. BIN app/assets/images/sign-in-with-twitter-d.png
  11. +16 −0 app/assets/javascripts/application.js
  12. +4 −0 app/assets/javascripts/bootstrap.js.coffee
  13. +3 −0 app/assets/javascripts/guidelines.js.coffee
  14. +3 −0 app/assets/javascripts/home.js.coffee
  15. +25 −0 app/assets/javascripts/register.js.coffee
  16. +3 −0 app/assets/stylesheets/application.css
  17. +476 −0 app/assets/stylesheets/bootstrap_and_overrides.css.less
  18. +3 −0 app/assets/stylesheets/guidelines.css.less
  19. +46 −0 app/assets/stylesheets/register.css.less
  20. +10 −0 app/assets/stylesheets/variables.less
  21. +10 −0 app/controllers/application_controller.rb
  22. +15 −0 app/controllers/guidelines_controller.rb
  23. +7 −0 app/controllers/home_controller.rb
  24. +67 −0 app/controllers/register_controller.rb
  25. +21 −0 app/controllers/sessions_controller.rb
  26. +3 −0 app/helpers/application_helper.rb
  27. +2 −0 app/helpers/guidelines_helper.rb
  28. +2 −0 app/helpers/home_helper.rb
  29. +20 −0 app/helpers/register_helper.rb
  30. 0 app/mailers/.gitkeep
  31. 0 app/models/.gitkeep
  32. +11 −0 app/models/admin.rb
  33. +3 −0 app/models/ethnicity.rb
  34. +7 −0 app/models/guidelines.rb
  35. +3 −0 app/models/instructions.rb
  36. +4 −0 app/models/political_party.rb
  37. +43 −0 app/models/register.rb
  38. +83 −0 app/pdfs/registration_pdf.rb
  39. +27 −0 app/views/guidelines/index.html.erb
  40. +83 −0 app/views/guidelines/show.html.erb
  41. +37 −0 app/views/home/index.html.erb
  42. +6 −0 app/views/layouts/_flash.html.erb
  43. +55 −0 app/views/layouts/application.html.erb
  44. +8 −0 app/views/pages/terms.html.erb
  45. +110 −0 app/views/register/_form.html.erb
  46. +22 −0 app/views/register/complete.html.erb
  47. +13 −0 app/views/register/index.html.erb
  48. +36 −0 app/views/register/new.html.erb
  49. +6 −0 config.ru
  50. +76 −0 config/application.rb
  51. +6 −0 config/boot.rb
  52. +25 −0 config/database.yml
  53. +5 −0 config/environment.rb
  54. +41 −0 config/environments/development.rb
  55. +68 −0 config/environments/production.rb
  56. +37 −0 config/environments/test.rb
  57. +7 −0 config/initializers/backtrace_silencers.rb
  58. +216 −0 config/initializers/devise.rb
  59. +15 −0 config/initializers/inflections.rb
  60. +9 −0 config/initializers/mail.rb
  61. +5 −0 config/initializers/mime_types.rb
  62. +4 −0 config/initializers/omniauth.rb
  63. +125 −0 config/initializers/rails_admin.rb
  64. +7 −0 config/initializers/secret_token.rb
  65. +8 −0 config/initializers/session_store.rb
  66. +178 −0 config/initializers/simple_form.rb
  67. +14 −0 config/initializers/wrap_parameters.rb
  68. +57 −0 config/locales/devise.en.yml
  69. +36 −0 config/locales/en.yml
  70. +26 −0 config/locales/simple_form.en.yml
  71. +20 −0 config/routes.rb
  72. +6 −0 data/README.md
  73. +439 −0 data/instructions.yml
  74. +53 −0 data/state_deadlines.en.json
  75. +3,726 −0 data/state_info_en.yml
  76. +18 −0 db/migrate/20120802170822_create_guidelines.rb
  77. +8 −0 db/migrate/20120804172146_add_mailing_address_to_guidelines.rb
  78. +6 −0 db/migrate/20120806173035_add_online_name_to_guidelines.rb
  79. +9 −0 db/migrate/20120806222856_create_political_parties.rb
  80. +46 −0 db/migrate/20120806234829_devise_create_admins.rb
  81. +18 −0 db/migrate/20120806234830_create_rails_admin_histories_table.rb
  82. +6 −0 db/migrate/20120807173451_add_online_requirements_to_guidelines.rb
  83. +9 −0 db/migrate/20120807185224_create_ethnicities.rb
  84. +6 −0 db/migrate/20120807193101_add_supported_to_guidelines.rb
  85. +13 −0 db/migrate/20120807234854_create_instructions.rb
  86. +94 −0 db/schema.rb
  87. +86 −0 db/seeds.rb
  88. +26 −0 doc/Modifying-Page-Content.md
  89. +44 −0 doc/Providers.md
  90. +7 −0 doc/README.md
  91. +9 −0 doc/Voter-PDF-Form.md
  92. 0 lib/assets/.gitkeep
  93. 0 lib/tasks/.gitkeep
  94. +67 −0 lib/tasks/load_state_info.rake
  95. +13 −0 lib/templates/erb/scaffold/_form.html.erb
  96. 0 log/.gitkeep
  97. +41 −0 public/404.html
  98. +41 −0 public/422.html
  99. +39 −0 public/500.html
  100. 0 public/favicon.ico
  101. BIN public/nvra-en.pdf
  102. +5 −0 public/robots.txt
  103. +6 −0 script/rails
  104. +28 −0 spec/controllers/guidelines_controller_spec.rb
  105. +18 −0 spec/controllers/home_controller_spec.rb
  106. +128 −0 spec/controllers/register_controller_spec.rb
  107. +39 −0 spec/controllers/sessions_controller_spec.rb
  108. +7 −0 spec/factories/ethnicities.rb
  109. +9 −0 spec/factories/guidelines.rb
  110. +11 −0 spec/factories/instructions.rb
  111. +14 −0 spec/helpers/guidelines_helper_spec.rb
  112. +14 −0 spec/helpers/home_helper_spec.rb
  113. +28 −0 spec/helpers/register_helper_spec.rb
  114. +4 −0 spec/models/admin_spec.rb
  115. +4 −0 spec/models/ethnicity_spec.rb
  116. +4 −0 spec/models/guidelines_spec.rb
  117. +4 −0 spec/models/instructions_spec.rb
  118. +4 −0 spec/models/political_party_spec.rb
  119. +36 −0 spec/models/register_spec.rb
  120. +55 −0 spec/spec_helper.rb
  121. +4 −0 spec/views/guidelines/index.html.erb_spec.rb
  122. +4 −0 spec/views/home/index.html.erb_spec.rb
  123. +4 −0 spec/views/register/index.html.erb_spec.rb
  124. 0 vendor/assets/javascripts/.gitkeep
  125. 0 vendor/assets/stylesheets/.gitkeep
  126. 0 vendor/plugins/.gitkeep
@@ -0,0 +1,18 @@
+# See http://help.github.com/ignore-files/ for more about ignoring files.
+#
+# If you find yourself ignoring temporary files generated by your text editor
+# or operating system, you probably want to add a global ignore instead:
+# git config --global core.excludesfile ~/.gitignore_global
+
+# Ignore bundler config
+/.bundle
+
+# Ignore the default SQLite database.
+/db/*.sqlite3
+
+# Ignore all logfiles and tempfiles.
+/log/*.log
+/tmp
+
+#Ignore the coverage directory
+coverage
@@ -0,0 +1 @@
+1.9.3-p194
@@ -0,0 +1 @@
+--color
@@ -0,0 +1,43 @@
+source 'https://rubygems.org'
+ruby '1.9.3'
+
+gem 'rails', '3.2.8'
+
+gem 'active_attr'
+gem 'devise'
+gem 'encrypted-cookie-store'
+gem 'high_voltage'
+gem 'jquery-rails'
+gem 'omniauth', '~> 1.1.0'
+gem 'omniauth-twitter'
+gem 'prawn'
+gem 'prawn-fillform'
+gem 'rails_admin', '~> 0.0.5'
+gem 'simple_form'
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'less-rails', '~> 2.2.3'
+ gem 'coffee-rails', '~> 3.2.1'
+ gem 'uglifier', '>= 1.0.3'
+ gem 'therubyracer'
+ gem 'twitter-bootstrap-rails'
+end
+
+group :test, :development do
+ gem 'rspec-rails', '~> 2.0'
+ gem 'sqlite3'
+ gem 'faker'
+ gem 'factory_girl_rails', '~> 4.0'
+end
+
+group :test do
+ gem 'simplecov', :require => false
+end
+
+group :production do
+ gem 'pg', '0.14.0'
+ gem 'puma'
+end
+
@@ -0,0 +1,240 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ Ascii85 (1.0.1)
+ actionmailer (3.2.8)
+ actionpack (= 3.2.8)
+ mail (~> 2.4.4)
+ actionpack (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.4)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.3)
+ active_attr (0.6.0)
+ activemodel (>= 3.0.2, < 4.1)
+ activesupport (>= 3.0.2, < 4.1)
+ activemodel (3.2.8)
+ activesupport (= 3.2.8)
+ builder (~> 3.0.0)
+ activerecord (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ activesupport (3.2.8)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ arel (3.0.2)
+ bbenezech-nested_form (0.0.6)
+ bcrypt-ruby (3.0.1)
+ bootstrap-sass (2.0.4.0)
+ builder (3.0.0)
+ coffee-rails (3.2.2)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.2.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.3.3)
+ commonjs (0.2.6)
+ devise (2.1.0)
+ bcrypt-ruby (~> 3.0)
+ orm_adapter (~> 0.0.7)
+ railties (~> 3.1)
+ warden (~> 1.1.1)
+ diff-lcs (1.1.3)
+ encrypted-cookie-store (1.0)
+ encrypted-cookies (~> 1.0)
+ rails (~> 3.0)
+ encrypted-cookies (1.0)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ erubis (2.7.0)
+ execjs (1.4.0)
+ multi_json (~> 1.0)
+ factory_girl (4.0.0)
+ activesupport (>= 3.0.0)
+ factory_girl_rails (4.0.0)
+ factory_girl (~> 4.0.0)
+ railties (>= 3.0.0)
+ faker (1.0.1)
+ i18n (~> 0.4)
+ haml (3.1.6)
+ hashie (1.2.0)
+ high_voltage (1.1.1)
+ hike (1.2.1)
+ hpricot (0.8.6)
+ i18n (0.6.0)
+ journey (1.0.4)
+ jquery-rails (2.0.2)
+ railties (>= 3.2.0, < 5.0)
+ thor (~> 0.14)
+ jquery-ui-rails (1.1.0)
+ jquery-rails
+ railties (>= 3.1.0)
+ json (1.7.4)
+ kaminari (0.13.0)
+ actionpack (>= 3.0.0)
+ activesupport (>= 3.0.0)
+ railties (>= 3.0.0)
+ less (2.2.1)
+ commonjs (~> 0.2.6)
+ less-rails (2.2.3)
+ actionpack (>= 3.1)
+ less (~> 2.2.0)
+ libv8 (3.3.10.4)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
+ multi_json (1.3.6)
+ oauth (0.4.6)
+ omniauth (1.1.0)
+ hashie (~> 1.2)
+ rack
+ omniauth-oauth (1.0.0)
+ oauth
+ omniauth (~> 1.0)
+ omniauth-twitter (0.0.8)
+ omniauth-oauth (~> 1.0)
+ orm_adapter (0.0.7)
+ pdf-reader (1.1.1)
+ Ascii85 (~> 1.0.0)
+ ruby-rc4
+ pg (0.14.0)
+ polyglot (0.3.3)
+ prawn (0.12.0)
+ pdf-reader (>= 0.9.0)
+ ttfunk (~> 1.0.2)
+ prawn-fillform (0.0.12)
+ puma (1.5.0)
+ rack (~> 1.2)
+ rack (1.4.1)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-pjax (0.5.9)
+ hpricot (~> 0.8.6)
+ rack (~> 1.3)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.8)
+ actionmailer (= 3.2.8)
+ actionpack (= 3.2.8)
+ activerecord (= 3.2.8)
+ activeresource (= 3.2.8)
+ activesupport (= 3.2.8)
+ bundler (~> 1.0)
+ railties (= 3.2.8)
+ rails_admin (0.0.5)
+ bbenezech-nested_form (~> 0.0.6)
+ bootstrap-sass (~> 2.0, >= 2.0.3)
+ builder (~> 3.0)
+ coffee-rails (~> 3.1)
+ haml (~> 3.1)
+ jquery-rails (>= 1.0.17)
+ jquery-ui-rails (>= 0.5, < 2)
+ kaminari (~> 0.12)
+ rack-pjax (~> 0.5)
+ rails (~> 3.1)
+ remotipart (~> 1.0)
+ sass-rails (~> 3.1)
+ railties (3.2.8)
+ actionpack (= 3.2.8)
+ activesupport (= 3.2.8)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (>= 0.14.6, < 2.0)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ remotipart (1.0.2)
+ rspec (2.11.0)
+ rspec-core (~> 2.11.0)
+ rspec-expectations (~> 2.11.0)
+ rspec-mocks (~> 2.11.0)
+ rspec-core (2.11.1)
+ rspec-expectations (2.11.1)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.11.1)
+ rspec-rails (2.11.0)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec (~> 2.11.0)
+ ruby-rc4 (0.1.5)
+ sass (3.1.20)
+ sass-rails (3.2.5)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ simple_form (2.0.2)
+ actionpack (~> 3.0)
+ activemodel (~> 3.0)
+ simplecov (0.6.4)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.5.3)
+ simplecov-html (0.5.3)
+ sprockets (2.1.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.6)
+ therubyracer (0.10.1)
+ libv8 (~> 3.3.10)
+ thor (0.15.4)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ ttfunk (1.0.3)
+ twitter-bootstrap-rails (2.1.2)
+ actionpack (>= 3.1)
+ less-rails (~> 2.2.3)
+ railties (>= 3.1)
+ tzinfo (0.3.33)
+ uglifier (1.2.7)
+ execjs (>= 0.3.0)
+ multi_json (~> 1.3)
+ warden (1.1.1)
+ rack (>= 1.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ active_attr
+ coffee-rails (~> 3.2.1)
+ devise
+ encrypted-cookie-store
+ factory_girl_rails (~> 4.0)
+ faker
+ high_voltage
+ jquery-rails
+ less-rails (~> 2.2.3)
+ omniauth (~> 1.1.0)
+ omniauth-twitter
+ pg (= 0.14.0)
+ prawn
+ prawn-fillform
+ puma
+ rails (= 3.2.8)
+ rails_admin (~> 0.0.5)
+ rspec-rails (~> 2.0)
+ simple_form
+ simplecov
+ sqlite3
+ therubyracer
+ twitter-bootstrap-rails
+ uglifier (>= 1.0.3)
@@ -0,0 +1,12 @@
+Copyright © 2012 DNC Services Corporation
+http://www.democrats.org/
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+This permission does not include: (a) any use of the Software other than for its intended purpose; or (b) any use of the Software in any manner that violates applicable law. Any use of the Software other than as specifically authorized herein is strictly prohibited and will terminate the license granted herein.
+
+All information, dates and content included in the Software are subject to change given the subject matter of the Software. It is the responsibility of the user of the Software hereunder to monitor changes in applicable law. Future versions of the Software may include updated content to reflect any changes in applicable law.
Oops, something went wrong.

0 comments on commit 325cfbd

Please sign in to comment.