Permalink
Browse files

Changing app name from calico to shareabouts.

  • Loading branch information...
1 parent 3b6380f commit 2197fdb58856b065d51e2ce49f57fd07c0dc0503 @juliamae juliamae committed Nov 8, 2011
View
@@ -4,4 +4,4 @@
require File.expand_path('../config/application', __FILE__)
-Calico::Application.load_tasks
+Shareabouts::Application.load_tasks
@@ -1,12 +1,12 @@
-<% url_help = Calico::Application.routes.url_helpers %>
+<% url_help = Shareabouts::Application.routes.url_helpers %>
-var calico;
+var shareabouts;
$(function() {
var locate_feature = $("#locate_feature"),
finalize_feature = $("#finalize_feature");
- var calicoCfg = {
+ var shareaboutsCfg = {
map : {
tileUrl : 'http://otile1.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png',
tileAttribution : 'Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">',
@@ -22,19 +22,19 @@ $(function() {
var positionSuccess = function (position) {
var here = new L.LatLng(position.coords.latitude, position.coords.longitude);
- initCalico(here);
+ initShareabouts(here);
};
var positionError = function (message) {
var greenpoint = new L.LatLng(40.727857, -73.947151);
- initCalico(greenpoint);
+ initShareabouts(greenpoint);
};
- var initCalico = function (mapCenter) {
- $.extend( true, calicoCfg, { map : { center : mapCenter} } );
+ var initShareabouts = function (mapCenter) {
+ $.extend( true, shareaboutsCfg, { map : { center : mapCenter} } );
- calico = new Calico(calicoCfg);
- var state = calico.state();
+ shareabouts = new Shareabouts(shareaboutsCfg);
+ var state = shareabouts.state();
locate_feature.click( function(event) {
state.locateFeature();
@@ -53,7 +53,7 @@ $(function() {
var State = History.getState();
if (State.data.featureId) {
$.get( '<%= url_help.point_path("CHANGEME") %>'.replace(/CHANGEME/, State.data.featureId), function(data){
- calico.viewFeature(State.data.featureId, data.view);
+ shareabouts.viewFeature(State.data.featureId, data.view);
}, "json");
}
});
@@ -1,7 +1,7 @@
/*
* requires leaflet, jquery 1.1.4, jakesgordon/javascript-state-machine, mustache, history.js
*/
-var Calico = (function () {
+var Shareabouts = (function () {
var init = function (cfg) {
var map, // leaflet map
@@ -134,8 +134,8 @@ var Calico = (function () {
type : 'GET',
success: function(data){
if (data.view) {
- openPopupFor(newFeature, $("<div>").html($("<div class='calico submit'>").html(data.view)).html());
- $("div.calico.submit form").submit(function(e){
+ openPopupFor(newFeature, $("<div>").html($("<div class='shareabouts submit'>").html(data.view)).html());
+ $("div.shareabouts.submit form").submit(function(e){
e.preventDefault();
var ajaxOptions = {
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>Calico</title>
+ <title>Shareabouts</title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
View
@@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
-run Calico::Application
+run Shareabouts::Application
View
@@ -15,7 +15,7 @@
# Bundler.require(:default, :assets, Rails.env)
end
-module Calico
+module Shareabouts
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
@@ -15,9 +15,9 @@
development:
adapter: postgresql
encoding: unicode
- database: calico_development
+ database: shareabouts_development
pool: 5
- username: calico
+ username: shareabouts
password:
# Connect on a TCP socket. Omitted by default since the client uses a
@@ -41,15 +41,15 @@ development:
test:
adapter: postgresql
encoding: unicode
- database: calico_test
+ database: shareabouts_test
pool: 5
- username: calico
+ username: shareabouts
password:
production:
adapter: postgresql
encoding: unicode
- database: calico_production
+ database: shareabouts_production
pool: 5
- username: calico
+ username: shareabouts
password:
View
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-Calico::Application.initialize!
+Shareabouts::Application.initialize!
@@ -1,4 +1,4 @@
-Calico::Application.configure do
+Shareabouts::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# In the development environment your application's code is reloaded on
@@ -1,4 +1,4 @@
-Calico::Application.configure do
+Shareabouts::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
@@ -1,4 +1,4 @@
-Calico::Application.configure do
+Shareabouts::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The test environment is used exclusively to run your application's
@@ -14,7 +14,7 @@
config.current_user_method { current_user } # auto-generated
# Set the admin name here (optional second array element will appear in a beautiful RailsAdmin red ©)
- config.main_app_name = ['Calico', 'Admin']
+ config.main_app_name = ['Shareabouts', 'Admin']
# or for a dynamic name:
# config.main_app_name = Proc.new { |controller| [Rails.application.engine_name.titleize, controller.params['action'].titleize] }
@@ -4,4 +4,4 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
-Calico::Application.config.secret_token = 'e66ab2a7535174091533e455620d35bdc79be4b0f39cef7421417726fd1b00e8bcfe8b46bbe3bdeaf7550380307cae318842cc6b91897231381a0126bfda7edc'
+Shareabouts::Application.config.secret_token = 'e66ab2a7535174091533e455620d35bdc79be4b0f39cef7421417726fd1b00e8bcfe8b46bbe3bdeaf7550380307cae318842cc6b91897231381a0126bfda7edc'
@@ -1,8 +1,8 @@
# Be sure to restart your server when you modify this file.
-Calico::Application.config.session_store :cookie_store, key: '_calico_session'
+Shareabouts::Application.config.session_store :cookie_store, key: '_shareabouts_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
-# Calico::Application.config.session_store :active_record_store
+# Shareabouts::Application.config.session_store :active_record_store
View
@@ -1,4 +1,4 @@
-Calico::Application.routes.draw do
+Shareabouts::Application.routes.draw do
mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'
devise_for :users

0 comments on commit 2197fdb

Please sign in to comment.