nile 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjUwY2UxMmFjNjc1NDJlZTY3NGMxYTUxZDA1MzBkNDBhNzRkZTAzZA==
4
+ ODI4NTQxMmRhY2E1YTEwMzFlNDY2MWQ0OWZjZGYzNDkzODdjZTA5NA==
5
5
  data.tar.gz: !binary |-
6
- NzUzNmM0MDkxMWJhZGVhNGNmODYyNzFmODg3MjZkZmMzODRkNWRlNQ==
6
+ Nzg2MmMxNDlkZWVkNjcyMzAwZjI1ZGZmNDkxMTk3YTk3NzMzYWUyZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTQ5MjQzODg3YWVhZjRhMDI1NGI3ODI5NmVhMTIwNjA0N2RkZTEwMWRhNTI3
10
- N2M0Zjk0ZTQ0NmEwYzJhNTM0MTFlNWE3YTQ0ODBkYjhiZTg5ZTQ0YmRjYWYy
11
- NWU0NGNhNGVhZmI2M2I0YzVlZTI2OTVlMjcwYTk1OTg3ZWRhZGQ=
9
+ MzAwYzRjMDIzZTg0NmZiOWRjZDYxMjg5YTQyMzQ0NTI0MDhiZWIwYmVkZjY3
10
+ OGE4YTM4NGEzMzQ5YmU0MjkwZWQ3YTkwZWUwZWE2ZTYwMGEyZTBiNjVmNDgy
11
+ MDkzYmU0M2I5ZGEzMGEwMTgyNTQ3NzNmMTJlMjdlNDYxYWY4ZmI=
12
12
  data.tar.gz: !binary |-
13
- NjQwODliMzAwYjU2OWU4MDQ4ZTE5MmY0OTYzYTBlYWFhMjkwMzZjZGIzMDNj
14
- M2UzNWFlYzg5MmNkZTk2YzE0MzFmMDc1Nzg5NTcxNTdhNzI0YjhlNjM3NjJm
15
- ZjU4YTI3ZjQwNDhiZjYxNDg5YjA5ZGM4ZDlmZmIyZjBmNDJmZTk=
13
+ ZWI5NWFlN2Q0NzYxNjIwN2JmMTk3NTAzNDU2MjFmYjk0NWE3NGNkNWMxMTZi
14
+ ZTNlZjE1YmFmOWMxMDhjYmFmNGI0NzkwZWI5Nzc4YjBhNjkwZGM0NThjMWE1
15
+ NDU1MTc1ZmFkMzVjZjg1NDJhOTc3ODZlM2MyMWE4MDU4ODY5NWU=
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  .idea
2
+ *.gem
@@ -1,6 +1,5 @@
1
1
  require 'singleton'
2
2
  require 'json'
3
- require 'httpd'
4
3
 
5
4
  module Nile
6
5
 
@@ -18,7 +17,7 @@ module Nile
18
17
 
19
18
  def find_route verb, url
20
19
  @routes.each do |route|
21
- if route[:url] == url && route[:verb] == verb
20
+ if route[:url] == url && (route[:verb] == verb || verb == "HEAD")
22
21
  return route
23
22
  end
24
23
  end
@@ -1,3 +1,3 @@
1
1
  module Nile
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Cervasio