wiselinks 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wiselinks (0.6.2)
4
+ wiselinks (0.6.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -11,6 +11,10 @@ Wiselinks makes following links and submitting some forms in your web applicatio
11
11
 
12
12
  You may find Wiselinks similar to [Turbolinks](https://github.com/rails/turbolinks) or [Pjax](https://github.com/defunkt/jquery-pjax), but Wiselinks have several rather important differences from both projects. We tried to make Wiselinks as easy to use as Turbolinks are but also as configurable as Pjax.
13
13
 
14
+ Try Wiselinks online in our **demo application**:
15
+
16
+ * [http://wiselinks.herokuapp.com/](http://wiselinks.herokuapp.com/)
17
+
14
18
  ## Compatibility
15
19
 
16
20
  **Please be advised that Javascript events in wiselinks-0.5.0 are not backward compatible.**
@@ -10,7 +10,7 @@ class Page
10
10
  self._try_target(@$target)
11
11
 
12
12
  if History.emulated.pushState && @options.html4 == true
13
- if window.location.href.indexOf('#!') == -1 && @options.html4_root_path != null && window.location.pathname != @options.html4_root_path
13
+ if window.location.href.indexOf('#!') == -1 && @options.html4_normalize_path == true && window.location.pathname != @options.html4_root_path
14
14
  window.location.href = "#{window.location.protocol}//#{window.location.host}#{@options.html4_root_path}#!#{window.location.pathname}"
15
15
 
16
16
  if window.location.hash.indexOf('#!') != -1
@@ -24,6 +24,7 @@ class Wiselinks
24
24
  _defaults: ->
25
25
  html4: true
26
26
  html4_root_path: '/'
27
+ html4_normalize_path: true
27
28
  target_missing: null
28
29
  assets_digest: $("meta[name='assets-digest']").attr("content")
29
30
 
@@ -4,7 +4,7 @@ module Wiselinks
4
4
  module Version
5
5
  MAJOR = 0
6
6
  MINOR = 6
7
- PATCH = 2
7
+ PATCH = 3
8
8
  BUILD = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wiselinks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-06-02 00:00:00.000000000 Z
15
+ date: 2013-06-07 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec
@@ -368,7 +368,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
368
368
  version: '0'
369
369
  segments:
370
370
  - 0
371
- hash: 515463621627356025
371
+ hash: -3455456712270723770
372
372
  required_rubygems_version: !ruby/object:Gem::Requirement
373
373
  none: false
374
374
  requirements:
@@ -377,7 +377,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
377
377
  version: '0'
378
378
  segments:
379
379
  - 0
380
- hash: 515463621627356025
380
+ hash: -3455456712270723770
381
381
  requirements: []
382
382
  rubyforge_project:
383
383
  rubygems_version: 1.8.24