Skip to content

Commit

Permalink
Issue #297 Resolve conflicts, updating documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullRahman ElHusseini committed Apr 24, 2014
2 parents 31fa531 + a251d69 commit 4f11343
Show file tree
Hide file tree
Showing 148 changed files with 4,909 additions and 1,131 deletions.
2 changes: 1 addition & 1 deletion tutor/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ models.svg

# Ignoring .java and .class files
/students_solutions/Java/*.java
/students_solutions/Class/*.class
/students_solutions/Class/*.class
18 changes: 15 additions & 3 deletions tutor/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ ruby '2.1.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.4'

# User authentication
gem 'devise'

# File uploading
gem 'carrierwave'
gem 'rmagick'

# Use sqlite3 as the database for Active Record
gem 'sqlite3'
gem 'devise'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.2'

Expand Down Expand Up @@ -47,7 +54,12 @@ gem 'foreman'
# Use debugger
# gem 'debugger', group: [:development, :test]

# User authentication

# Use composite primary keys in models
gem 'composite_primary_keys', '~> 6.0.1'

#search
gem 'tire'
gem 'json_builder', '3.1.0'

# whenever gem for scheduling tasks
gem 'whenever', :require => false
49 changes: 39 additions & 10 deletions tutor/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ GEM
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
ansi (1.4.3)
arel (4.0.2)
atomic (1.1.16)
bcrypt (3.1.7)
builder (3.1.4)
carrierwave (0.10.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
json (>= 1.7)
mime-types (>= 1.16)
chronic (0.10.2)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
Expand All @@ -44,12 +50,15 @@ GEM
railties (>= 3.2.6, < 5)
thread_safe (~> 0.1)
warden (~> 1.2.3)
dotenv (0.10.0)
dotenv (0.11.0)
dotenv-deployment (= 0.0.1)
dotenv-deployment (0.0.1)
erubis (2.7.0)
execjs (2.0.2)
foreman (0.63.0)
dotenv (>= 0.7)
thor (>= 0.13.6)
hashr (0.0.22)
hike (1.2.3)
i18n (0.6.9)
jbuilder (1.5.3)
Expand All @@ -59,6 +68,8 @@ GEM
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.1)
json_builder (3.1.0)
activesupport (>= 2.0.0)
kgio (2.9.2)
mail (2.5.4)
mime-types (~> 1.16)
Expand All @@ -85,15 +96,18 @@ GEM
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
raindrops (0.13.0)
rake (10.1.1)
rake (10.3.1)
rdoc (4.1.1)
json (~> 1.4)
sass (3.2.17)
sass-rails (4.0.2)
rest-client (1.6.7)
mime-types (>= 1.16)
rmagick (2.13.2)
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.0)
sprockets-rails (~> 2.0)
sdoc (0.4.0)
json (~> 1.8)
rdoc (~> 4.0, < 5.0)
Expand All @@ -107,14 +121,21 @@ GEM
activesupport (>= 3.0)
sprockets (~> 2.8)
sqlite3 (1.3.9)
thor (0.19.0)
thread_safe (0.3.1)
atomic (>= 1.1.7, < 2)
thor (0.19.1)
thread_safe (0.3.3)
tilt (1.4.1)
tire (0.6.2)
activemodel (>= 3.0)
activesupport
ansi
hashr (~> 0.0.19)
multi_json (~> 1.3)
rake
rest-client (~> 1.6)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
turbolinks (2.2.1)
turbolinks (2.2.2)
coffee-rails
tzinfo (0.3.39)
uglifier (2.5.0)
Expand All @@ -126,21 +147,29 @@ GEM
raindrops (~> 0.7)
warden (1.2.3)
rack (>= 1.0)
whenever (0.9.2)
activesupport (>= 2.3.4)
chronic (>= 0.6.3)

PLATFORMS
ruby

DEPENDENCIES
carrierwave
coffee-rails (~> 4.0.0)
composite_primary_keys (~> 6.0.1)
devise
foreman
jbuilder (~> 1.2)
jquery-rails (~> 3.1.0)
json_builder (= 3.1.0)
rails (= 4.0.4)
rmagick
sass-rails (~> 4.0.2)
sdoc
sqlite3
tire
turbolinks
uglifier (>= 1.3.0)
unicorn
whenever
3 changes: 3 additions & 0 deletions tutor/app/assets/javascripts/acknowledgements.js.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
2 changes: 2 additions & 0 deletions tutor/app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
//= require jquery_ujs
//= require turbolinks
//= require_tree .
//= require jquery.tokeninput
//= require utilities
29 changes: 29 additions & 0 deletions tutor/app/assets/javascripts/facebook.js.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# [Post to Facebook - Story 5.1]
# Opens popup window for the facebook popup
# Parameters:
# url: url to open in popup window
# popName: name of popup window
# Returns: none
# Author: Amir George

@openBackWindow = (url, popName) ->
popupWindow = window.open(url, popName, "scrollbars=1,height=1,width=1")
if $.browser.msie
popupWindow.blur()
window.focus()
else
blurPopunder()
return

# [Post to Facebook - Story 5.1]
# Helper for openBackWindow
# Parameters: none
# Returns: none
# Author: Amir George

blurPopunder = ->
winBlankPopup = window.open("about:blank")
if winBlankPopup
winBlankPopup.focus()
winBlankPopup.close()
return
7 changes: 7 additions & 0 deletions tutor/app/assets/javascripts/jquery.bpopup.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions tutor/app/assets/javascripts/lecturers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$(document).ready(function() {
$('.tabs .tab-links a').on('click', function(element) {
var currentAttrValue = $(this).attr('href');
// Show/Hide Tabs
$('.tabs ' + currentAttrValue).siblings().slideUp(400);
$('.tabs ' + currentAttrValue).delay(400).slideDown(400);
//or use fade
//$('.tabs ' + currentAttrValue).fadeIn(400).siblings().hide();
// Change/remove current tab to active
$(this).parent('li').addClass('active').siblings().removeClass('active');
element.preventDefault();
});
});
3 changes: 3 additions & 0 deletions tutor/app/assets/javascripts/posts.js.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
Loading

0 comments on commit 4f11343

Please sign in to comment.