Rename misc items from openfoodweb to openfoodnetwork

This commit is contained in:
Rohan Mitchell
2013-10-18 17:43:59 +11:00
parent 89f93cae77
commit 34607ff556
6 changed files with 12 additions and 12 deletions

View File

@@ -1 +1 @@
openfoodweb
openfoodnetwork

View File

@@ -1,4 +1,4 @@
# Open Food Web
# Open Food Network
Connect suppliers (ie. farmers), distributors (ie. co-ops) and
consumers (ie. local food lovers) for the sale and purchase of local
@@ -21,11 +21,11 @@ hosted at GitHub.
You can view the code at:
https://github.com/eaterprises/openfoodweb
https://github.com/eaterprises/openfoodnetwork
You can download the source with the command:
git clone git@github.com:eaterprises/openfoodweb
git clone git@github.com:eaterprises/openfoodnetwork
## Get it running
@@ -46,7 +46,7 @@ Create the development and test databases, using the settings specified in `conf
Load some default data for your environment
rake openfoodweb:dev:load_sample_data
rake openfoodnetwork:dev:load_sample_data
At long last, your dreams of spinning up a development server can be realised:

View File

@@ -1,6 +1,6 @@
# Be sure to restart your server when you modify this file.
Openfoodnetwork::Application.config.session_store :cookie_store, key: '_openfoodweb_session'
Openfoodnetwork::Application.config.session_store :cookie_store, key: '_openfoodnetwork_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information

View File

@@ -1,8 +1,8 @@
class RemoveShippingMethodsUsingItemwiseCalculator < ActiveRecord::Migration
class OpenFoodWeb::Calculator::Itemwise < Spree::Calculator; end
class OpenFoodNetwork::Calculator::Itemwise < Spree::Calculator; end
def up
Spree::ShippingMethod.all.select { |sm| sm.calculator.type == 'OpenFoodWeb::Calculator::Itemwise' }.each do |sm|
Spree::ShippingMethod.all.select { |sm| sm.calculator.type == 'OpenFoodNetwork::Calculator::Itemwise' }.each do |sm|
say "Destroying itemwise shipping method with id #{sm.id}"
sm.destroy
@@ -10,6 +10,6 @@ class RemoveShippingMethodsUsingItemwiseCalculator < ActiveRecord::Migration
end
def down
Spree::ShippingMethod.create!({name: 'Delivery', zone: Spree::Zone.last, calculator: OpenFoodWeb::Calculator::Itemwise.new}, without_protection: true)
Spree::ShippingMethod.create!({name: 'Delivery', zone: Spree::Zone.last, calculator: OpenFoodNetwork::Calculator::Itemwise.new}, without_protection: true)
end
end

View File

@@ -1,3 +1,3 @@
<!-- insert_bottom '#footer-left p' -->
| <%= link_to 'Terms and Conditions', "http://www.localorg.com.au/contactterms-and-conditions.html" %>
| <%= link_to "http://openfoodweb.org/foundation" do %><%= image_tag 'ofw.png', alt: 'Open Food Web Foundation' %><% end %>
| <%= link_to "http://openfoodweb.org/foundation" do %><%= image_tag 'ofw.png', alt: 'Open Food Foundation' %><% end %>

View File

@@ -1,5 +1,5 @@
namespace :openfoodweb do
namespace :openfoodnetwork do
namespace :dev do
@@ -7,7 +7,7 @@ namespace :openfoodweb do
task :load_sample_data => :environment do
require File.expand_path('../../../spec/factories', __FILE__)
require File.expand_path('../../../spec/support/spree/init', __FILE__)
task_name = "openfoodweb:dev:load_sample_data"
task_name = "openfoodnetwork:dev:load_sample_data"
# -- Shipping / payment information
unless Spree::Zone.find_by_name 'Australia'