Skip to content

Commit

Permalink
- re-packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
canonic-epicure committed Sep 10, 2011
1 parent 71c46d3 commit daa94f6
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 18 deletions.
9 changes: 6 additions & 3 deletions dist.ini
Expand Up @@ -23,6 +23,7 @@ first_version = 0.0.1

[GatherDir]
follow_symlinks = 1
follow_skip = 2
[PruneCruft]
[License]

Expand All @@ -41,18 +42,20 @@ static_dir = static ; default
[JSAN::ReadmeFromMD] ; should be after docs generation

[JSAN::InstallInstructions] ; add INSTALL file, describing the installation process
[NPM::Bundle] ; after docs generation to avoid docs for bundles
[Web::Bundle] ; after docs generation to avoid docs for bundles


;=========================================================================
; `npm` configuration - package.json generation

[NPM::Package]
[Web::NPM::Package]
main = joosex-namespace-depended-all.js

dependency = joose >= 3.16.0
;dependency = joosex-meta-lazy >= 0.3.1
;dependency = joosex-simplerequest >= 0.2.1
dependency = joosex-simplerequest >= 0.2.1

devDependency = test-run


;=========================================================================
Expand Down
4 changes: 4 additions & 0 deletions lib/JooseX/Namespace/Depended.js
Expand Up @@ -132,12 +132,16 @@ Role('JooseX.Namespace.Depended', {

//gathering resourses from own attributes
if (extend.has) Joose.O.each(extend.has, function (attr, name) {
// do not try to collect the dependencies when class is given as init value
if (Joose.O.isClass(attr)) return

me.collectClassDeps(attr, summaredDeps)
})

//gathering resourses from attributes of `my`
if (extendMy && extendMy.has) Joose.O.each(extendMy.has, function (attr, name) {
// do not try to collect the dependencies when class is given as init value
if (Joose.O.isClass(attr)) return

me.collectClassDeps(attr, summaredDeps)
})
Expand Down
2 changes: 1 addition & 1 deletion lib/JooseX/Namespace/Depended/Manager.js
Expand Up @@ -4,7 +4,7 @@ Class('JooseX.Namespace.Depended.Manager', {

have : {

INC : Joose.is_NodeJS ? require.paths : [ 'lib', '/jsan' ],
INC : [ 'lib', '/jsan' ],

disableCaching : true,

Expand Down
9 changes: 6 additions & 3 deletions lib/JooseX/Namespace/Depended/Materialize/NodeJS.js
Expand Up @@ -7,12 +7,15 @@ Role('JooseX.Namespace.Depended.Materialize.NodeJS', {
materialize : function (resourceBlob, url) {

if (global.__PROVIDER__)
// running in Test.Run
execScript(resourceBlob + '')
// require('vm').runInThisContext(resourceBlob + '', url)

// // running in Test.Run
//
eval(resourceBlob + '')

else
// global scope
process.binding('evals').Script.runInThisContext('(function (exports, require, module, __filename, __dirname) {' + resourceBlob + '})', url)(exports, require, module, __filename, __dirname)
require('vm').runInThisContext('(function (exports, require, module, __filename, __dirname) {' + resourceBlob + '})', url)(exports, require, module, __filename, __dirname)
}
}
})
Expand Down
1 change: 0 additions & 1 deletion node_modules/joose

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/joosex-simplerequest

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/test-run

This file was deleted.

16 changes: 8 additions & 8 deletions t/index.js
@@ -1,11 +1,10 @@
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

if (typeof process != 'undefined' && process.pid)
Harness = require('test-run')
else
Harness = Test.Run.Harness.Browser


Harness.configure({
Expand Down Expand Up @@ -64,6 +63,7 @@ Harness.start(
'120_dep_from_static_files.t.js',
'121_preloaded_dep_from_static_files.t.js',
'130_dependencies_in_has.t.js',
'140_deps_in_classes_from_modules.t.js',
'150_indirect_eval.t.js'
'140_deps_in_classes_from_modules.t.js'
// ,
// '150_indirect_eval.t.js'
)

0 comments on commit daa94f6

Please sign in to comment.