mugshot 0.1.2 → 0.1.3

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -30,6 +30,10 @@ class Mugshot::Application < Sinatra::Base
30
30
  image.to_blob
31
31
  end
32
32
 
33
+ get '/' do
34
+ 'ok'
35
+ end
36
+
33
37
  protected
34
38
 
35
39
  def initialize(storage)
@@ -1,4 +1,4 @@
1
- <?xml version=”1.0″?>
1
+ <?xml version="1.0"?>
2
2
  <cross-domain-policy>
3
- <allow-access-from domain=”*” />
3
+ <allow-access-from domain="*"/>
4
4
  </cross-domain-policy>
@@ -77,4 +77,13 @@ describe Mugshot::Application do
77
77
  last_response.body.should be_empty
78
78
  end
79
79
  end
80
+
81
+ describe "GET /" do
82
+ it "should return ok as healthcheck" do
83
+ get '/'
84
+
85
+ last_response.status.should == 200
86
+ last_response.body.should == 'ok'
87
+ end
88
+ end
80
89
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mugshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Cain\xC3\xA3 Nunes"