grape_api_signature 0.0.3 → 0.0.4

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: 3d3a264a4dfeb73529340a6161eac797aa507c84
4
- data.tar.gz: 28090626adc0f5599a0cef255e070691c015ef08
3
+ metadata.gz: c36c4f8a4596be8a9f1e3229b2d15aa9f73fc68d
4
+ data.tar.gz: 7e1b4344f851021db3aebef70fb0a0c13909b30e
5
5
  SHA512:
6
- metadata.gz: 3679a18b2269679e2fd3a11cafe8dce2cf38524673e62210ab957cdcaaadca678f7f4739ff1217c39d9f5b3e7d00eb860e25c1b4cfe742e5115434a24a6e242a
7
- data.tar.gz: 0f4226c5ffed27438df7f6a7fab41fc02ce1d9f8dc10a1ad6a0c2c3e31eb0a87ccd445ea3266520fa0914ae05214286ab3fbff5562a4fb0be3b271855e8c3afb
6
+ metadata.gz: 2ccf7a3498b9d695473348b81fc5d005c3ed928a9f5930638f78067f79a3ae5dfd70a539ba6cb5a437d55e0db3fd344fb9ab055be27ecd6b911c38d286043750
7
+ data.tar.gz: 0f00ebbdcf158db6adab368091c8d13a8582b59fdb14c3168293382abdb4bb496f291c1a6165d0469b6a200c1615544a3ac8bd3fc291a57f26b869915bf7830b
@@ -0,0 +1,10 @@
1
+ # This configuration was generated by `rubocop --auto-gen-config`
2
+ # on 2014-11-20 16:06:53 +0100 using RuboCop version 0.27.1.
3
+ # The point is for the user to remove these configuration records
4
+ # one by one as the offenses are removed from the code base.
5
+ # Note that changes in the inspected code, or installation of new
6
+ # versions of RuboCop, may require this file to be generated again.
7
+
8
+ # Offense count: 3
9
+ Metrics/AbcSize:
10
+ Max: 24
data/Gemfile CHANGED
@@ -6,4 +6,3 @@ gemspec
6
6
  gem 'simplecov', require: false, group: :test
7
7
  gem 'coveralls', require: false
8
8
  gem 'rubocop', require: false
9
-
@@ -24,7 +24,12 @@ do ($=jQuery) ->
24
24
  if @url && @url.searchParams
25
25
  @search = @query_sorted(@url.searchParams.toString())
26
26
  else
27
- @search = ''
27
+ if @url && @url.search
28
+ tmp_query = @url.search.toString()
29
+ tmp_query.replace(/^?/,'')
30
+ @search = @query_sorted(tmp_query)
31
+ else
32
+ @search = ''
28
33
  @method = obj.method.toUpperCase()
29
34
  @req_headers = $.extend({}, obj.headers)
30
35
  @body = obj.body ? ''
@@ -1,3 +1,3 @@
1
1
  module GrapeAPISignature
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
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.3
4
+ version: 0.0.4
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-11-20 00:00:00.000000000 Z
11
+ date: 2014-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack