Permalink
Browse files

Merge branch 'hotfix/demoscript'

  • Loading branch information...
gnomet committed Oct 11, 2012
2 parents e0d4da4 + 2a09c3d commit 64a8b6670490af65c190f97cb29b979fba82e5db
Showing with 10 additions and 4 deletions.
  1. +4 −0 RELEASE_NOTES.md
  2. +1 −1 VERSION
  3. BIN lib/demos/demo_data.fr.xls
  4. +5 −3 lib/tasks/sharetribe.rake
View
@@ -11,6 +11,10 @@ When updating, always run the following commands to update gem set and database
- rake RAILS_ENV=production db:migrate
- And check this file for changes between your old version and the one you are updating, and do the necessary manual operations if needed.
+2.3.4
+-----
+
+Bug fixes for demo script
2.3.3
-----
View
@@ -1 +1 @@
-2.3.3
+2.3.4
View
Binary file not shown.
@@ -157,12 +157,14 @@ namespace :sharetribe do
spreadsheet = load_spreadsheet(locale)
puts "Aborting" and return if spreadsheet.nil?
- Community.find_by_domain("#{locale}-demo").destroy
+ c = Community.find_by_domain("#{locale}-demo")
+ c.destroy if c
user_sheet = spreadsheet.worksheet "Users"
user_sheet.each 1 do |row|
- if row[1].present?
- Person.find_by_username(row[1]).destroy
+ if row[4].present?
+ p = Person.find_by_username(row[4])
+ p.destroy if p
end
end
end

0 comments on commit 64a8b66

Please sign in to comment.