Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[ ! ] Updated to Node 0.6

  • Loading branch information...
commit 2cc0de993899d3da6369b4696ef5c0b829d0b67a 1 parent b77f06f
@pnegri authored
View
22 lib/arcabouco_modules/objectpool.coffee
@@ -60,10 +60,13 @@ class ArcaboucoObjectPool
console.log 'JS compilation started'
- c = 0
- buildReady = () ->
- c = c-1
- if c == 0
+ commands = []
+
+ buildReady = (error,a,b) ->
+ if commands.length > 0
+ cmd = commands.pop()
+ exec cmd, [], buildReady
+ else if commands.length == 0
console.log('JS generation ready')
for pieceDetails in piecesByPriority
@@ -90,16 +93,17 @@ class ArcaboucoObjectPool
file_exists = false
unless file_exists
- c = c+1
if pieceFilename.indexOf(".js") != -1
- exec "cp #{pieceFilename} #{target_filename}", [], buildReady
+ commands.push( "cp #{pieceFilename} #{target_filename}" )
else if pieceFilename.indexOf(".coffee") != -1
- exec "coffee --compile -p #{pieceFilename} > #{target_filename}", [], buildReady
+ commands.push( "coffee --compile -p #{pieceFilename} > #{target_filename}" )
application.Content.putContentFor 'head',
"<script src=\"/cdn/js/#{target_base_filename}\"></script>", { priority: pieceDetails.priority }
- if c == 0
- console.log 'JS generation ready'
+ if (commands.length)
+ buildReady()
+ else
+ console.log "Skiped Pre-Proccess Assets"
module.exports = ArcaboucoObjectPool
View
3  lib/arcabouco_modules/request.coffee
@@ -1,5 +1,8 @@
Common = require __dirname + '/../common'
+Common.Http.globalAgent.maxSockets = 1024
+Common.Https.globalAgent.maxSockets = 1024
+
class ArcaboucoRequest
routeToMethod: []
avaiableRoutes: []
View
1  lib/common.coffee
@@ -12,6 +12,7 @@
Common =
Os : require 'os'
Http : require 'http'
+ Https: require 'https'
Fs : require 'fs'
Path : require 'path'
Url : require 'url'
View
4 package.json
@@ -1,7 +1,7 @@
{
"name" : "arcabouco-js",
"description" : "scalable microframework in node.js",
- "version" : "0.8.9",
+ "version" : "0.9.0",
"author" : "Patrick Negri <patrick@iugu.com.br>",
"homepage": "http://github.com/pnegri/arcabouco-js",
"contributors" : [],
@@ -27,5 +27,5 @@
"type":"git",
"url":"git://github.com/pnegri/arcabouco-js.git"
},
- "engines" : { "node" : ">= 0.4.0 < 1.0.0" }
+ "engines" : { "node" : ">= 0.6.0 < 1.0.0" }
}
Please sign in to comment.
Something went wrong with that request. Please try again.