Skip to content

Commit

Permalink
Rename misc items from openfoodweb to openfoodnetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanM committed Oct 18, 2013
1 parent 89f93ca commit 34607ff
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .ruby-gemset
Original file line number Diff line number Diff line change
@@ -1 +1 @@
openfoodweb
openfoodnetwork
8 changes: 4 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 [email protected]:eaterprises/openfoodweb
git clone [email protected]:eaterprises/openfoodnetwork


## Get it running
Expand All @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/session_store.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
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
end
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
Original file line number Diff line number Diff line change
@@ -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 %>
4 changes: 2 additions & 2 deletions lib/tasks/dev.rake
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

namespace :openfoodweb do
namespace :openfoodnetwork do

namespace :dev do

desc 'load sample data'
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'
Expand Down

0 comments on commit 34607ff

Please sign in to comment.