grape_api_signature 0.0.2 → 0.0.3

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: 61d93a1fb4f89ca1583c393299264b06c8ac4bd5
4
- data.tar.gz: 5e353d6dc5094a4b95d908bfdf3b1140bc708cf7
3
+ metadata.gz: 3d3a264a4dfeb73529340a6161eac797aa507c84
4
+ data.tar.gz: 28090626adc0f5599a0cef255e070691c015ef08
5
5
  SHA512:
6
- metadata.gz: 35ffe14e8fba39a24e213cf4111f50abd81a1417472a29a02dcc496f9ab994efa47f77c41ce3e0e3bdbf71c0c1fd912b744986c3e65a5ab3f7c928c7d03a23a3
7
- data.tar.gz: 9591e63820d33c185ccc24b13a283396c814b6cc207dc58eb717fe04a131573085d6392867256c921e4359745f0b164366db50f7d20102a2ad8eb31abfef92db
6
+ metadata.gz: 3679a18b2269679e2fd3a11cafe8dce2cf38524673e62210ab957cdcaaadca678f7f4739ff1217c39d9f5b3e7d00eb860e25c1b4cfe742e5115434a24a6e242a
7
+ data.tar.gz: 0f4226c5ffed27438df7f6a7fab41fc02ce1d9f8dc10a1ad6a0c2c3e31eb0a87ccd445ea3266520fa0914ae05214286ab3fbff5562a4fb0be3b271855e8c3afb
data/Gemfile CHANGED
@@ -7,7 +7,3 @@ gem 'simplecov', require: false, group: :test
7
7
  gem 'coveralls', require: false
8
8
  gem 'rubocop', require: false
9
9
 
10
- gem 'grape', github: 'intridea/grape'
11
- gem 'grape-entity', github: 'intridea/grape-entity'
12
-
13
-
@@ -21,7 +21,10 @@ do ($=jQuery) ->
21
21
  @url = new URL(obj.url)
22
22
  @service = @url.hostname.split('.',2)[0]
23
23
  @pathname = @url.pathname
24
- @search = @query_sorted(@url.searchParams.toString())
24
+ if @url && @url.searchParams
25
+ @search = @query_sorted(@url.searchParams.toString())
26
+ else
27
+ @search = ''
25
28
  @method = obj.method.toUpperCase()
26
29
  @req_headers = $.extend({}, obj.headers)
27
30
  @body = obj.body ? ''
@@ -1,3 +1,3 @@
1
1
  module GrapeAPISignature
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape_api_signature
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dieter Späth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-19 00:00:00.000000000 Z
11
+ date: 2014-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack