forked from smartchicago/foodborne
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b0d6e18
Showing
102 changed files
with
2,457 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 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 | ||
|
||
# Local settings | ||
/config/settings_development.yml | ||
|
||
# Misc | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
source 'https://rubygems.org' | ||
|
||
# Rails | ||
gem 'rails', '3.2.9' | ||
|
||
# Database | ||
gem 'pg' | ||
|
||
# ActiveAdmin | ||
gem 'activeadmin' | ||
gem "meta_search", '>= 1.1.0.pre' | ||
|
||
# Gems used only for assets and not required | ||
# in production environments by default. | ||
group :assets do | ||
gem 'sass-rails', '~> 3.2.3' | ||
gem 'coffee-rails', '~> 3.2.1' | ||
# gem 'therubyracer', :platforms => :ruby | ||
gem 'uglifier', '>= 1.0.3' | ||
end | ||
|
||
# jQuery | ||
gem 'jquery-rails' | ||
gem 'jquery-ui-rails' | ||
|
||
# Haml | ||
gem 'haml-rails' | ||
|
||
# Simple Form | ||
gem 'simple_form' | ||
|
||
gem 'twitter' | ||
|
||
group :development, :test do | ||
gem 'sqlite3' | ||
end | ||
|
||
group :production do | ||
gem 'thin' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
actionmailer (3.2.9) | ||
actionpack (= 3.2.9) | ||
mail (~> 2.4.4) | ||
actionpack (3.2.9) | ||
activemodel (= 3.2.9) | ||
activesupport (= 3.2.9) | ||
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.2.1) | ||
activeadmin (0.5.1) | ||
arbre (>= 1.0.1) | ||
bourbon (>= 1.0.0) | ||
devise (>= 1.1.2) | ||
fastercsv | ||
formtastic (>= 2.0.0) | ||
inherited_resources (>= 1.3.1) | ||
jquery-rails (>= 1.0.0) | ||
kaminari (>= 0.13.0) | ||
meta_search (>= 0.9.2) | ||
rails (>= 3.0.0) | ||
sass (>= 3.1.0) | ||
activemodel (3.2.9) | ||
activesupport (= 3.2.9) | ||
builder (~> 3.0.0) | ||
activerecord (3.2.9) | ||
activemodel (= 3.2.9) | ||
activesupport (= 3.2.9) | ||
arel (~> 3.0.2) | ||
tzinfo (~> 0.3.29) | ||
activeresource (3.2.9) | ||
activemodel (= 3.2.9) | ||
activesupport (= 3.2.9) | ||
activesupport (3.2.9) | ||
i18n (~> 0.6) | ||
multi_json (~> 1.0) | ||
arbre (1.0.1) | ||
activesupport (>= 3.0.0) | ||
arel (3.0.2) | ||
bcrypt-ruby (3.0.1) | ||
bourbon (3.0.1) | ||
sass (>= 3.2.0) | ||
thor | ||
builder (3.0.4) | ||
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.4.0) | ||
daemons (1.1.9) | ||
devise (2.1.2) | ||
bcrypt-ruby (~> 3.0) | ||
orm_adapter (~> 0.1) | ||
railties (~> 3.1) | ||
warden (~> 1.2.1) | ||
erubis (2.7.0) | ||
eventmachine (1.0.0) | ||
execjs (1.4.0) | ||
multi_json (~> 1.0) | ||
faraday (0.8.4) | ||
multipart-post (~> 1.1) | ||
fastercsv (1.5.5) | ||
formtastic (2.2.1) | ||
actionpack (>= 3.0) | ||
haml (3.1.7) | ||
haml-rails (0.3.5) | ||
actionpack (>= 3.1, < 4.1) | ||
activesupport (>= 3.1, < 4.1) | ||
haml (~> 3.1) | ||
railties (>= 3.1, < 4.1) | ||
has_scope (0.5.1) | ||
hike (1.2.1) | ||
i18n (0.6.1) | ||
inherited_resources (1.3.1) | ||
has_scope (~> 0.5.0) | ||
responders (~> 0.6) | ||
journey (1.0.4) | ||
jquery-rails (2.1.4) | ||
railties (>= 3.0, < 5.0) | ||
thor (>= 0.14, < 2.0) | ||
jquery-ui-rails (3.0.0) | ||
jquery-rails | ||
railties (>= 3.1.0) | ||
json (1.7.5) | ||
kaminari (0.14.1) | ||
actionpack (>= 3.0.0) | ||
activesupport (>= 3.0.0) | ||
mail (2.4.4) | ||
i18n (>= 0.4.0) | ||
mime-types (~> 1.16) | ||
treetop (~> 1.4.8) | ||
meta_search (1.1.3) | ||
actionpack (~> 3.1) | ||
activerecord (~> 3.1) | ||
activesupport (~> 3.1) | ||
polyamorous (~> 0.5.0) | ||
mime-types (1.19) | ||
multi_json (1.5.0) | ||
multipart-post (1.1.5) | ||
orm_adapter (0.4.0) | ||
pg (0.14.1) | ||
polyamorous (0.5.0) | ||
activerecord (~> 3.0) | ||
polyglot (0.3.3) | ||
rack (1.4.1) | ||
rack-cache (1.2) | ||
rack (>= 0.4) | ||
rack-ssl (1.3.2) | ||
rack | ||
rack-test (0.6.2) | ||
rack (>= 1.0) | ||
rails (3.2.9) | ||
actionmailer (= 3.2.9) | ||
actionpack (= 3.2.9) | ||
activerecord (= 3.2.9) | ||
activeresource (= 3.2.9) | ||
activesupport (= 3.2.9) | ||
bundler (~> 1.0) | ||
railties (= 3.2.9) | ||
railties (3.2.9) | ||
actionpack (= 3.2.9) | ||
activesupport (= 3.2.9) | ||
rack-ssl (~> 1.3.2) | ||
rake (>= 0.8.7) | ||
rdoc (~> 3.4) | ||
thor (>= 0.14.6, < 2.0) | ||
rake (10.0.3) | ||
rdoc (3.12) | ||
json (~> 1.4) | ||
responders (0.9.3) | ||
railties (~> 3.1) | ||
sass (3.2.4) | ||
sass-rails (3.2.5) | ||
railties (~> 3.2.0) | ||
sass (>= 3.1.10) | ||
tilt (~> 1.3) | ||
simple_form (2.0.4) | ||
actionpack (~> 3.0) | ||
activemodel (~> 3.0) | ||
simple_oauth (0.2.0) | ||
sprockets (2.2.2) | ||
hike (~> 1.2) | ||
multi_json (~> 1.0) | ||
rack (~> 1.0) | ||
tilt (~> 1.1, != 1.3.0) | ||
sqlite3 (1.3.6) | ||
thin (1.5.0) | ||
daemons (>= 1.0.9) | ||
eventmachine (>= 0.12.6) | ||
rack (>= 1.0.0) | ||
thor (0.16.0) | ||
tilt (1.3.3) | ||
treetop (1.4.12) | ||
polyglot | ||
polyglot (>= 0.3.1) | ||
twitter (4.4.4) | ||
faraday (~> 0.8, < 0.10) | ||
multi_json (~> 1.0) | ||
simple_oauth (~> 0.2) | ||
tzinfo (0.3.35) | ||
uglifier (1.3.0) | ||
execjs (>= 0.3.0) | ||
multi_json (~> 1.0, >= 1.0.2) | ||
warden (1.2.1) | ||
rack (>= 1.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
activeadmin | ||
coffee-rails (~> 3.2.1) | ||
haml-rails | ||
jquery-rails | ||
jquery-ui-rails | ||
meta_search (>= 1.1.0.pre) | ||
pg | ||
rails (= 3.2.9) | ||
sass-rails (~> 3.2.3) | ||
simple_form | ||
sqlite3 | ||
thin | ||
uglifier (>= 1.0.3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: bundle exec rails server thin -p $PORT -e $RACK_ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# FoodBorne | ||
|
||
TODO... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env rake | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
|
||
require File.expand_path('../config/application', __FILE__) | ||
|
||
Foodpoison::Application.load_tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
ActiveAdmin.register AdminUser do | ||
index do | ||
column :email | ||
column :current_sign_in_at | ||
column :last_sign_in_at | ||
column :sign_in_count | ||
default_actions | ||
end | ||
|
||
filter :email | ||
|
||
form do |f| | ||
f.inputs "Admin Details" do | ||
f.input :email | ||
f.input :password | ||
f.input :password_confirmation | ||
end | ||
f.actions | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ActiveAdmin.register_page "Dashboard" do | ||
menu false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ActiveAdmin.register Submission do | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ActiveAdmin.register Tweet do | ||
actions :all, :except => :new | ||
|
||
# Index | ||
index do | ||
selectable_column | ||
column :text | ||
column :screen_name do |tweet| | ||
"@#{tweet.screen_name}" | ||
end | ||
column "Replied?" do |tweet| | ||
status_tag tweet.reply.blank? ? "No" : "Yes", tweet.reply.blank? ? :error : :ok | ||
end | ||
column "Actions" do |tweet| | ||
reply_link = link_to "Reply", edit_admin_tweet_path(tweet) unless tweet.reply.present? | ||
view_link = link_to "View on Twitter", "https://twitter.com/#{tweet.screen_name}/status/#{tweet.tweet_id}", :target => "new" | ||
"#{reply_link} #{view_link}".html_safe | ||
end | ||
end | ||
|
||
# Edit Form | ||
form :partial => "form" | ||
|
||
# Scope | ||
scope :unread, :default => true do |tweets| | ||
tweets.where(:reply => nil) | ||
end | ||
scope :all | ||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//= require active_admin/base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// This is a manifest file that'll be compiled into application.js, which will include all the files | ||
// listed below. | ||
// | ||
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, | ||
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. | ||
// | ||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | ||
// the compiled file. | ||
// | ||
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD | ||
// GO AFTER THE REQUIRES BELOW. | ||
// | ||
//= require jquery | ||
//= require jquery_ujs | ||
//= require jquery.geocomplete | ||
//= require_tree . |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
$(function () { | ||
// Datepicker | ||
$(".datepicker").datepicker("option", { | ||
maxDate: "+0m +0w" | ||
, dateFormat: "mm/dd/yy" | ||
}); | ||
|
||
// Geocomplete | ||
var chicagoBounds = new google.maps.LatLngBounds( | ||
new google.maps.LatLng(41.691747,-87.54692), | ||
new google.maps.LatLng(41.991511,-87.806472) | ||
); | ||
|
||
$("#submission_restaurant_name").geocomplete({ | ||
details: "form", | ||
detailsAttribute: "data-geo", | ||
types: ["establishment"], | ||
bounds: chicagoBounds, | ||
componentRestrictions: {country: "us"} | ||
}); | ||
|
||
$("#submission_restaurant_address").geocomplete({ | ||
types: ["geocode"], | ||
bounds: chicagoBounds, | ||
componentRestrictions: {country: "us"} | ||
}); | ||
}); |
Oops, something went wrong.