arcabouco 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +4 -0
- data/Rakefile +28 -0
- data/bin/arcabouco +24 -0
- data/lib/arcabouco/application.rb +17 -0
- data/lib/arcabouco/base.rb +20 -0
- data/lib/arcabouco/cmd.rb +53 -0
- data/lib/arcabouco/compass.rb +13 -0
- data/lib/arcabouco/server.rb +114 -0
- data/lib/arcabouco/version.rb +3 -0
- data/lib/arcabouco.rb +7 -0
- data/lib/assets/css/adaptative-mixins.sass +50 -0
- data/lib/assets/css/app.css +8 -0
- data/lib/assets/css/arcabouco-entry.sass +9 -0
- data/lib/assets/css/base.css +0 -0
- data/lib/assets/css/core.sass +13 -0
- data/lib/assets/css/mixins.sass +28 -0
- data/lib/assets/css/no-js.sass +16 -0
- data/lib/assets/css/reset.sass +199 -0
- data/lib/assets/js/app.js +7 -0
- data/lib/assets/js/config.js.coffee +0 -0
- data/lib/assets/js/core/boot.js.coffee +2 -0
- data/lib/assets/js/core/capabilities.js +211 -0
- data/lib/assets/js/core/debug.js.coffee +3 -0
- data/lib/assets/js/core/environment.js.coffee +14 -0
- data/lib/assets/js/templates.js +0 -0
- data/lib/assets/js/usecode.js +0 -0
- data/lib/assets/js/vendor/async.js +701 -0
- data/lib/assets/js/vendor/backbone.js +1608 -0
- data/lib/assets/js/vendor/handlebars.js +2746 -0
- data/lib/assets/js/vendor/jquery.js +9267 -0
- data/lib/assets/js/vendor/tasks.js.coffee +17 -0
- data/lib/assets/js/vendor/underscore.js +1343 -0
- data/lib/assets/js/vendor.js +7 -0
- data/lib/templates/index.haml +38 -0
- data/lib/templates/manifest.erb +13 -0
- metadata +331 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
class Tasks
|
2
|
+
@do: ( methods, scope={} ) ->
|
3
|
+
that_methods = methods
|
4
|
+
new (
|
5
|
+
() ->
|
6
|
+
for index of scope
|
7
|
+
this[index] = scope[index]
|
8
|
+
methods_array = []
|
9
|
+
original_methods = that_methods
|
10
|
+
that = this
|
11
|
+
for index of original_methods
|
12
|
+
methods_array.push( original_methods[ index ].bind(that) )
|
13
|
+
Async.waterfall( methods_array )
|
14
|
+
)()
|
15
|
+
|
16
|
+
@Tasks = Tasks
|
17
|
+
|