Author: assaf
Date: Tue Nov 18 15:32:58 2008
New Revision: 718780
URL: http://svn.apache.org/viewvc?rev=718780&view=rev
Log:
Added Apache license to config/locale files
Added:
ode/sandbox/singleshot/config/initializers/version.rb
Removed:
ode/sandbox/singleshot/config/initializers/new_rails_defaults.rb
ode/sandbox/singleshot/config/initializers/singleshot.rb
Modified:
ode/sandbox/singleshot/config/environment.rb
ode/sandbox/singleshot/config/environments/development.rb
ode/sandbox/singleshot/config/environments/production.rb
ode/sandbox/singleshot/config/environments/test.rb
ode/sandbox/singleshot/config/initializers/libs.rb
ode/sandbox/singleshot/config/initializers/locale.rb
ode/sandbox/singleshot/config/initializers/mime_types.rb
ode/sandbox/singleshot/config/routes.rb
ode/sandbox/singleshot/lib/locale/en-US.yml
Modified: ode/sandbox/singleshot/config/environment.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/config/environment.rb?rev=718780&r1=718779&r2=718780&view=diff
==============================================================================
--- ode/sandbox/singleshot/config/environment.rb (original)
+++ ode/sandbox/singleshot/config/environment.rb Tue Nov 18 15:32:58 2008
@@ -1,31 +1,29 @@
-# Be sure to restart your web server when you modify this file.
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
-# Uncomment below to force Rails into production mode when
-# you don't control web/app server and can't set it the proper way
-# ENV['RAILS_ENV'] ||= 'production'
-# Specifies gem version of Rails to use when vendor/rails is not present
-#RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
+# Be sure to restart your web server when you modify this file.
+ENV['RAILS_ENV'] ||= 'production'
+# TODO: Uncomment this when we finally upgrade to Rails 2.2.
+# RAILS_GEM_VERSION = '2.2.0' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
- # Settings in config/environments/* take precedence over those specified
here.
- # Application configuration should go into files in config/initializers
- # -- all .rb files in that directory are automatically loaded.
- # See Rails::Configuration for more options.
-
- # Skip frameworks you're not going to use. To use Rails without a database
- # you must remove the Active Record framework.
- # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
-
- # Specify gems that this application depends on.
- # They can then be installed with rake gem:install on new installations.
- # config.gem "bj"
- # config.gem "hpricot", :version => '0.6', :source =>
"http://code.whytheluckystiff.net"
- # config.gem "aws-s3", :lib => "aws/s3"
config.gem 'rest-open-uri', :version=>'~>1.0'
config.gem 'rmagick', :lib=>'RMagick', :version=>'~>2.5'
config.gem 'sparklines', :version=>'~>0.5'
@@ -33,46 +31,25 @@
config.gem 'mislav-will_paginate', :lib=>'will_paginate',
:source=>'http://gems.github.com', :version=>'~>2.3'
- # Only load the plugins named here, in the order given. By default, all
plugins
- # in vendor/plugins are loaded in alphabetical order.
- # :all can be used as a placeholder for all plugins not explicitly named
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
config.plugins = [:all]
-
- # Add additional load paths for your own custom dirs
+ # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
# config.load_paths += %W( #{RAILS_ROOT}/extras )
- # Force all environments to use the same logger level
- # (by default production uses :info, the others :debug)
- # config.log_level = :debug
-
- # Make Time.zone default to the specified zone, and make ActiveRecord store
time values
- # in the database in UTC, and return them converted to the specified local
zone.
- # Run `rake -D time` for a list of tasks for finding time zone names.
Uncomment to use default local time.
config.time_zone = 'UTC'
-
- # Your secret key for verifying cookie session data integrity.
- # If you change this key, all old sessions 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.
config.action_controller.session = {
:session_key => '_singleshot_session',
:secret => File.read("#{Rails.root}/secret.key")
}
- # 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 'rake db:sessions:create')
- # config.action_controller.session_store = :active_record_store
-
- # Use SQL instead of Active Record's schema dumper when creating the test
database.
- # This is necessary if your schema can't be completely dumped by the schema
dumper,
- # like if you have constraints or database-specific column types
- # config.active_record.schema_format = :sql
-
- # Activate observers that should always be running
+ config.active_record.schema_format = :sql
+ config.active_record.partial_updates = true
# config.active_record.observers = :cacher, :garbage_collector
-
- # Make ActiveRecord only save the attributes that have changed since the
record was loaded.
- # config.active_record.partial_updates = true
+
+
+ # These settings change the behavior of Rails 2 apps and will be defaults
+ # for Rails 3. You can remove this initializer when Rails 3 is released.
+ config.active_record.include_root_in_json = true
+ config.active_record.store_full_sti_class = true
+ config.active_support.use_standard_json_time_format = true
+ config.active_support.escape_html_entities_in_json = false
end
Modified: ode/sandbox/singleshot/config/environments/development.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/config/environments/development.rb?rev=718780&r1=718779&r2=718780&view=diff
==============================================================================
--- ode/sandbox/singleshot/config/environments/development.rb (original)
+++ ode/sandbox/singleshot/config/environments/development.rb Tue Nov 18
15:32:58 2008
@@ -1,29 +1,29 @@
-# Settings specified here will take precedence over those in
config/environment.rb
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
-# In the development environment your application's code is reloaded on
-# every request. This slows down response time but is perfect for development
-# since you don't have to restart the webserver when you make code changes.
-config.cache_classes = false
-# Log error messages when you accidentally call methods on nil.
+config.cache_classes = false
config.whiny_nils = true
-
-# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
config.action_view.debug_rjs = true
config.action_controller.perform_caching = false
-
-# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
-
config.action_controller.allow_concurrency = true
-# These Gems are used for development.
config.gem 'annotate-models', :lib=>'annotate_models'
-#config.gem 'rspec', :lib=>'spec', :version=>'~> 1.1.4'
-# Faker: Used to populate development database with fake data.
-config.gem 'faker', :version=>'~>0.3'
-# SQLite3: Development and test databases use SQLite3 by default.
-config.gem 'sqlite3-ruby', :lib=>'sqlite3', :version=>'~>1.2'
-# Thin: Not essential, but development scripts (e.g. rake run) are hard wired
to use Thin.
-config.gem 'thin', :version=>'~>0.8'
+#config.gem 'rspec', :lib=>'spec', :version=>'~> 1.1.4'
+config.gem 'faker', :version=>'~>0.3' # Faker: Used
to populate development database with fake data.
+config.gem 'sqlite3-ruby', :lib=>'sqlite3', :version=>'~>1.2' # SQLite3:
Development and test databases use SQLite3 by default.
+config.gem 'thin', :version=>'~>0.8' # Thin: Not
essential, but development scripts (e.g. rake run) are hard wired to use Thin.
\ No newline at end of file
Modified: ode/sandbox/singleshot/config/environments/production.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/config/environments/production.rb?rev=718780&r1=718779&r2=718780&view=diff
==============================================================================
--- ode/sandbox/singleshot/config/environments/production.rb (original)
+++ ode/sandbox/singleshot/config/environments/production.rb Tue Nov 18
15:32:58 2008
@@ -1,22 +1,25 @@
-# Settings specified here will take precedence over those in
config/environment.rb
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
-# The production environment is meant for finished, "live" apps.
-# Code is not reloaded between requests
-config.cache_classes = true
-
-# Use a different logger for distributed setups
-# config.logger = SyslogLogger.new
-# Full error reports are disabled and caching is turned on
+config.cache_classes = true
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.action_view.cache_template_loading = true
-# Use a different cache store in production
-# config.cache_store = :mem_cache_store
-
-# Enable serving of images, stylesheets, and javascripts from an asset server
-# config.action_controller.asset_host =
"http://assets.example.com"
-# Disable delivery errors, bad email addresses will be ignored
+# config.cache_store = :mem_cache_store
+# config.action_controller.asset_host = "http://assets.example.com"
# config.action_mailer.raise_delivery_errors = false
Modified: ode/sandbox/singleshot/config/environments/test.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/config/environments/test.rb?rev=718780&r1=718779&r2=718780&view=diff
==============================================================================
--- ode/sandbox/singleshot/config/environments/test.rb (original)
+++ ode/sandbox/singleshot/config/environments/test.rb Tue Nov 18 15:32:58 2008
@@ -1,22 +1,22 @@
-# Settings specified here will take precedence over those in
config/environment.rb
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
-# The test environment is used exclusively to run your application's
-# test suite. You never need to work with it otherwise. Remember that
-# your test database is "scratch space" for the test suite and is wiped
-# and recreated between test runs. Don't rely on the data there!
-config.cache_classes = true
-# Log error messages when you accidentally call methods on nil.
+config.cache_classes = true
config.whiny_nils = true
-
-# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
-
-# Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false
-
-# Tell ActionMailer not to deliver emails to the real world.
-# The :test delivery method accumulates sent emails in the
-# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
Modified: ode/sandbox/singleshot/config/initializers/libs.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/config/initializers/libs.rb?rev=718780&r1=718779&r2=718780&view=diff
==============================================================================
--- ode/sandbox/singleshot/config/initializers/libs.rb (original)
+++ ode/sandbox/singleshot/config/initializers/libs.rb Tue Nov 18 15:32:58 2008
@@ -1,6 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+
require 'rest-open-uri'
-require 'acts_as_ferret'
-require File.join(Rails.root, 'lib/patches')
+#require 'acts_as_ferret'
require File.join(Rails.root, 'lib/extensions')
require File.join(Rails.root, 'lib/singleshot')
Modified: ode/sandbox/singleshot/config/initializers/locale.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/config/initializers/locale.rb?rev=718780&r1=718779&r2=718780&view=diff
==============================================================================
--- ode/sandbox/singleshot/config/initializers/locale.rb (original)
+++ ode/sandbox/singleshot/config/initializers/locale.rb Tue Nov 18 15:32:58
2008
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+
+# Load all the locale files for Singleshot (app and libraries).
Dir["#{Rails.root}/lib/locale/*.yml"].each do |path|
I18n.load_translations path
end
\ No newline at end of file
Modified: ode/sandbox/singleshot/config/initializers/mime_types.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/config/initializers/mime_types.rb?rev=718780&r1=718779&r2=718780&view=diff
==============================================================================
--- ode/sandbox/singleshot/config/initializers/mime_types.rb (original)
+++ ode/sandbox/singleshot/config/initializers/mime_types.rb Tue Nov 18
15:32:58 2008
@@ -1,6 +1,17 @@
-# Be sure to restart your server when you modify this file.
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
-# Mime::Type.register_alias "text/html", :iphone
Mime::Type.register 'application/opensearchdescription+xml', :osd
Added: ode/sandbox/singleshot/config/initializers/version.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/config/initializers/version.rb?rev=718780&view=auto
==============================================================================
--- ode/sandbox/singleshot/config/initializers/version.rb (added)
+++ ode/sandbox/singleshot/config/initializers/version.rb Tue Nov 18 15:32:58
2008
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+
+module Singleshot
+ VERSION = '0.1'.freeze
+end
Modified: ode/sandbox/singleshot/config/routes.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/config/routes.rb?rev=718780&r1=718779&r2=718780&view=diff
==============================================================================
--- ode/sandbox/singleshot/config/routes.rb (original)
+++ ode/sandbox/singleshot/config/routes.rb Tue Nov 18 15:32:58 2008
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+
ActionController::Routing::Routes.draw do |map|
map.resource 'session'
@@ -22,44 +38,7 @@
map.resource 'sandwich'
map.resource 'survey', :controller=>'survey'
-
- # The priority is based upon order of creation: first created -> highest
priority.
-
- # Sample of regular route:
- # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
- # Keep in mind you can assign values other than :controller and :action
-
- # Sample of named route:
- # map.purchase 'products/:id/purchase', :controller => 'catalog', :action
=> 'purchase'
- # This route can be invoked with purchase_url(:id => product.id)
-
- # Sample resource route (maps HTTP verbs to controller actions
automatically):
- # map.resources :products
-
- # Sample resource route with options:
- # map.resources :products, :member => { :short => :get, :toggle => :post
}, :collection => { :sold => :get }
-
- # Sample resource route with sub-resources:
- # map.resources :products, :has_many => [ :comments, :sales ], :has_one =>
:seller
-
- # Sample resource route with more complex sub-resources
- # map.resources :products do |products|
- # products.resources :comments
- # products.resources :sales, :collection => { :recent => :get }
- # end
-
- # Sample resource route within a namespace:
- # map.namespace :admin do |admin|
- # # Directs /admin/products/* to Admin::ProductsController
(app/controllers/admin/products_controller.rb)
- # admin.resources :products
- # end
-
- # You can have the root of your site routed with map.root -- just remember
to delete public/index.html.
- # map.root :controller => "welcome"
-
- # See how all your routes lay out with "rake routes"
-
# Install the default routes as the lowest priority.
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
-end
+end
\ No newline at end of file
Modified: ode/sandbox/singleshot/lib/locale/en-US.yml
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/lib/locale/en-US.yml?rev=718780&r1=718779&r2=718780&view=diff
==============================================================================
--- ode/sandbox/singleshot/lib/locale/en-US.yml (original)
+++ ode/sandbox/singleshot/lib/locale/en-US.yml Tue Nov 18 15:32:58 2008
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership. The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+
en-US:
activity:
index: