sidewalk 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/sidewalk/request.rb +5 -0
  2. metadata +2 -2
@@ -51,6 +51,11 @@ module Sidewalk
51
51
  rack_request.cookies
52
52
  end
53
53
 
54
+ # Whether or not this is an asynchronous (AJAX) request.
55
+ def asynchronous?
56
+ @rack_request.xhr?
57
+ end
58
+
54
59
  # What version of HTTP the client is using.
55
60
  #
56
61
  # @return '1.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidewalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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: 2012-08-13 00:00:00.000000000 Z
12
+ date: 2012-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport