gaptool-server 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/gaptool-server.gemspec +1 -1
- data/lib/app.rb +0 -5
- data/lib/routes/main.rb +1 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWUwNjBlMjY0NTNjNzAyYmNlOGNlMzZhNDIzMDI3YzdhNmIwMDcwMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTQ5NmE1YzE4OGQzY2E2ZDkxYzNiMTE1NGQ5ZWZhZDcwMWJhZDkwZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2MwY2IzMWIzOTFmM2UyNzNmMGM2NWEwMDRhMTgwOTI5Nzc5NTRmNmVhYzg0
|
10
|
+
NDMwZDA5YTA2M2ZlMDA4ZjBmZmI5MzY2NzNhYzljNzJkM2FhOTMwNDdkNWM2
|
11
|
+
MTY3ZWQxZjI5YzM5MmQ5NDk1NjVjNjE1M2Q1YjRmZWRjYzk3Y2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGUwOGExYjBmNDgwMzBhZjVjNmJiMGNjNTM4OGM0MGM4NDIzZGM4NzcyZmMw
|
14
|
+
MTc4N2E1N2IxZTMwM2VkMGQxZGQ4ZjIxNzg1ZmUxOTQ4NmIzY2JmZGE1MjMz
|
15
|
+
ZmUzMzkzZTQ5Nzk3ZjJjMmNjYTZjMGMwODI4ZDVmZWU2NWVhNjE=
|
data/gaptool-server.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "gaptool-server"
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matt Bailey", "Francesco Laurita"]
|
data/lib/app.rb
CHANGED
@@ -10,14 +10,9 @@ require 'peach'
|
|
10
10
|
|
11
11
|
class GaptoolServer < Sinatra::Application
|
12
12
|
disable :sessions
|
13
|
-
enable :show_exceptions
|
14
|
-
enable :raise_errors
|
15
|
-
enable :dump_errors
|
16
13
|
|
17
14
|
error do
|
18
15
|
content_type :json
|
19
|
-
status 500
|
20
|
-
|
21
16
|
{:result => 'error', :message => env['sinatra.error'].message}.to_json
|
22
17
|
end
|
23
18
|
|
data/lib/routes/main.rb
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
class GaptoolServer < Sinatra::Application
|
3
3
|
|
4
|
-
error do
|
5
|
-
{error: "Sorry there was a nasty error - #{env['sinatra.error']}" }.to_json
|
6
|
-
end
|
7
|
-
|
8
4
|
get '/' do
|
9
|
-
"You must be lost. Read the instructions."
|
5
|
+
raise "You must be lost. Read the instructions."
|
10
6
|
end
|
11
7
|
|
12
8
|
post '/redishash' do
|