lib/generators/abstractor/install/install_generator.rb in abstractor-2.1.2 vs lib/generators/abstractor/install/install_generator.rb in abstractor-4.0.0
- old
+ new
@@ -58,10 +58,10 @@
unless options["install-stanford-core-nlp"]
puts "Running rake abstractor:setup:stanford_core_nlp"
puts 'Please be patient...this could take a while.'
`rake abstractor:setup:stanford_core_nlp`
- insert_into_file("#{Rails.root}/config/environments/development.rb", :after => /::Application.configure do\n/) do
+ insert_into_file("#{Rails.root}/config/environments/development.rb", :after => /(::Application.configure do\n|application.configure do\n)/) do
' StanfordCoreNLP.use :english
StanfordCoreNLP.model_files = {}
StanfordCoreNLP.jar_path = "#{Rails.root}/lib/stanford-corenlp-full-2014-06-16/"
StanfordCoreNLP.model_path = "#{Rails.root}/lib/stanford-corenlp-full-2014-06-16/"
StanfordCoreNLP.default_jars = [
\ No newline at end of file