peek 0.1.3 → 0.1.4

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.
data/CHANGELOG.md CHANGED
@@ -43,3 +43,7 @@
43
43
  # 0.1.3
44
44
 
45
45
  - Remove Redis dependency from Gemfile
46
+
47
+ # 0.1.4
48
+
49
+ - Don't access xhr object when not present in pjax:end
@@ -51,7 +51,8 @@ $(document).on 'peek:update', fetchRequestResults
51
51
 
52
52
  # Fire the event for our own listeners.
53
53
  $(document).on 'pjax:end', (event, xhr, options) ->
54
- requestId = xhr.getResponseHeader('X-Request-Id')
54
+ if xhr?
55
+ requestId = xhr.getResponseHeader('X-Request-Id')
55
56
  $(this).trigger 'peek:update'
56
57
 
57
58
  # Also listen to turbolinks page change event
data/lib/peek/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Peek
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-13 00:00:00.000000000 Z
12
+ date: 2013-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails