gaptool-server 0.4.7 → 0.4.8

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDNhNzMzYjhjNTUzMTg5NTM1Y2Y5ZGQ3MGM3YzNiNTUxMDcwNDIyMg==
4
+ YWUwNjBlMjY0NTNjNzAyYmNlOGNlMzZhNDIzMDI3YzdhNmIwMDcwMQ==
5
5
  data.tar.gz: !binary |-
6
- NDk5NWJjMjgzMzFmZDBjYTc5ZTVlMTRhZWFjZDNhNjE4YTQ4ZmNmNA==
6
+ ZTQ5NmE1YzE4OGQzY2E2ZDkxYzNiMTE1NGQ5ZWZhZDcwMWJhZDkwZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmM5MmMxODZlNDIyMWI1YmY3N2NkYTlhMzQ2ZmQ0M2UzYTZmMmQwYTZmZjJl
10
- N2RlODZlZWMxZWY4MWE5ZmU3Yjg4ZTQ1ZWNiNDUwOGVhYThmN2M5MTBmNGFm
11
- MzY2NzNhMGQzZDFiN2IzNTg3ZWM0NzgyYWUyYzQxMmJlYWY3MmM=
9
+ N2MwY2IzMWIzOTFmM2UyNzNmMGM2NWEwMDRhMTgwOTI5Nzc5NTRmNmVhYzg0
10
+ NDMwZDA5YTA2M2ZlMDA4ZjBmZmI5MzY2NzNhYzljNzJkM2FhOTMwNDdkNWM2
11
+ MTY3ZWQxZjI5YzM5MmQ5NDk1NjVjNjE1M2Q1YjRmZWRjYzk3Y2I=
12
12
  data.tar.gz: !binary |-
13
- Nzg4ZTUzMmE4MDZlZjRjYTZjOTAxZGJiMmNlZThkZDM1ZjA4Y2VmZWE2MjA3
14
- NWVmOWVhNGNmMzQ5ZjNlZTYzYmNjY2Q0MWE4MzAyN2JkZjMyOGQyNTc1ZTQ1
15
- ZDRmYjUzYzZhMDk0ZjQxZmQwZDA5Y2Q3ZDU1NjY1YzU2ZjA4OGE=
13
+ OGUwOGExYjBmNDgwMzBhZjVjNmJiMGNjNTM4OGM0MGM4NDIzZGM4NzcyZmMw
14
+ MTc4N2E1N2IxZTMwM2VkMGQxZGQ4ZjIxNzg1ZmUxOTQ4NmIzY2JmZGE1MjMz
15
+ ZmUzMzkzZTQ5Nzk3ZjJjMmNjYTZjMGMwODI4ZDVmZWU2NWVhNjE=
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gaptool-server"
8
- s.version = "0.4.7"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaptool-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Bailey