joosy 1.2.0.alpha.12 → 1.2.0.alpha.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8acd5941c7bfd2510ece8281052154171bb70fc0
4
- data.tar.gz: 286702ccec5063cb93bd649110d152a74234e127
3
+ metadata.gz: 86784de6b810fdda417c04e5f2a32be2f50cdf20
4
+ data.tar.gz: 807001da677b51db11ad5cf032ee1be57b70bc13
5
5
  SHA512:
6
- metadata.gz: 34c782e41c5fafbc531011fbb5c6bbd7ed538d8e4064d6e049462e1a9c2d1d60d7eb15321fedbf13b9881d976101d0960b1b3a1b732e988c135a4e6709b696bd
7
- data.tar.gz: 2c15767017d4beeec7cd9c13ebcb830e45d13f295d19aac86ed269eb594dd99d85c9857599b05b3fc349c3344251b4f0b4c09b3c0d0d4025c0b75ad1b11fe15f
6
+ metadata.gz: ca1a9f7eb9081e2cf6cac92401a4dc5daf15fa29cec19091441b85b774302b86f97104801fc252cf11bcfcafd464b0b3ce2db26b12d219d530c9cd184ee24008
7
+ data.tar.gz: 4dfd4f85e19997aa299ea7eadc2b59980d9cc93728b718deaccc00e1c8da62adca862ee0fef36ba485d4657c23aa003c4ae98f9092fd298de3708e4275e19c7d
data/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joosy",
3
- "version": "1.2.0-alpha.12",
3
+ "version": "1.2.0-alpha.13",
4
4
  "main": "lib/joosy.js",
5
5
  "ignore": [
6
6
  "bin",
data/lib/joosy.js CHANGED
@@ -3409,7 +3409,7 @@ Joosy.Router = {
3409
3409
  __respondRoute: function(hash) {
3410
3410
  var found, fullPath, params, path, queryArray, regex, route, urlParams, vals, _ref;
3411
3411
  Joosy.Modules.Log.debug("Router> Answering '" + hash + "'");
3412
- fullPath = hash.replace(RegExp("^(" + this.prefix + ")?"), '');
3412
+ fullPath = hash.replace(RegExp("^\\#(" + this.prefix + ")?"), '');
3413
3413
  if (this.restrictPattern && fullPath.match(this.restrictPattern) === null) {
3414
3414
  this.trigger('restricted', fullPath);
3415
3415
  return;
data/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [
5
5
  "joosy"
6
6
  ],
7
- "version": "1.2.0-alpha.12",
7
+ "version": "1.2.0-alpha.13",
8
8
  "author": "Boris Staal <boris@staal.io>",
9
9
  "bin": {
10
10
  "joosy": "bin/joosy"
@@ -98,6 +98,9 @@ describe "Joosy.Router", ->
98
98
  Joosy.Router.__respondRoute '/'
99
99
  expect(spies.root.callCount).toEqual 1
100
100
 
101
+ Joosy.Router.__respondRoute '#/'
102
+ expect(spies.root.callCount).toEqual 2
103
+
101
104
  Joosy.Router.__respondRoute '/page'
102
105
  expect(Joosy.Application.setCurrentPage.callCount).toEqual 1
103
106
  expect(Joosy.Application.setCurrentPage.args.last()).toEqual [TestPage, Object.extended()]
@@ -221,7 +221,7 @@ Joosy.Router =
221
221
  #
222
222
  __respondRoute: (hash) ->
223
223
  Joosy.Modules.Log.debug "Router> Answering '#{hash}'"
224
- fullPath = hash.replace ///^(#{@prefix})?///, ''
224
+ fullPath = hash.replace ///^\#(#{@prefix})?///, ''
225
225
 
226
226
  if (@restrictPattern && fullPath.match(@restrictPattern) == null)
227
227
  @trigger 'restricted', fullPath
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.12
4
+ version: 1.2.0.alpha.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Staal