Browse Source

Merge pull request #3 from andreacampi/COOK-634

[COOK-634] Fix a minor typo in the documentation.
Joshua Timberman 12 years ago
parent
commit
a857837167
2 changed files with 2 additions and 2 deletions
  1. 1 1
      README.md
  2. 1 1
      resources/default.rb

+ 1 - 1
README.md

@@ -7,7 +7,7 @@ This cookbook is designed to be able to describe and deploy web applications. It
 * application\_nginx (nginx reverse proxy)
 * application\_php (PHP with mod\_php\_apache2)
 * application\_python (Django with Gunicorn)
-* application\_rails (Rails with Passenger or Unicorn)
+* application\_ruby (Rails with Passenger or Unicorn)
 
 Backward compatibility
 ----------------------

+ 1 - 1
resources/default.rb

@@ -100,7 +100,7 @@ def method_missing(name, *args, &block)
       break
     rescue NameError => e
       # Works on any MRI ruby
-      if e.name == resource_name.to_sym || e.inspect =~ /`#{resource_name}'/
+      if e.name == resource_name.to_sym || e.inspect =~ /\b#{resource_name}\b/
         next
       else
         raise e