summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-09-12 13:12:36 +0200
committerhukl <contact@smyck.org>2009-09-12 13:12:36 +0200
commit1e110b74e2202ab0550550d0d446e7d29aba7146 (patch)
tree63caa7ff44c3a7aff3898f912311bacbb3508ce6
parentfe551453149f302eabd3e484d7ef69413c596656 (diff)
added another gem requirement and updated the chaos_importer task to work with the current node validations
-rw-r--r--config/environment.rb1
-rw-r--r--lib/chaos_importer.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/config/environment.rb b/config/environment.rb
index ff2b5ae..bff2a70 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -22,6 +22,7 @@ Rails::Initializer.run do |config|
22 22
23 # config.gem "rake", :version => ">= 0.8.3" 23 # config.gem "rake", :version => ">= 0.8.3"
24 # config.gem "rack", :version => ">= 0.9.1" 24 # config.gem "rack", :version => ">= 0.9.1"
25 config.gem "nokogiri"
25 config.gem "libxml-ruby", :lib => 'xml' 26 config.gem "libxml-ruby", :lib => 'xml'
26 config.gem "erdgeist-chaos_calendar", :lib => "chaos_calendar", :source => "http://gems.github.com" 27 config.gem "erdgeist-chaos_calendar", :lib => "chaos_calendar", :source => "http://gems.github.com"
27 28
diff --git a/lib/chaos_importer.rb b/lib/chaos_importer.rb
index cb54093..db2a96b 100644
--- a/lib/chaos_importer.rb
+++ b/lib/chaos_importer.rb
@@ -20,7 +20,7 @@ class ChaosImporter
20 20
21 def initialize path 21 def initialize path
22 unless Node.root 22 unless Node.root
23 Node.create! 23 Node.create! :slug => "root"
24 end 24 end
25 25
26 @directory = path 26 @directory = path