[asterisk-commits] dlee: trunk r402982 - in /trunk: ./ rest-api-templates/make_ari_stubs.py

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 21 15:22:27 CST 2013


Author: dlee
Date: Thu Nov 21 15:22:26 2013
New Revision: 402982

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402982
Log:
ari: Fix generators for resources with camelCase names.

For the new deviceState resource, we need to properly generate
device_state.[ch] files.
........

Merged revisions 402981 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/rest-api-templates/make_ari_stubs.py

Propchange: trunk/
------------------------------------------------------------------------------
--- branch-12-merged (original)
+++ branch-12-merged Thu Nov 21 15:22:26 2013
@@ -1,1 +1,1 @@
-/branches/12:1-398558,398560-398577,398579-399305,399307-401390,401392-402738,402755,402757,402767,402769,402787,402793,402804,402817,402838,402864,402891,402926,402940-402941,402944,402956,402968
+/branches/12:1-398558,398560-398577,398579-399305,399307-401390,401392-402981

Modified: trunk/rest-api-templates/make_ari_stubs.py
URL: http://svnview.digium.com/svn/asterisk/trunk/rest-api-templates/make_ari_stubs.py?view=diff&rev=402982&r1=402981&r2=402982
==============================================================================
--- trunk/rest-api-templates/make_ari_stubs.py (original)
+++ trunk/rest-api-templates/make_ari_stubs.py Thu Nov 21 15:22:26 2013
@@ -47,11 +47,11 @@
     Transform(rel('api.wiki.mustache'),
               'doc/rest-api/%s {{name_title}} REST API.wiki' % WIKI_PREFIX),
     Transform(rel('res_ari_resource.c.mustache'),
-              'res/res_ari_{{name}}.c'),
+              'res/res_ari_{{c_name}}.c'),
     Transform(rel('ari_resource.h.mustache'),
-              'res/ari/resource_{{name}}.h'),
+              'res/ari/resource_{{c_name}}.h'),
     Transform(rel('ari_resource.c.mustache'),
-              'res/ari/resource_{{name}}.c', overwrite=False),
+              'res/ari/resource_{{c_name}}.c', overwrite=False),
 ]
 
 RESOURCES_TRANSFORMS = [




More information about the asterisk-commits mailing list