etna 0.1.13 → 0.1.14

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
  SHA256:
3
- metadata.gz: 1957f3a561e396ebc9ad8882a6116142897188e504f9c71057efc4fd28b30cf3
4
- data.tar.gz: 143a547e83b9f626df1c9ad72b5995bd10cc8942dd68e6580c8f447347632761
3
+ metadata.gz: 21cc63172edb5e8f2745449be1baa675e8cc16caa4e5d2d1163191eafc79f5f2
4
+ data.tar.gz: 6dfb21b53cd62988491eed11ab334364ad5151d5e918e46fe41b90ca9204b81c
5
5
  SHA512:
6
- metadata.gz: 002203c0dd9098c8b106ee8d63e8a7a820fc1cf6732f38610eb39d1570c69cf7cf5d36c0f7d525a0aa5e4ff103ec2ce7f86d23e8dce3b6526a757572d936944c
7
- data.tar.gz: 2a902890d9839b46b0473208b9e2a17d214754f264abb0b0268ee81ab0fd473b50393b1aba2a51b3e93c27c6de98b29bd130ef4dae014baaa626b80151ae1cf9
6
+ metadata.gz: '08f9025f92c4e32734db6b5f48d470a8c9c051002d73b949aefb7de45fdf091ad416811765a881623cfc4bd13efe6ee7b714f8526f51c8497e8141f48fa36ff0'
7
+ data.tar.gz: 7b06ea7b51cc4b580896bb806c64825e21c1d70e47d1ebbfac88678a12770c4aee8a13810a1e617cb8c02bba12b5a28b795887d01de726ea97d6fbaaa6caa469
@@ -60,6 +60,7 @@ module Etna
60
60
  end
61
61
 
62
62
  def valid_id?
63
+ return false if !@application.config(:hmac_keys)
63
64
  @application.config(:hmac_keys).key?(@id)
64
65
  end
65
66
 
@@ -23,7 +23,7 @@ module Etna
23
23
  )
24
24
  when %r{multipart/form-data}i
25
25
  params.update(
26
- Rack::Multipart.parse_multipart(env)
26
+ Rack::Multipart.parse_multipart(env) || {}
27
27
  )
28
28
  end
29
29
  # Always parse the params that are url-encoded.
@@ -74,7 +74,7 @@ module Etna
74
74
  end
75
75
  class TestHmac < Hmac
76
76
  def valid?
77
- @test_signature == 'valid'
77
+ @test_signature == 'valid' || super
78
78
  end
79
79
  end
80
80
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etna
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saurabh Asthana
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-05 00:00:00.000000000 Z
11
+ date: 2020-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack