Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 033a47d28447070cd7058bc4afb5b0675b1b727c nickolay committed Jul 6, 2010
Showing with 307 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +6 −0 Changes
  3. +13 −0 Components.JS
  4. +73 −0 dist.ini
  5. +16 −0 lib/KiokuJS/Backend/CouchDB.js
  6. +128 −0 lib/KiokuJS/Backend/CouchDB.mmd
  7. +16 −0 t/010_sanity.t.js
  8. +14 −0 t/index.html
  9. +37 −0 t/index.js
@@ -0,0 +1,4 @@
+.build
+.project
+.externalToolBuilders
+KiokuJS-Backend-CouchDB-*
@@ -0,0 +1,6 @@
+Release history for KiokuJS.Backend.CouchDB
+
+{{$NEXT}}
+
+ First version, released on an unsuspecting world.
+
@@ -0,0 +1,13 @@
+COMPONENTS = {
+ // a comment
+
+ "Core" : [
+ "KiokuJS.Backend.CouchDB"
+ ],
+
+
+ "Bundle" : [
+ "jsan:Task.Joose.Core",
+ "+Core"
+ ]
+}
@@ -0,0 +1,73 @@
+name = KiokuJS-Backend-CouchDB
+abstract = Some clever yet compact description
+
+author = Nickolay Platonov <nplatonov@cpan.org>
+license = LGPL_3_0
+copyright_holder = Nickolay Platonov <nplatonov@cpan.org>
+
+
+; version provider
+[BumpVersionFromGit]
+first_version = 0.01
+
+
+; choose/generate files to include
+
+[GatherDir]
+[PruneCruft]
+[ManifestSkip]
+[License]
+
+; build system
+
+[ExecDir]
+[ShareDir]
+
+
+; JSAN-specific configuration
+[JSAN] ; includes META.JSON generation
+docs_markup = mmd ; default
+static_dir = static ; default
+
+[JSAN::ReadmeFromMD] ; should be after docs generation
+[JSAN::InstallInstructions] ; add INSTALL file, describing the installation process
+[JSAN::Bundle] ; after docs generation to avoid docs for bundles
+
+; manifest (after all generated files)
+[Manifest]
+
+
+; before release
+
+[Git::Check]
+[CheckChangesHasContent]
+
+; [TestRelease] todo
+[ConfirmRelease]
+
+; releaser
+[JSAN::Upload] ; just a no-op for now
+
+; after release
+[Git::Commit / Commit_Dirty_Files]
+
+[Git::Tag]
+
+[NextRelease]
+format = %-9v %{yyyy-MM-dd HH:mm}d
+
+[Git::Commit / Commit_Changes]
+
+[Git::Push]
+push_to = origin
+
+[Twitter]
+tweet_url = http://openjsan.org/go/?l={{ my $dist = $DIST; $dist =~ s/-/./g; $dist; }}
+tweet = Released {{$DIST}}-{{$VERSION}} {{$URL}}
+hash_tags = #jsan
+
+; prerequisites
+
+[JSAN::Prereq]
+Joose = 3.001
+Cool.Module = 0.01
@@ -0,0 +1,16 @@
+Class('KiokuJS.Backend.CouchDB', {
+
+ use : [ ],
+
+
+ has : {
+
+
+ },
+
+
+ methods : {
+
+ }
+
+})
@@ -0,0 +1,128 @@
+Name
+====
+
+KiokuJS.Backend.CouchDB - Some clever yet compact description
+
+
+SYNOPSIS
+========
+
+ // declaring our class
+ Class('KiokuJS.Backend.CouchDB', {
+
+ })
+
+ // then instantiating it
+ var instance = new KiokuJS.Backend.CouchDB({
+ })
+
+ // and doing something totally awesome with it :D
+ instance.method(param1, param2)
+
+
+
+DESCRIPTION
+===========
+
+`KiokuJS.Backend.CouchDB` is a stub for Joose-orientied JSAN modules.
+
+
+ISA
+===
+
+None.
+
+
+DOES
+====
+
+None.
+
+
+TRAITS
+======
+
+None.
+
+
+
+ATTRIBUTES
+==========
+
+### attributeName
+
+> `AttributeType attributeName`
+
+> Attribute description
+
+
+METHODS
+=======
+
+### methodName
+
+> `method signature`
+
+> Method description
+
+
+EXAMPLES
+========
+
+Our class can be used like this:
+
+ // then instantiating it
+ var instance = new KiokuJS.Backend.CouchDB({
+ })
+
+and like that:
+
+ // then instantiating it
+ var instance = new KiokuJS.Backend.CouchDB({
+ })
+
+
+GETTING HELP
+============
+
+This extension is supported via github issues tracker: <http://github.com/SamuraiJack/Module-Stub/issues>
+
+For general Joose questions you can also visit [#joose](http://webchat.freenode.net/?randomnick=1&channels=joose&prompt=1)
+on irc.freenode.org or the forum at: <http://joose.it/forum>
+
+
+
+SEE ALSO
+========
+
+Web page of this module: <http://github.com/SamuraiJack/Module-Stub/>
+
+General documentation for Joose: <http://openjsan.org/go/?l=Joose>
+
+
+BUGS
+====
+
+All complex software has bugs lurking in it, and this module is no exception.
+
+Please report any bugs through the web interface at <http://github.com/SamuraiJack/Module-Stub/issues>
+
+
+
+AUTHORS
+=======
+
+Nickolay Platonov <nplatonov@cpan.org>
+
+
+
+
+
+COPYRIGHT AND LICENSE
+=====================
+
+This software is Copyright (c) 2010 by Nickolay Platonov <nplatonov@cpan.org>.
+
+This is free software, licensed under:
+
+ The GNU Lesser General Public License, Version 3, June 2007
@@ -0,0 +1,16 @@
+StartTest(function(t) {
+
+ t.plan(1)
+
+ var async0 = t.beginAsync()
+
+ use('KiokuJS.Backend.CouchDB', function () {
+
+ //======================================================================================================================================================================================================================================================
+ t.diag('Sanity')
+
+ t.ok(KiokuJS.Backend.CouchDB, "KiokuJS.Backend.CouchDB is here")
+
+ t.endAsync(async0)
+ })
+})
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+ <head>
+ <link rel="stylesheet" type="text/css" href="/jsan/Task/ExtJS/resources/css/ext-all.css">
+ <link rel="stylesheet" type="text/css" href="/jsan/Test/Run/static/css/all.css">
+
+ <script type="text/javascript" src="/jsan/Task/Test/Run/WebBundle.js"></script>
+
+ <script type="text/javascript" src="index.js"></script>
+ </head>
+
+ <body>
+ </body>
+</html>
@@ -0,0 +1,37 @@
+var Harness
+
+if (typeof process != 'undefined' && process.pid) {
+ require('Task/Test/Run/NodeJSBundle')
+
+ Harness = Test.Run.Harness.NodeJS
+} else
+ Harness = Test.Run.Harness.Browser.ExtJS
+
+
+var INC = [ '../lib', '/jsan' ]
+
+
+Harness.configure({
+ title : 'KiokuJS.Backend.CouchDB Test Suite',
+
+ preload : Joose.is_NodeJS ? [
+ "jsan:Task.Joose.Core",
+ "jsan:Task.JooseX.Namespace.Depended.NodeJS",
+ {
+ text : "JooseX.Namespace.Depended.Manager.my.INC = " + JSON.stringify(INC)
+ }
+
+ ] : [
+ "jsan:Task.Joose.Core",
+ "jsan:JooseX.SimpleRequest",
+ "jsan:Task.JooseX.Namespace.Depended.Web",
+ {
+ text : "JooseX.Namespace.Depended.Manager.my.INC = " + Ext.encode(Harness.absolutizeINC(INC))
+ }
+ ]
+})
+
+
+Harness.start(
+ '010_sanity.t.js'
+)

0 comments on commit 033a47d

Please sign in to comment.