icwot 0.3.0 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9748124ee09d8751db32f73b2f49c64ed8bbf047
4
- data.tar.gz: 1b0ed9c7114b9c2c2ce31f8e5109e6bfd8cd5110
3
+ metadata.gz: cb968b7f9058426b8b88f3529efbd842b28d8a83
4
+ data.tar.gz: 66c697961bab6edd2bda01f32b0c538104ed244b
5
5
  SHA512:
6
- metadata.gz: f00d11625ac678564c01ad1485d581e1cb3795bdc9b57db7afb4ad12be65e5a4c578bd0a52cdd432434003f30b61e95cb3514b880812e3881effa57e0be89afb
7
- data.tar.gz: 805d0bf9d9df6c6823f3ded793173862ce804d664b92593e706251efeb2f2005ea77e31af2eac456f7afba6cbd04b7ef10409c7d49975b5ec925fe78a7a31921
6
+ metadata.gz: 905289642d5740d4d6ab84c87674429720cd90801e647220b4b81b1a33ae231f9e789386a66e51d21232a43325281526e134481a0c8f5775c7e96daf0c81e70a
7
+ data.tar.gz: e37f838c5be217e31daf4c1c4509adb32d8edd17cbc99c329dc07da37a5d8b596558dde0d6db96da47e20f3ce553e6f90d7618e0a5d40227f50b4a115976c373
data/bin/icwot CHANGED
@@ -33,9 +33,11 @@ end
33
33
 
34
34
  #TODO handle the case when the response of the host is not correct
35
35
  puts "The response server: '#{response}' with code #{response.code}"
36
- begin
37
- app = Icwot.run(console.port, console.log_path)
38
- rescue Interrupt => e
36
+ thr = Thread.new { app = Icwot.run(console.port, console.log_path) }
37
+ thr.join
38
+ Signal.trap 'EXIT' do
39
+ puts 'unregister from the server'
39
40
  RestClient.delete console.url
40
41
  app.quit!
42
+ puts 'quitting sinatra...'
41
43
  end
data/icwot.gemspec CHANGED
@@ -5,7 +5,7 @@ require 'icwot/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "icwot"
8
- spec.version = Icwot::version
8
+ spec.version = '0.3.3'
9
9
  spec.authors = ["leo"]
10
10
  spec.email = ["facenord.sud@gmail.com"]
11
11
  spec.description = %q{icwot : RESTfull sinatra server providing inversion of control for logging messages from another web-server}
data/lib/icwot/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Icwot
2
2
  def self.version
3
- '0.3.0'
3
+ '0.3.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icwot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - leo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-06 00:00:00.000000000 Z
11
+ date: 2014-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake