From 1efe20fe422154dbfb6ed049fbb3572350cfe7f6 Mon Sep 17 00:00:00 2001 From: Godwin Date: Fri, 18 Jul 2014 20:35:15 -0600 Subject: [PATCH] Fixed merge conflicts --- .openshift/action_hooks/start | 7 - .openshift/action_hooks/stop | 4 - Gemfile | 2 +- Gemfile.lock | 398 ++++++++++++++++++ app/assets/images/Thumbs.db | Bin 239616 -> 239616 bytes app/assets/javascripts/editor.js.coffee | 37 ++ app/assets/stylesheets/application.css.scss | 2 +- .../stylesheets/foundation_and_overrides.scss | 5 +- app/assets/stylesheets/sass/_base.scss | 110 +++++ app/assets/stylesheets/sass/_layout.scss | 11 +- app/assets/stylesheets/sass/_typography.scss | 71 +++- app/controllers/conferences_controller.rb | 240 ++++++++++- app/controllers/pages_controller.rb | 6 +- app/helpers/application_helper.rb | 13 + app/helpers/bike_bike_form_helper.rb | 6 +- app/mailers/user_mailer.rb | 44 +- app/models/organization.rb | 12 + app/views/conferences/_header.html.haml | 2 +- app/views/conferences/_register.html.haml | 5 +- .../conferences/_register_cancel.html.haml | 3 + .../conferences/_register_cancelled.html.haml | 3 + .../_register_new_organization.html.haml | 28 ++ .../_register_new_workshop.html.haml | 37 ++ .../_register_organizations.html.haml | 83 ++++ .../conferences/_register_primary.html.haml | 22 +- .../conferences/_register_questions.html.haml | 34 ++ .../conferences/_register_submit.html.haml | 3 + .../conferences/_register_thanks.html.haml | 6 + .../_register_volunteer_questions.html.haml | 31 ++ app/views/conferences/show.html.haml | 13 +- app/views/layouts/application.html.haml | 23 +- app/views/layouts/fields/_actions.html.haml | 2 +- app/views/layouts/fields/_default.html.haml | 2 +- .../organizations/_mini_preview.html.haml | 6 + .../conference_registration_email.text.haml | 1 + config/initializers/i18n.rb | 2 +- config/routes.rb | 2 +- ...ation_token_to_conference_registrations.rb | 5 + ...52_add_data_to_conference_registrations.rb | 5 + db/schema.rb | 4 +- .../1t3i4wgk5899kx2x/Thumbs.db | Bin 0 -> 13824 bytes 41 files changed, 1185 insertions(+), 105 deletions(-) delete mode 100644 .openshift/action_hooks/start delete mode 100644 .openshift/action_hooks/stop create mode 100644 Gemfile.lock create mode 100644 app/assets/javascripts/editor.js.coffee create mode 100644 app/views/conferences/_register_cancel.html.haml create mode 100644 app/views/conferences/_register_cancelled.html.haml create mode 100644 app/views/conferences/_register_new_organization.html.haml create mode 100644 app/views/conferences/_register_new_workshop.html.haml create mode 100644 app/views/conferences/_register_organizations.html.haml create mode 100644 app/views/conferences/_register_questions.html.haml create mode 100644 app/views/conferences/_register_submit.html.haml create mode 100644 app/views/conferences/_register_thanks.html.haml create mode 100644 app/views/conferences/_register_volunteer_questions.html.haml create mode 100644 app/views/organizations/_mini_preview.html.haml create mode 100644 app/views/user_mailer/conference_registration_email.text.haml create mode 100644 db/migrate/20140716001857_add_confirmation_token_to_conference_registrations.rb create mode 100644 db/migrate/20140716002152_add_data_to_conference_registrations.rb create mode 100644 public/registration_data/1t3i4wgk5899kx2x/Thumbs.db diff --git a/.openshift/action_hooks/start b/.openshift/action_hooks/start deleted file mode 100644 index a2c8532..0000000 --- a/.openshift/action_hooks/start +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -# The logic to start up your application should be put in this -# script. The application will work only if it binds to -# $OPENSHIFT_INTERNAL_IP:8080 -export PATH=$OPENSHIFT_RUNTIME_DIR/bin:$PATH -cd $OPENSHIFT_REPO_DIR -rails server -b $OPENSHIFT_INTERNAL_IP -p $OPENSHIFT_INTERNAL_PORT -d diff --git a/.openshift/action_hooks/stop b/.openshift/action_hooks/stop deleted file mode 100644 index 259cea5..0000000 --- a/.openshift/action_hooks/stop +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -# The logic to stop your application should be put in this script. -kill -9 `ps -ef | grep "rails server" | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1 -exit 0 diff --git a/Gemfile b/Gemfile index 9cfb107..4615049 100644 --- a/Gemfile +++ b/Gemfile @@ -70,6 +70,6 @@ platforms 'mswin', 'mingw' do end group :staging, :production do - gem 'unicorn' + gem 'unicorn' if !(RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwin/i) end end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..51a78ef --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,398 @@ +GIT + remote: git://github.com/josevalim/rails-footnotes.git + revision: 087914beabb56c2e9979f63eeb0183591065dde3 + specs: + rails-footnotes (4.0.2) + rails (>= 3.2) + +GIT + remote: git://github.com/svenfuchs/i18n-active_record.git + revision: 2d9a22b6a4e5d809782cdbfa65b14d9e47aa27fc + specs: + i18n-active_record (0.0.2) + i18n (>= 0.5.0) + +GEM + remote: http://rubygems.org/ + specs: + actionmailer (4.0.0) + actionpack (= 4.0.0) + mail (~> 2.5.3) + actionpack (4.0.0) + activesupport (= 4.0.0) + builder (~> 3.1.0) + erubis (~> 2.7.0) + rack (~> 1.5.2) + rack-test (~> 0.6.2) + activemodel (4.0.0) + activesupport (= 4.0.0) + builder (~> 3.1.0) + activerecord (4.0.0) + activemodel (= 4.0.0) + activerecord-deprecated_finders (~> 1.0.2) + activesupport (= 4.0.0) + arel (~> 4.0.0) + activerecord-deprecated_finders (1.0.3) + activerecord-session_store (0.1.0) + actionpack (>= 4.0.0, < 5) + activerecord (>= 4.0.0, < 5) + railties (>= 4.0.0, < 5) + activesupport (4.0.0) + i18n (~> 0.6, >= 0.6.4) + minitest (~> 4.2) + multi_json (~> 1.3) + thread_safe (~> 0.1) + tzinfo (~> 0.3.37) + acts_as_list (0.4.0) + activerecord (>= 3.0) + addressable (2.3.6) + arel (4.0.2) + awesome_print (1.2.0) + bcrypt (3.1.7-x86-mingw32) + better_errors (1.1.0) + coderay (>= 1.0.0) + erubis (>= 2.6.6) + binding_of_caller (0.7.2) + debug_inspector (>= 0.0.1) + builder (3.1.4) + callsite (0.0.11) + capistrano (2.15.5) + highline + net-scp (>= 1.0.0) + net-sftp (>= 2.0.0) + net-ssh (>= 2.0.14) + net-ssh-gateway (>= 1.1.0) + capybara (2.4.1) + mime-types (>= 1.16) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) + carmen (1.0.1) + unicode_utils (~> 1.4.0) + carmen-rails (1.0.1) + carmen (~> 1.0.0) + rails + carrierwave (0.10.0) + activemodel (>= 3.2.0) + activesupport (>= 3.2.0) + json (>= 1.7) + mime-types (>= 1.16) + carrierwave-imageoptimizer (1.2.1) + carrierwave (~> 0.8) + image_optimizer (~> 1.2) + celluloid (0.15.2) + timers (~> 1.1.0) + childprocess (0.5.3) + ffi (~> 1.0, >= 1.0.11) + chunky_png (1.3.1) + coderay (1.1.0) + coffee-rails (4.0.1) + coffee-script (>= 2.2.0) + railties (>= 4.0.0, < 5.0) + coffee-script (2.3.0) + coffee-script-source + execjs + coffee-script-source (1.7.1) + compass (0.12.7) + chunky_png (~> 1.2) + fssm (>= 0.2.7) + sass (~> 3.2.19) + compass-rails (1.1.7) + compass (>= 0.12.2) + sprockets (<= 2.11.0) + coveralls (0.7.0) + multi_json (~> 1.3) + rest-client + simplecov (>= 0.7) + term-ansicolor + thor + crack (0.4.2) + safe_yaml (~> 1.0.0) + cucumber (1.3.15) + builder (>= 2.1.2) + diff-lcs (>= 1.1.3) + gherkin (~> 2.12) + multi_json (>= 1.7.5, < 2.0) + multi_test (>= 0.1.1) + cucumber-rails (1.4.1) + capybara (>= 1.1.2, < 3) + cucumber (>= 1.3.8, < 2) + mime-types (~> 1.16) + nokogiri (~> 1.5) + rails (>= 3, < 5) + database_cleaner (1.3.0) + debug_inspector (0.0.2) + diff-lcs (1.2.5) + docile (1.1.5) + erubis (2.7.0) + execjs (2.2.1) + factory_girl (4.4.0) + activesupport (>= 3.0.0) + factory_girl_rails (4.4.1) + factory_girl (~> 4.4.0) + railties (>= 3.0.0) + faraday (0.9.0) + multipart-post (>= 1.2, < 3) + ffi (1.9.3-x86-mingw32) + font-awesome-rails (4.1.0.0) + railties (>= 3.2, < 5.0) + forgery (0.6.0) + formatador (0.2.5) + foundation-rails (5.3.1.0) + railties (>= 3.1.0) + sass (>= 3.2.0) + fssm (0.2.10) + geocoder (1.2.3) + gherkin (2.12.2-x86-mingw32) + multi_json (~> 1.3) + guard (2.6.1) + formatador (>= 0.2.4) + listen (~> 2.7) + lumberjack (~> 1.0) + pry (>= 0.9.12) + thor (>= 0.18.1) + guard-rspec (4.2.10) + guard (~> 2.1) + rspec (>= 2.14, < 4.0) + haml (4.0.5) + tilt + haml-rails (0.5.1) + actionpack (~> 4.0.0) + activesupport (~> 4.0.0) + haml (>= 3.1, < 5.0) + railties (~> 4.0.0) + highline (1.6.21) + hike (1.2.3) + httpauth (0.2.1) + i18n (0.6.11) + image_optimizer (1.2.1) + jquery-rails (3.1.1) + railties (>= 3.0, < 5.0) + thor (>= 0.14, < 2.0) + jquery-ui-rails (5.0.0) + railties (>= 3.2.16) + json (1.8.1) + jwt (0.1.13) + multi_json (>= 1.5) + launchy (2.4.2) + addressable (~> 2.3) + listen (2.7.9) + celluloid (>= 0.15.2) + rb-fsevent (>= 0.9.3) + rb-inotify (>= 0.9) + lumberjack (1.0.9) + mail (2.5.4) + mime-types (~> 1.16) + treetop (~> 1.4.8) + meta_request (0.3.3) + callsite (~> 0.0, >= 0.0.11) + rack-contrib (~> 1.1) + railties (>= 3.0.0, < 5.0.0) + method_source (0.8.2) + mime-types (1.25.1) + mini_magick (3.7.0) + subexec (~> 0.2.1) + mini_portile (0.6.0) + minitest (4.7.5) + multi_json (1.10.1) + multi_test (0.1.1) + multipart-post (2.0.0) + nested_form (0.3.2) + net-scp (1.2.1) + net-ssh (>= 2.6.5) + net-sftp (2.1.2) + net-ssh (>= 2.6.5) + net-ssh (2.9.1) + net-ssh-gateway (1.2.0) + net-ssh (>= 2.6.5) + netrc (0.7.7) + nokogiri (1.6.2.1-x86-mingw32) + mini_portile (= 0.6.0) + oauth (0.4.7) + oauth2 (0.8.1) + faraday (~> 0.8) + httpauth (~> 0.1) + jwt (~> 0.1.4) + multi_json (~> 1.0) + rack (~> 1.2) + paper_trail (3.0.3) + activerecord (>= 3.0, < 5.0) + activesupport (>= 3.0, < 5.0) + pg (0.17.1-x86-mingw32) + polyglot (0.3.5) + pry (0.10.0-x86-mingw32) + coderay (~> 1.1.0) + method_source (~> 0.8.1) + slop (~> 3.4) + win32console (~> 1.3) + rack (1.5.2) + rack-contrib (1.1.0) + rack (>= 0.9.1) + rack-test (0.6.2) + rack (>= 1.0) + rails (4.0.0) + actionmailer (= 4.0.0) + actionpack (= 4.0.0) + activerecord (= 4.0.0) + activesupport (= 4.0.0) + bundler (>= 1.3.0, < 2.0) + railties (= 4.0.0) + sprockets-rails (~> 2.0.0) + rails-assets-cdn (0.1.0) + rails + rails_12factor (0.0.2) + rails_serve_static_assets + rails_stdout_logging + rails_serve_static_assets (0.0.2) + rails_stdout_logging (0.0.3) + railties (4.0.0) + actionpack (= 4.0.0) + activesupport (= 4.0.0) + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (10.3.2) + rb-fsevent (0.9.4) + rb-inotify (0.9.5) + ffi (>= 0.5.0) + rest-client (1.7.2-x86-mingw32) + ffi (~> 1.9) + mime-types (>= 1.16, < 3.0) + netrc (~> 0.7) + rspec (3.0.0) + rspec-core (~> 3.0.0) + rspec-expectations (~> 3.0.0) + rspec-mocks (~> 3.0.0) + rspec-core (3.0.2) + rspec-support (~> 3.0.0) + rspec-expectations (3.0.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.0.0) + rspec-mocks (3.0.2) + rspec-support (~> 3.0.0) + rspec-rails (3.0.1) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.0.0) + rspec-expectations (~> 3.0.0) + rspec-mocks (~> 3.0.0) + rspec-support (~> 3.0.0) + rspec-support (3.0.2) + rubyzip (1.1.6) + rvm-capistrano (1.5.3) + capistrano (~> 2.15.4) + safe_yaml (1.0.3) + sass (3.2.19) + sass-rails (4.0.3) + railties (>= 4.0.0, < 5.0) + sass (~> 3.2.0) + sprockets (~> 2.8, <= 2.11.0) + sprockets-rails (~> 2.0) + selenium-webdriver (2.42.0) + childprocess (>= 0.5.0) + multi_json (~> 1.0) + rubyzip (~> 1.0) + websocket (~> 1.0.4) + simplecov (0.9.0) + docile (~> 1.1.0) + multi_json + simplecov-html (~> 0.8.0) + simplecov-html (0.8.0) + sitemap_generator (5.0.4) + builder + slop (3.6.0) + sorcery (0.8.6) + bcrypt (~> 3.1) + oauth (~> 0.4, >= 0.4.4) + oauth2 (>= 0.8.0, < 1.0.0) + sprockets (2.11.0) + hike (~> 1.2) + multi_json (~> 1.0) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + sprockets-rails (2.0.1) + actionpack (>= 3.0) + activesupport (>= 3.0) + sprockets (~> 2.8) + subexec (0.2.3) + term-ansicolor (1.3.0) + tins (~> 1.0) + thor (0.19.1) + thread_safe (0.3.4) + tilt (1.4.1) + timers (1.1.0) + tins (1.3.0) + treetop (1.4.15) + polyglot + polyglot (>= 0.3.1) + tzinfo (0.3.40) + uglifier (2.5.3) + execjs (>= 0.3.0) + json (>= 1.8.0) + unicode_utils (1.4.0) + wdm (0.1.0) + webmock (1.18.0) + addressable (>= 2.3.6) + crack (>= 0.3.2) + websocket (1.0.7) + win32console (1.3.2-x86-mingw32) + wysiwyg-rails (1.1.6) + font-awesome-rails (= 4.1.0.0) + railties (>= 3.2, < 5.0) + xpath (2.0.0) + nokogiri (~> 1.3) + +PLATFORMS + x86-mingw32 + +DEPENDENCIES + activerecord-session_store + acts_as_list + awesome_print + better_errors + binding_of_caller + capistrano + capybara + carmen-rails + carrierwave + carrierwave-imageoptimizer + coffee-rails (~> 4.0.0) + compass-rails (~> 1.1.3) + coveralls + cucumber-rails + database_cleaner + factory_girl_rails + font-awesome-rails + forgery + foundation-rails + geocoder + guard-rspec + haml + haml-rails + i18n-active_record! + jquery-rails + jquery-ui-rails + launchy + meta_request + mini_magick + nested_form + oauth2 (~> 0.8.0) + paper_trail + pg + rails (= 4.0.0) + rails-assets-cdn + rails-footnotes! + rails_12factor + rspec + rspec-rails + rvm-capistrano + sass-rails (~> 4.0.0) + selenium-webdriver + simplecov + sitemap_generator + sorcery (>= 0.8.1) + uglifier (>= 1.3.0) + wdm (>= 0.1.0) + webmock + wysiwyg-rails diff --git a/app/assets/images/Thumbs.db b/app/assets/images/Thumbs.db index 4e622e9c1cd1fdebc071adb015cd0ed63da06b1e..a712181594d9c4729bb4dba0898baae3dbcccff5 100644 GIT binary patch delta 327 zcmZp;z}IkrZ$l0X+XPXIrzHy~7qMKNe3->>atW(Hh~E5#)t?D0V8Ft%xq@R#I!nTL zXR*x!1%ISj5rqZm*~07-cJ tmx)YQcm!mm85lrbt?yd4$?Jhr%jU#g8jRZ(FnOeK2qUX5VPWoB3;=a{d|&_o delta 327 zcmZp;z}IkrZ$l0X+Xt?#6W-68T*Pv5y0aLQ;p7rle=uY77gm2JUPfUC1_l8j{tpC` z9rHCdS8z;8X8{T@Y!)c^BMoKsY&MvDn8k4NmpvgId@$9494ebj_Rh#+0qNZ?puxDs zjYkM5$&936`j9=Y93~Uh=`LbS2GdI>GWml%vi-|M lrYk(tIii>aHYe`VVBEHV$s>gWWD5vP2D)&22@7-2VgQW4eG32p diff --git a/app/assets/javascripts/editor.js.coffee b/app/assets/javascripts/editor.js.coffee new file mode 100644 index 0000000..409d410 --- /dev/null +++ b/app/assets/javascripts/editor.js.coffee @@ -0,0 +1,37 @@ +#= require froala_editor.min.js +$ -> + $('[data-editable]').editable({inlineMode: true, blockTags: ["n", "p", "h2", "blockquote", "pre"], buttons: ["formatBlock", "bold", "italic", "underline", "insertOrderedList", "insertUnorderedList", "sep", "createLink", "insertImage", "insertVideo", "html", "undo", "redo"]}) + $('[data-editor]').editable({inlineMode: false, blockTags: ["n", "p", "h2", "blockquote", "pre"], buttons: ["formatBlock", "bold", "italic", "underline", "insertOrderedList", "insertUnorderedList", "sep", "createLink", "html", "undo", "redo"]}) + $('.field.country-select-field select').change () -> + $country = $(this) + country = $country.val() + $territory = $('.field.subregion-select-field select') + if $territory.data().country == country + $territory.removeClass('can cant').addClass('can') + return + + $.post '/location/territories', {country: country}, + (json) -> + $territory.html('') + if json && Object.keys(json).length + $.each json, (code, name) -> + $territory.append($('