Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 038ffb58627785f60d32ee8454df61f98c4b4967 @pksunkara committed Oct 21, 2011
Showing with 131 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +5 −0 .npmignore
  3. +18 −0 LICENSE
  4. +1 −0 README.md
  5. +27 −0 package.json
  6. +26 −0 src/index.coffee
  7. +23 −0 src/version.coffee
  8. +26 −0 test/version-test.coffee
@@ -0,0 +1,5 @@
+node_modules
+npm-debug.log
+*.swp
+lib
+docs
@@ -0,0 +1,5 @@
+README.md
+.gitignore
+docs
+lib
+test
@@ -0,0 +1,18 @@
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
+# bullet-support
@@ -0,0 +1,27 @@
+{
+ "name": "bullet-support",
+ "description": "support for MVC framework with bullet speed",
+ "version": "1.0.0-rc1",
+ "author": "Pavan Kumar Sunkara <pavan.sss1991@gmail.com>",
+ "contributors": [
+ { "name": "Pavan Kumar Sunkara", "email": "pavan.sss1991@gmail.com" }
+ ],
+ "dependencies": {
+ "docco": "*",
+ "coffee-script": "*"
+ },
+ "devDependencies": {
+ "vows": "*"
+ },
+ "keywords": ["support", "framework", "rails", "web", "rest", "restful"],
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/bulletjs/support.git"
+ },
+ "main": "./lib/index",
+ "scripts": {
+ "test": "vows --spec",
+ "preinstall": "docco src/*.coffee && coffee -o lib -c src/*.coffee"
+ },
+ "engines": { "node": ">= 0.4.1 < 0.5.0" }
+}
@@ -0,0 +1,26 @@
+# Copyright (c) 2011 Pavan Kumar Sunkara
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+##Table of Contents
+module.exports =
+
+ # The [version](version.html) class gives bullet-support's version
+ Version: require './version'
@@ -0,0 +1,23 @@
+# The `Version` class defines the version of this package
+
+MAJOR = '1'
+MINOR = '0'
+TINY = '0'
+PRE = 'rc1'
+
+module.exports =
+
+ # _Major_ - Major version for major changes
+ MAJOR: MAJOR
+
+ # _Minor_ - Minor version for new features
+ MINOR: MINOR
+
+ # _Tiny_ - Tiny version for bug fixes
+ TINY: TINY
+
+ # _Pre_ - Pre version for development
+ PRE: PRE
+
+ # Module __version__
+ VERSION: [MAJOR, MINOR, TINY].join('.') + '-' + PRE
@@ -0,0 +1,26 @@
+vows = require 'vows'
+assert = require 'assert'
+
+vows
+ .describe('Test version of the module')
+ .addBatch
+ 'when we check the versions':
+ topic: require '../src/version'
+
+ 'we get':
+ 'MAJOR value of version': (topic) ->
+ assert.equal topic.MAJOR, '1'
+
+ 'MINOR value of version': (topic) ->
+ assert.equal topic.MINOR, '0'
+
+ 'TINY value of version': (topic) ->
+ assert.equal topic.TINY, '0'
+
+ 'PRE value of version': (topic) ->
+ assert.equal topic.PRE, 'rc1'
+
+ 'Value of version': (topic) ->
+ assert.equal topic.VERSION, '1.0.0-rc1'
+
+ .export(module)

0 comments on commit 038ffb5

Please sign in to comment.