diff --git a/admin/build b/admin/build index dea84d1da..64c48f159 100755 --- a/admin/build +++ b/admin/build @@ -25,7 +25,7 @@ cp ../ruby/jam_ruby-${GEM_VERSION}.gem vendor/cache/ || { echo "unable to copy j #rm -rf vendor/bundle -- let jenkins config 'wipe workspace' decide this rm Gemfile.lock # if we don't want versions to float, pin it in the Gemfile, not count on Gemfile.lock bundle install --path vendor/bundle -bundle update +#bundle update if [ "$?" = "0" ]; then echo "success: updated dependencies" @@ -74,7 +74,7 @@ EOF set -e # cache all gems local, and tell bundle to use local gems only - bundle install --path vendor/bundle --local + #bundle install --path vendor/bundle --local # prepare production acssets rm -rf $DIR/public/assets bundle exec rake assets:precompile RAILS_ENV=production diff --git a/build b/build index 6fc0ce391..9b97f9176 100755 --- a/build +++ b/build @@ -3,6 +3,8 @@ # RUN_SLOW_TESTS, RUN_AWS_TESTS, SKIP_KARMA=1 SHOW_JS_ERRORS=1 PACKAGE=1 # WORKSPACE=/var/lib/jenkins/jobs/jam-web/workspace +set -e + export BUNDLE_JOBS=1 # 6, which i want to use, makes the whole server crawl echo "" @@ -130,4 +132,4 @@ GEM_SERVER=http://localhost:9000/gems echo "Skipping publish since branch is neither master or develop..." fi -fi \ No newline at end of file +fi diff --git a/db/Gemfile b/db/Gemfile index e6d5a3717..45bf466d6 100644 --- a/db/Gemfile +++ b/db/Gemfile @@ -3,4 +3,4 @@ source 'https://rubygems.org' # Assumes you have already cloned pg_migrate_ruby in your workspace # $ cd [workspace] # $ git clone https://github.com/sethcall/pg_migrate_ruby -gem 'pg_migrate', '0.1.11' +gem 'pg_migrate', '0.1.12' diff --git a/db/Gemfile.lock b/db/Gemfile.lock index e9646a77c..0b59faefa 100644 --- a/db/Gemfile.lock +++ b/db/Gemfile.lock @@ -4,11 +4,11 @@ GEM little-plugger (1.1.3) logging (1.7.2) little-plugger (>= 1.1.3) - pg (0.15.1) - pg (0.15.1-x86-mingw32) - pg_migrate (0.1.11) + pg (0.17.1) + pg (0.17.1-x86-mingw32) + pg_migrate (0.1.12) logging (= 1.7.2) - pg (= 0.15.1) + pg (= 0.17.1) thor (= 0.15.4) thor (0.15.4) @@ -17,4 +17,4 @@ PLATFORMS x86-mingw32 DEPENDENCIES - pg_migrate (= 0.1.11) + pg_migrate (= 0.1.12) diff --git a/db/build b/db/build index 259aea93b..a0084254e 100755 --- a/db/build +++ b/db/build @@ -19,7 +19,7 @@ rm -rf $TARGET mkdir -p $PG_BUILD_OUT mkdir -p $PG_RUBY_PACKAGE_OUT -bundle update +bundle install --path vendor/bundle echo "building migrations" bundle exec pg_migrate build --source . --out $PG_BUILD_OUT --test --verbose diff --git a/ruby/Gemfile b/ruby/Gemfile index 1925a2033..989804c45 100644 --- a/ruby/Gemfile +++ b/ruby/Gemfile @@ -15,7 +15,7 @@ else ENV['NOKOGIRI_USE_SYSTEM_LIBRARIES'] ||= "true" end -gem 'pg', '0.15.1', :platform => [:mri, :mswin, :mingw] +gem 'pg', '0.17.1', :platform => [:mri, :mswin, :mingw] gem 'jdbc_postgres', :platform => [:jruby] gem 'activerecord', '3.2.13' diff --git a/ruby/build b/ruby/build index df9ac25e3..f405937d2 100755 --- a/ruby/build +++ b/ruby/build @@ -1,8 +1,7 @@ #!/bin/bash echo "updating dependencies" -bundle install --path vendor/bundle --local -bundle update +bundle install --path vendor/bundle echo "running rspec tests" bundle exec rspec diff --git a/web/Gemfile b/web/Gemfile index 884ae244b..ac5e4551f 100644 --- a/web/Gemfile +++ b/web/Gemfile @@ -31,7 +31,7 @@ gem 'bootstrap-will_paginate', '0.0.6' gem 'em-websocket', '>=0.4.0' #, :path => '/Users/seth/workspace/em-websocket' gem 'uuidtools', '2.1.2' gem 'ruby-protocol-buffers', '1.2.2' -gem 'pg', '0.15.1' +gem 'pg', '0.17.1' gem 'compass-rails' gem 'rabl' # for JSON API development gem 'gon', '~>4.1.0' # for passthrough of Ruby variables to Javascript variables diff --git a/web/app/assets/images/content/button_facebook_signup.png b/web/app/assets/images/content/button_facebook_signup.png new file mode 100644 index 000000000..d51b55402 Binary files /dev/null and b/web/app/assets/images/content/button_facebook_signup.png differ diff --git a/web/app/assets/javascripts/user_dropdown.js b/web/app/assets/javascripts/user_dropdown.js index 2973dda7d..807f154e2 100644 --- a/web/app/assets/javascripts/user_dropdown.js +++ b/web/app/assets/javascripts/user_dropdown.js @@ -49,6 +49,10 @@ } function loadMe() { + if(!context.JK.currentUserId) { + return; + } + $.ajax({ url: '/api/users/' + context.JK.currentUserId }).done(function(r) { diff --git a/web/app/assets/javascripts/web/signupDialog.js b/web/app/assets/javascripts/web/signupDialog.js new file mode 100644 index 000000000..459833503 --- /dev/null +++ b/web/app/assets/javascripts/web/signupDialog.js @@ -0,0 +1,41 @@ +(function(context,$) { + + "use strict"; + + context.JK = context.JK || {}; + + context.JK.SignupDialog = function(app) { + var logger = context.JK.logger; + var rest = context.JK.Rest(); + var dialogId = '#signup-dialog'; + + function events() { + + + } + + function beforeShow() { + + } + + function afterHide() { + + } + + function initialize(){ + + var dialogBindings = { + 'beforeShow' : beforeShow, + 'afterHide': afterHide + }; + + app.bindDialog('signup-dialog', dialogBindings); + + console.log("honuth") + events(); + } + + this.initialize = initialize; + + } +})(window, jQuery); \ No newline at end of file diff --git a/web/app/assets/javascripts/web/web.js b/web/app/assets/javascripts/web/web.js index 0cde1c7d7..c6489a530 100644 --- a/web/app/assets/javascripts/web/web.js +++ b/web/app/assets/javascripts/web/web.js @@ -5,6 +5,7 @@ //= require AAA_Log //= require AAC_underscore //= require globals +//= require web/signupDialog //= require invitationDialog //= require shareDialog //= require layout diff --git a/web/app/assets/javascripts/web/welcome.js b/web/app/assets/javascripts/web/welcome.js new file mode 100644 index 000000000..7d4728e03 --- /dev/null +++ b/web/app/assets/javascripts/web/welcome.js @@ -0,0 +1,17 @@ +(function(context,$) { + + "use strict"; + + context.JK = context.JK || {}; + + function initialize() { + $('#signup').click(function(e) { + context.JK.app.layout.showDialog('signup-dialog'); + e.preventDefault(); + return false; + }); + } + + initialize() + +})(window, jQuery); \ No newline at end of file diff --git a/web/app/assets/stylesheets/client/dialog.css.scss b/web/app/assets/stylesheets/client/dialog.css.scss index d1c188cfa..438725f43 100644 --- a/web/app/assets/stylesheets/client/dialog.css.scss +++ b/web/app/assets/stylesheets/client/dialog.css.scss @@ -10,6 +10,10 @@ z-index: 100; } +.thin-dialog { + min-width: 100px; +} + .dialog-inner { padding:25px; color:#aaa; diff --git a/web/app/assets/stylesheets/client/jamkazam.css.scss b/web/app/assets/stylesheets/client/jamkazam.css.scss index 819e8e9ef..0d6321bb4 100644 --- a/web/app/assets/stylesheets/client/jamkazam.css.scss +++ b/web/app/assets/stylesheets/client/jamkazam.css.scss @@ -131,6 +131,14 @@ input[type="button"] { font-size:11px; } +.center { + text-align:center; +} + +.block { + display:block; +} + .orange { color: $ColorScreenPrimary !important; } diff --git a/web/app/controllers/users_controller.rb b/web/app/controllers/users_controller.rb index e6a2837f4..e2aae2132 100644 --- a/web/app/controllers/users_controller.rb +++ b/web/app/controllers/users_controller.rb @@ -23,7 +23,7 @@ class UsersController < ApplicationController def new if current_user - redirect_to :root + redirect_to client_url return end @@ -51,7 +51,7 @@ class UsersController < ApplicationController def create if current_user - redirect_to :root + redirect_to client_url return end @@ -121,9 +121,6 @@ class UsersController < ApplicationController end def welcome - if current_user - - end @hide_user_dropdown = true render :layout => "web" end diff --git a/web/app/views/layouts/web.erb b/web/app/views/layouts/web.erb index 50e6e8cf9..58c07dd86 100644 --- a/web/app/views/layouts/web.erb +++ b/web/app/views/layouts/web.erb @@ -49,6 +49,7 @@ <%= render "clients/invitationDialog" %> + <%= render "users/signupDialog" %> diff --git a/web/app/views/users/_signupDialog.html.erb b/web/app/views/users/_signupDialog.html.erb new file mode 100644 index 000000000..9484902a5 --- /dev/null +++ b/web/app/views/users/_signupDialog.html.erb @@ -0,0 +1,33 @@ +
\ No newline at end of file diff --git a/web/app/views/users/welcome.html.erb b/web/app/views/users/welcome.html.erb index 9bf3df638..86d9ed153 100644 --- a/web/app/views/users/welcome.html.erb +++ b/web/app/views/users/welcome.html.erb @@ -3,7 +3,7 @@ <% end %>