joosy 1.2.0.alpha.34 → 1.2.0.alpha.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e781a0e6f7a0255ee66c756961ad0943b0624d13
4
- data.tar.gz: 5eec16f1b2513fa0076581c246b923bda1457cf6
3
+ metadata.gz: e6c4ed7e7ee1c6bf35ad20883aff67fe8161ae4d
4
+ data.tar.gz: 9cb7134f6765d40fae9096222136b1cc9d8f4cbe
5
5
  SHA512:
6
- metadata.gz: 03cab6c257006474cd4672f4748c1cd34873c6996fce3dd64e7f6a8a2447f36f5341f52e61205267045631a6996c0381714a2633112120c67a3f87016157b53a
7
- data.tar.gz: 52c3043ccdc1fcd8c3adc57bb7dee72e375307e8c4665b9f2c1cf92facb1a7c66fbb4fa51cae2406cebfe8316d7f1c829fe46eb6b90ad95a733632b57a246ace
6
+ metadata.gz: 65c34e3d1248c4816fa036f5c09e4e79fee3b7bc60875187ecc4c5c5ff9ff68bc83db6fea61af7d233e39c10c241902d461f870f6cf1b9917d74f6106336b92a
7
+ data.tar.gz: 6eae6982f06e784364316551386e0609df08c9cf2774fc39deff51083705544cfb20a384e4ef191441dcfe5706320d1fe1fcb869d61d512560ce676eb63ece00
data/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joosy",
3
- "version": "1.2.0-alpha.34",
3
+ "version": "1.2.0-alpha.35",
4
4
  "main": "lib/joosy.js",
5
5
  "ignore": [
6
6
  "bin",
@@ -4,7 +4,7 @@
4
4
  "keywords": [
5
5
  "joosy"
6
6
  ],
7
- "version": "1.2.0-alpha.34",
7
+ "version": "1.2.0-alpha.35",
8
8
  "author": "Boris Staal <boris@staal.io>",
9
9
  "homepage": "http://joosy.ws/",
10
10
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "nib": "~0.9.1"
38
38
  },
39
39
  "devDependencies": {
40
- "grunt-mincer": "~0.3.1",
40
+ "grunt-mincer": "~0.3.2",
41
41
  "grunt-contrib-jasmine": "~0.5.1",
42
42
  "grunt-contrib-watch": "~0.4.4",
43
43
  "grunt-contrib-coffee": "~0.7.0",
@@ -72,14 +72,15 @@ module.exports = (grunt) ->
72
72
  callbacks.success?() if deepness == 0
73
73
 
74
74
  haml:
75
- compile: (file, partials=paths.haml, environment='development') ->
75
+ compile: (file, partials=paths.haml, environment='development', locals={}) ->
76
76
  HAMLC = require 'haml-coffee'
77
77
 
78
78
  HAMLC.compile(grunt.file.read file)(
79
- environment: environment
80
- config: grunt.config.get('joosy.config') || {}
81
- partial: (location) ->
82
- grunt.joosy.haml.compile(Path.join(partials,location), environment)
79
+ Object.merge locals,
80
+ environment: environment
81
+ config: grunt.config.get('joosy.config') || {}
82
+ partial: (location, locals) ->
83
+ grunt.joosy.haml.compile(Path.join(partials, location), partials, environment, locals)
83
84
  )
84
85
 
85
86
  server:
@@ -141,11 +142,10 @@ module.exports = (grunt) ->
141
142
  )
142
143
 
143
144
  serveStatic: (server, compress=false) ->
144
- Gzippo = require 'gzippo'
145
-
146
145
  unless compress
147
146
  server.use connect.static(paths.public)
148
147
  else
148
+ Gzippo = require 'gzippo'
149
149
  server.use Gzippo.staticGzip(paths.public)
150
150
 
151
151
  console.log "=> Serving static from /#{paths.public}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joosy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.alpha.34
4
+ version: 1.2.0.alpha.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Staal