rack-webfinger 0.1.0 → 0.1.1

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: 6b9a43430d1f41be38e2b5e38fdcba83610562bd44e7f2a456a02be9e3a85e18
4
- data.tar.gz: 7f00c46856f655d5b89bad2e13c22761cc28dc22201b96ce88a15875f770690b
3
+ metadata.gz: '036498b473fc790b017df9b69a3cdc43c5e08c61838ba6619c7bf4ee139d0beb'
4
+ data.tar.gz: 845a20600df782a4884a3f50a9f2aa656c6b657dd2dc5284ec7998866958443a
5
5
  SHA512:
6
- metadata.gz: 8c763cf4294ea00e20e6d4239474adb36f50ea8f94e4e431b83ea6bfd8b5b54df07335b7243f8a6ef9e3e78d95cb4c2da885b43e097f9851a0b9bd7eb70d47a2
7
- data.tar.gz: 35388dd7682829e76db423a71e3a8d3247ef6f3667f90aad2fec7ffe4aa0d5c3418e961654ff2ecdec9f104e986e7cf45b7521b39424dad8da70495f698809c1
6
+ metadata.gz: 5d932c273321dd78cfa1b53336dcc10d9701631e98b7c014d0f769eb83ef996adefb4f19c934eabcb5987bb843270f951b08ac1e823de23d94e4966fe67b1568
7
+ data.tar.gz: 787165175c9d33bcf1f866f7fb8d80cda70e5c94ae696244d9bd8a4bcdd95098a68d03707c16378395b96ca9aad79e3f3f29a1e64f6fb1af3d1573ae7d3a7816
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  class Webfinger
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
@@ -10,7 +10,7 @@ module Rack
10
10
  @data_provider = data_provider
11
11
  end
12
12
 
13
- def not_found = [404, { 'Content-Type' => 'text/plain' }, ['Resource not found']]
13
+ def not_found = [404, { 'content-type' => 'text/plain' }, ['Resource not found']]
14
14
 
15
15
  def call(env)
16
16
  request = Rack::Request.new(env)
@@ -20,7 +20,7 @@ module Rack
20
20
  resource = request.params['resource']
21
21
 
22
22
  if !resource
23
- return [400, { 'Content-Type' => 'text/plain' }, ['Missing resource parameter']]
23
+ return [400, { 'content-type' => 'text/plain' }, ['Missing resource parameter']]
24
24
  end
25
25
 
26
26
  # We need this because Rack's handling of the query string by default overwrites
@@ -41,7 +41,7 @@ module Rack
41
41
  filtered_data = filter_by_rel(response_data, rel_params)
42
42
 
43
43
  [200,
44
- { 'Content-Type' => 'application/jrd+json' },
44
+ { 'content-type' => 'application/jrd+json' },
45
45
  [JSON.generate(filtered_data)]
46
46
  ]
47
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-webfinger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vidar Hokstad