You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by em...@gmail.com on 2011/10/24 21:10:32 UTC

[PATCH] fix the use of camelize method so that the first character is not capped

From: Tong Li <li...@us.ibm.com>

---
 server/views/cimi/cloudEntryPoint/index.xml.haml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/views/cimi/cloudEntryPoint/index.xml.haml b/server/views/cimi/cloudEntryPoint/index.xml.haml
index c39a34d..85cdb4a 100644
--- a/server/views/cimi/cloudEntryPoint/index.xml.haml
+++ b/server/views/cimi/cloudEntryPoint/index.xml.haml
@@ -5,5 +5,5 @@
   %description cloud entry point
   %created= Time.new.getutc.to_s
   - @collections.each do |api|
-    - res_name = api[0].to_s.camelize
+    - res_name = api[0].to_s.camelize(true)
     = "<#{res_name} href=\"#{api[1]}\"/>"
-- 
1.7.4.1


Re: [PATCH] fix the use of camelize method so that the first character is not capped

Posted by Michal Fojtik <mf...@redhat.com>.
On Oct 24, 2011, at 9:10 PM, email4tong@gmail.com wrote:

> From: Tong Li <li...@us.ibm.com>
> 
> ---
> server/views/cimi/cloudEntryPoint/index.xml.haml |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/server/views/cimi/cloudEntryPoint/index.xml.haml b/server/views/cimi/cloudEntryPoint/index.xml.haml
> index c39a34d..85cdb4a 100644
> --- a/server/views/cimi/cloudEntryPoint/index.xml.haml
> +++ b/server/views/cimi/cloudEntryPoint/index.xml.haml
> @@ -5,5 +5,5 @@
>   %description cloud entry point
>   %created= Time.new.getutc.to_s
>   - @collections.each do |api|
> -    - res_name = api[0].to_s.camelize
> +    - res_name = api[0].to_s.camelize(true)

ACK. Instead of 'true' we can use something like :lowercase_first_letter to be more descriptive
what this 'true' means. 

I will push this.

  -- Michal

>     = "<#{res_name} href=\"#{api[1]}\"/>"
> -- 
> 1.7.4.1
> 

------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com
Deltacloud API: http://deltacloud.org