Permalink
Browse files

just setting up structure for the environment

  • Loading branch information...
1 parent 1480cb5 commit a9f576c3cae6e183b889b6c4595830c3604d82f6 @davehamptonusa committed Jan 14, 2012
Showing with 80 additions and 2 deletions.
  1. +2 −0 .gitignore
  2. +22 −0 LICENSE
  3. +34 −0 README.md
  4. +3 −0 index.js
  5. +6 −2 package.json
  6. +13 −0 test/writable.js
View
@@ -0,0 +1,2 @@
+node_modules/
+node_modules/*
View
22 LICENSE
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) 2009-2011 David Hampton <david.hampton@gmail.com>
+
+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.
View
@@ -0,0 +1,34 @@
+is => maps to writable
+
+
+isa => $type_name
+The isa option uses Moose's type constraint facilities to set up runtime type checking for this attribute. Moose will perform the checks during class construction, and within any accessors. The $type_name argument must be a string. The string may be either a class name or a type defined using Moose's type definition features. (Refer to Moose::Util::TypeConstraints for information on how to define a new type, and how to retrieve type meta-data).
+
+required => (1|0)
+This marks the attribute as being required. This means a value must be supplied during class construction, or the attribute must be lazy and have either a default or a builder. Note that c<required> does not say anything about the attribute's value, which can be undef.
+
+
+lazy => (1|0)??
+This will tell the class to not create this slot until absolutely necessary. If an attribute is marked as lazy it must have a default or builder supplied.
+
+trigger => $code
+The trigger option is a CODE reference which will be called after the value of the attribute is set. The CODE ref is passed the instance itself, the updated value, and the original value if the attribute was already set.
+
+wrap
+
+handles => ARRAY | HASH | REGEXP | ROLE | ROLETYPE | DUCKTYPE | CODE
+
+builder => Str
+The value of this key is the name of the method that will be called to obtain the value used to initialize the attribute. See the builder option docs in Class::MOP::Attribute and/or Moose::Cookbook::Basics::Recipe8 for more information.
+
+default => SCALAR | CODE
+The value of this key is the default value which will initialize the attribute.
+
+
+clearer => Str
+Creates a method allowing you to clear the value. See the clearer option docs in Class::MOP::Attribute for more information.
+
+predicate => Str
+Creates a method to perform a basic test to see if a value has been set in the attribute. See the predicate option docs in Class::MOP::Attribute for more information.
+
+
View
@@ -0,0 +1,3 @@
+module.exports = function(nodeApps, perlLibs) {
+
+}
View
@@ -13,6 +13,10 @@
"engines": {
"node": ">=0.4.12"
},
- "dependencies": {},
- "devDependencies": {}
+ "dependencies": {
+ "underscore": '1.3.0'
+ },
+ "devDependencies": {
+ "tap": "<= 0.1.3"
+ }
}
View
@@ -0,0 +1,13 @@
+var test = require("tap").test,
+ perlReport = require('../lib/methods/lib/perlReport');
+
+test("methods", { skip:false }, function (t) {
+ t.plan(4);
+ t.ok(true, "true is ok -- all is right with the universe");
+ t.equal(typeof perlReport, 'function', "perlReport is a function");
+ function responseReceiver(error, result) {
+ t.equal(typeof result, 'object', "result is an object");
+ t.ok(result.version, "result.version is ok");
+ }
+ perlReport('/home/')(responseReceiver);
+});

0 comments on commit a9f576c

Please sign in to comment.