rackson-five 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rack/rackson-five.rb +4 -4
  3. metadata +4 -7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -12,11 +12,11 @@ module Rack
12
12
  private
13
13
  def rackson_five_request(path)
14
14
  if path == "rackson-five.png"
15
- [200, {"Content-Type" => "image/png"}, read_file("images", "group.png")]
15
+ [200, {"Content-Type" => "image/png"}, [read_file("images", "group.png")]]
16
16
  elsif path == "tile.png"
17
- [200, {"Content-Type" => "image/png"}, read_file("images","tile.png")]
17
+ [200, {"Content-Type" => "image/png"}, [read_file("images","tile.png")]]
18
18
  elsif path == "rackson-five.mid"
19
- [200, {"Content-Type" => "audio/midi"}, read_file("midi","want_you_back.mid")]
19
+ [200, {"Content-Type" => "audio/midi"}, [read_file("midi","want_you_back.mid")]]
20
20
  end
21
21
  end
22
22
 
@@ -36,7 +36,7 @@ module Rack
36
36
  end
37
37
 
38
38
  def read_file(type, filename)
39
- [::File.open(::File.join(::File.dirname(__FILE__),type.to_s,filename),"r").read]
39
+ ::File.open(::File.join(::File.dirname(__FILE__),type.to_s,filename),"r").read
40
40
  end
41
41
  end
42
42
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackson-five
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 3
9
- - 0
10
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Adam Holt
@@ -42,8 +41,8 @@ homepage: http://github.com/omgitsads/rackson-five
42
41
  licenses: []
43
42
 
44
43
  post_install_message:
45
- rdoc_options:
46
- - --charset=UTF-8
44
+ rdoc_options: []
45
+
47
46
  require_paths:
48
47
  - lib
49
48
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -51,7 +50,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
50
  requirements:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
- hash: 3
55
53
  segments:
56
54
  - 0
57
55
  version: "0"
@@ -60,7 +58,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
58
  requirements:
61
59
  - - ">="
62
60
  - !ruby/object:Gem::Version
63
- hash: 3
64
61
  segments:
65
62
  - 0
66
63
  version: "0"