[Groonga-commit] groonga/gcs [master] addFragment -> frament

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 25日 (水) 17:05:36 JST


Yoji SHIDARA	2012-07-25 17:05:36 +0900 (Wed, 25 Jul 2012)

  New Revision: b3f95217e58cc720bfa827587330791e6eac4f04
  https://github.com/groonga/gcs/commit/b3f95217e58cc720bfa827587330791e6eac4f04

  Log:
    addFragment -> frament
    
    In order to fit with the other APIs of xmlbuilder-js

  Modified files:
    lib/api/2011-02-01/configuration.js
    lib/xmlbuilder.js

  Modified: lib/api/2011-02-01/configuration.js (+5 -5)
===================================================================
--- lib/api/2011-02-01/configuration.js    2012-07-25 17:00:47 +0900 (bc57098)
+++ lib/api/2011-02-01/configuration.js    2012-07-25 17:05:36 +0900 (08ed81d)
@@ -64,7 +64,7 @@ function createCreateDomainResponse(options) {
   doc.begin('CreateDomainResponse', { version: '1.0' })
     .attribute('xmlns', XMLNS)
     .element('CreateDomainResult')
-      .addFragment(createDomainStatus(options))
+      .fragment(createDomainStatus(options))
     .up()
     .element('ResponseMetadata')
       .element('RequestId').text(options.requestId || '').up()
@@ -102,7 +102,7 @@ function createDeleteDomainResponse(options) {
   doc.begin('DeleteDomainResponse', { version: '1.0' })
     .attribute('xmlns', XMLNS)
     .element('DeleteDomainResult')
-      .addFragment(createDomainStatus(options))
+      .fragment(createDomainStatus(options))
     .up()
     .element('ResponseMetadata')
       .element('RequestId').text(options.requestId || '').up()
@@ -166,7 +166,7 @@ function createIndexFieldStatus(options) {
     .element('Options')
       .element('IndexFieldName').text(options.fieldName).up()
       .element('IndexFieldType').text(options.fieldType).up()
-      .addFragment(createIndexFieldOptionStatus(options))
+      .fragment(createIndexFieldOptionStatus(options))
     .up()
     .element('Status')
       .element('CreationDate').text(dateFormat(options.createdAt,
@@ -184,7 +184,7 @@ function createDefineIndexFieldResponse(options) {
   doc.begin('DefineIndexFieldResponse', { version: '1.0' })
     .attribute('xmlns', XMLNS)
     .element('DefineIndexFieldResult')
-      .addFragment(createIndexFieldStatus(options))
+      .fragment(createIndexFieldStatus(options))
     .up()
     .element('ResponseMetadata')
       .element('RequestId').text(options.requestId || '').up()
@@ -254,7 +254,7 @@ function createIndexDocumentsResponse(options) {
     .attribute('xmlns', XMLNS)
     .element('IndexDocumentsResult')
       .element('FieldNames')
-        .addFragment(options.fieldNames.map(function(fieldName) {
+        .fragment(options.fieldNames.map(function(fieldName) {
           var member = new xmlbuilder.XMLFragment(null, 'member');
           member.text(fieldName);
           return member;

  Modified: lib/xmlbuilder.js (+1 -1)
===================================================================
--- lib/xmlbuilder.js    2012-07-25 17:00:47 +0900 (589febe)
+++ lib/xmlbuilder.js    2012-07-25 17:05:36 +0900 (1682cf7)
@@ -1,7 +1,7 @@
 module.exports = require('xmlbuilder');
 module.exports.XMLFragment = require('xmlbuilder/lib/XMLFragment');
 
-module.exports.XMLFragment.prototype.addFragment = function(fragments) {
+module.exports.XMLFragment.prototype.fragment = function(fragments) {
   if (fragments) {
     if (!Array.isArray(fragments))
       fragments = [fragments];
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



Groonga-commit メーリングリストの案内
Back to archive index