[Groonga-commit] nroonga/nroonga [master] use 'nroonga'

Back to archive index

null+****@clear***** null+****@clear*****
2011年 11月 15日 (火) 15:53:46 JST


Yoji SHIDARA	2011-11-15 06:53:46 +0000 (Tue, 15 Nov 2011)

  New Revision: 95a95d565b162e6c7aa3ce933f0789e457305f39

  Log:
    use 'nroonga'

  Modified files:
    examples/prompt.coffee
    examples/test.js
    test/database.test.coffee
    wscript
  Renamed files:
    src/nroonga.cc
      (from src/groonga.cc)
    src/nroonga.h
      (from src/groonga.h)

  Modified: examples/prompt.coffee (+3 -3)
===================================================================
--- examples/prompt.coffee    2011-11-15 04:49:57 +0000 (ddec617)
+++ examples/prompt.coffee    2011-11-15 06:53:46 +0000 (bb9ca05)
@@ -1,10 +1,10 @@
-Groonga = require('../build/Release/groonga.node')
+Nroonga = require('../build/Release/nroonga.node')
 readline = require('readline')
 
 db = if process.argv.length > 2
-  new Groonga.Database(process.argv[2])
+  new Nroonga.Database(process.argv[2])
 else
-  new Groonga.Database()
+  new Nroonga.Database()
 
 rl = readline.createInterface(process.stdin, process.stdout)
 prefix = '> '

  Modified: examples/test.js (+2 -2)
===================================================================
--- examples/test.js    2011-11-15 04:49:57 +0000 (e31691a)
+++ examples/test.js    2011-11-15 06:53:46 +0000 (4402a2e)
@@ -1,6 +1,6 @@
-Groonga = require('../build/Release/groonga.node')
+Nroonga = require('../build/Release/nroonga.node')
 
-db = new Groonga.Database()
+db = new Nroonga.Database()
 
 db.command('status', function(error, data) {
   console.log(data);

  Renamed: src/nroonga.cc (+5 -5) 96%
===================================================================
--- src/groonga.cc    2011-11-15 04:49:57 +0000 (c01a6c6)
+++ src/nroonga.cc    2011-11-15 06:53:46 +0000 (ac8a6a1)
@@ -1,9 +1,9 @@
 #include <v8.h>
 #include <node.h>
 #include <groonga/groonga.h>
-#include "groonga.h"
+#include "nroonga.h"
 
-namespace node_groonga {
+namespace nroonga {
 
 using namespace v8;
 
@@ -170,13 +170,13 @@ Handle<Value> Database::CommandSync(const Arguments& args) {
   return scope.Close(String::New(result, result_length));
 }
 
-void InitGroonga(Handle<Object> target) {
+void InitNroonga(Handle<Object> target) {
   HandleScope scope;
   grn_init();
 
   Database::Initialize(target);
 }
 
-} // namespace node_groonga
+} // namespace nroonga
 
-NODE_MODULE(groonga, node_groonga::InitGroonga);
+NODE_MODULE(nroonga, nroonga::InitNroonga);

  Renamed: src/nroonga.h (+3 -3) 91%
===================================================================
--- src/groonga.h    2011-11-15 04:49:57 +0000 (0784893)
+++ src/nroonga.h    2011-11-15 06:53:46 +0000 (59aeccf)
@@ -10,7 +10,7 @@
 using namespace v8;
 using namespace node;
 
-namespace node_groonga {
+namespace nroonga {
 
 class Database : ObjectWrap {
   grn_ctx context;
@@ -47,7 +47,7 @@ class Database : ObjectWrap {
     static void CommandAfter(uv_work_t* req);
 };
 
-void InitGroonga(v8::Handle<v8::Object> target);
+void InitNroonga(v8::Handle<v8::Object> target);
 
-} // namespace node_groonga
+} // namespace nroonga
 #endif

  Modified: test/database.test.coffee (+3 -3)
===================================================================
--- test/database.test.coffee    2011-11-15 04:49:57 +0000 (8b67ade)
+++ test/database.test.coffee    2011-11-15 06:53:46 +0000 (ef81aee)
@@ -1,13 +1,13 @@
-Groonga = require('../build/Release/groonga.node')
+Nroonga = require('../build/Release/nroonga.node')
 
 module.exports =
   'get groonga status by Database#commandSync': (beforeExit, assert) ->
-    db = new Groonga.Database()
+    db = new Nroonga.Database()
     status = JSON.parse(db.commandSync('status'))
     assert.isDefined status.version
 
   'get groonga status by Database#command': (beforeExit, assert) ->
-    db = new Groonga.Database()
+    db = new Nroonga.Database()
     status = null
     db.command 'status', (error, data) ->
       status = JSON.parse(data)

  Modified: wscript (+2 -2)
===================================================================
--- wscript    2011-11-15 04:49:57 +0000 (d718036)
+++ wscript    2011-11-15 06:53:46 +0000 (17739b6)
@@ -9,6 +9,6 @@ def configure(conf):
 def build(bld):
   obj = bld.new_task_gen("cxx", "shlib", "node_addon")
   obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]
-  obj.target = "groonga"
-  obj.source = "src/groonga.cc"
+  obj.target = "nroonga"
+  obj.source = "src/nroonga.cc"
   obj.uselib = ["GROONGA"]




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