Skip to content

Commit 3dde49f

Browse files
committed
Add foundation, run compass generator.
1 parent 41b27d1 commit 3dde49f

28 files changed

+16745
-73
lines changed

.powrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if [ -f "$rvm_path/scripts/rvm" ] && [ -f ".rvmrc" ]; then
2+
source "$rvm_path/scripts/rvm"
3+
source ".rvmrc"
4+
fi

.ruby-version

-1
This file was deleted.

.rvmrc

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/usr/bin/env bash
2+
3+
# This is an RVM Project .rvmrc file, used to automatically load the ruby
4+
# development environment upon cd'ing into the directory
5+
6+
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
7+
# Only full ruby name is supported here, for short names use:
8+
# echo "rvm use 1.9.3" > .rvmrc
9+
environment_id="ruby-1.9.3-p362@refresh_seattle"
10+
11+
# Uncomment the following lines if you want to verify rvm version per project
12+
# rvmrc_rvm_version="1.18.19 (master)" # 1.10.1 seams as a safe start
13+
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
14+
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
15+
# return 1
16+
# }
17+
18+
# First we attempt to load the desired environment directly from the environment
19+
# file. This is very fast and efficient compared to running through the entire
20+
# CLI and selector. If you want feedback on which environment was used then
21+
# insert the word 'use' after --create as this triggers verbose mode.
22+
if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
23+
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
24+
then
25+
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
26+
for __hook in "${rvm_path:-$HOME/.rvm}/hooks/after_use"*
27+
do
28+
if [[ -f "${__hook}" && -x "${__hook}" && -s "${__hook}" ]]
29+
then \. "${__hook}" || true
30+
fi
31+
done
32+
unset __hook
33+
else
34+
# If the environment file has not yet been created, use the RVM CLI to select.
35+
rvm --create "$environment_id" || {
36+
echo "Failed to create RVM environment '${environment_id}'."
37+
return 1
38+
}
39+
fi
40+
41+
# If you use bundler, this might be useful to you:
42+
# if [[ -s Gemfile ]] && {
43+
# ! builtin command -v bundle >/dev/null ||
44+
# builtin command -v bundle | GREP_OPTIONS= \grep $rvm_path/bin/bundle >/dev/null
45+
# }
46+
# then
47+
# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
48+
# gem install bundler
49+
# fi
50+
# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
51+
# then
52+
# bundle install | GREP_OPTIONS= \grep -vE '^Using|Your bundle is complete'
53+
# fi

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ gem 'pg'
1212
# in production environments by default.
1313
group :assets do
1414
gem 'sass-rails'
15+
gem 'compass-rails'
1516
gem 'coffee-rails'
16-
gem 'zurb-foundation', '~> 4.0.7'
17+
gem 'zurb-foundation', '~> 4.0.9'
1718

1819
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
1920
# gem 'therubyracer', :platforms => :ruby

Gemfile.lock

+11-2
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,20 @@ GEM
5353
bootstrap-sass (2.3.0.1)
5454
sass (~> 3.2)
5555
builder (3.0.4)
56+
chunky_png (1.2.7)
5657
coffee-rails (3.2.2)
5758
coffee-script (>= 2.2.0)
5859
railties (~> 3.2.0)
5960
coffee-script (2.2.0)
6061
coffee-script-source
6162
execjs
6263
coffee-script-source (1.5.0)
64+
compass (0.12.2)
65+
chunky_png (~> 1.2)
66+
fssm (>= 0.2.7)
67+
sass (~> 3.1)
68+
compass-rails (1.0.3)
69+
compass (>= 0.12.2, < 0.14)
6370
devise (2.2.3)
6471
bcrypt-ruby (~> 3.0)
6572
orm_adapter (~> 0.1)
@@ -72,6 +79,7 @@ GEM
7279
font-awesome-sass-rails (3.0.2.2)
7380
railties (>= 3.1.1)
7481
sass-rails (>= 3.1.1)
82+
fssm (0.2.10)
7583
haml (4.0.0)
7684
tilt
7785
hashie (1.2.0)
@@ -164,14 +172,15 @@ GEM
164172
multi_json (~> 1.0, >= 1.0.2)
165173
warden (1.2.1)
166174
rack (>= 1.0)
167-
zurb-foundation (4.0.7)
175+
zurb-foundation (4.0.9)
168176
sass (>= 3.2.0)
169177

170178
PLATFORMS
171179
ruby
172180

173181
DEPENDENCIES
174182
coffee-rails
183+
compass-rails
175184
devise
176185
jquery-rails
177186
omniauth
@@ -181,4 +190,4 @@ DEPENDENCIES
181190
rspec-rails
182191
sass-rails
183192
uglifier
184-
zurb-foundation (~> 4.0.7)
193+
zurb-foundation (~> 4.0.9)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*jslint unparam: true, browser: true, indent: 2 */
2+
3+
;(function ($, window, document, undefined) {
4+
'use strict';
5+
6+
Foundation.libs.alerts = {
7+
name : 'alerts',
8+
9+
version : '4.0.0',
10+
11+
settings : {
12+
speed: 300, // fade out speed
13+
callback: function (){}
14+
},
15+
16+
init : function (scope, method, options) {
17+
this.scope = scope || this.scope;
18+
19+
if (typeof method === 'object') {
20+
$.extend(true, this.settings, method);
21+
}
22+
23+
if (typeof method != 'string') {
24+
if (!this.settings.init) this.events();
25+
26+
return this.settings.init;
27+
} else {
28+
return this[method].call(this, options);
29+
}
30+
},
31+
32+
events : function () {
33+
var self = this;
34+
35+
$(this.scope).on('click.fndtn.alerts', '[data-alert] a.close', function (e) {
36+
e.preventDefault();
37+
$(this).closest("[data-alert]").fadeOut(self.speed, function () {
38+
$(this).remove();
39+
self.settings.callback();
40+
});
41+
});
42+
43+
this.settings.init = true;
44+
},
45+
46+
off : function () {
47+
$(this.scope).off('.fndtn.alerts');
48+
}
49+
};
50+
}(Foundation.zj, this, this.document));

0 commit comments

Comments
 (0)