nyancat 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +15 -0
  2. data/bin/nyancat +11 -5
  3. metadata +23 -10
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Y2M1NjA5NDBkOTZmYTczZjUyMGYwZjJjZTYwMTVkYWI0OTNlMDYyNg==
5
+ data.tar.gz: !binary |-
6
+ YzcxYzU1MjI4ODk4Yzg0MmI2M2Q3YzgyNWRiNzQ5NjBlOTFjMzRmYg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MjI0NWE3ZGQ3YmE0NDFkMjQ1OWM5MDM1MTAzMDNhZDY1MWQwODZlZDBlYzg3
10
+ OWZiMmVkOGNiMGJkZDY4MGNjMzc0MTRkNDkxMzMyYTU1NDQ1ZjJhYWUwZWZi
11
+ MGNlYTk5NmE3YzAzMGQxNDI5OWY1N2UyNzY4NWFiYjMxMzEyYWU=
12
+ data.tar.gz: !binary |-
13
+ NGFjZWJjMDE4NzM0MDZmYjEzMmE0ZDFlNDU5Y2Q0MjY4ZmVkN2ZiZmMzNTBk
14
+ MjZiZjBkYTZhNjIyZDVlMTVjYTNkY2VmNjlkNWEzYzRhZDA1MjI3YzUzZmJm
15
+ MjA2ODZhZTUxYTNkYmJjOGNmMjAwODYyNDM2OTg3NGM0MTE1M2Q=
@@ -61,11 +61,17 @@ OptionParser.new do |opts|
61
61
  end.parse!
62
62
 
63
63
  if telnet
64
- # Start a new server listening on specified port
65
- server = NyanCat::NyanServer.new(port, "::", options)
66
- server.audit = true
67
- server.start
68
- server.join
64
+ begin
65
+ # Start a new server listening on specified port
66
+ server = NyanCat::NyanServer.new(port, "::", options)
67
+ server.audit = true
68
+ server.start
69
+ server.join
70
+ rescue SignalException => e
71
+ # Do nothing, exit gracefully
72
+ ensure
73
+ server.stop
74
+ end
69
75
  else
70
76
  stdout = IO.new STDOUT.fileno
71
77
 
metadata CHANGED
@@ -1,16 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nyancat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ben Arblaster
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-01 00:00:00.000000000 Z
13
- dependencies: []
11
+ date: 2015-01-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: gserver
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
14
27
  description: A Ruby port of Kevin Lange's nyancat
15
28
  email: ben@andatche.com
16
29
  executables:
@@ -18,33 +31,33 @@ executables:
18
31
  extensions: []
19
32
  extra_rdoc_files: []
20
33
  files:
34
+ - bin/nyancat
21
35
  - lib/nyancat.rb
22
36
  - lib/nyancat/original/audio.mp3
23
37
  - lib/nyancat/original/frames.yml
24
38
  - lib/nyancat/original/palette.yml
25
- - bin/nyancat
26
39
  homepage: https://github.com/andatche/ruby_nyancat/
27
- licenses: []
40
+ licenses:
41
+ - NCSA
42
+ metadata: {}
28
43
  post_install_message:
29
44
  rdoc_options: []
30
45
  require_paths:
31
46
  - lib
32
47
  required_ruby_version: !ruby/object:Gem::Requirement
33
- none: false
34
48
  requirements:
35
49
  - - ! '>='
36
50
  - !ruby/object:Gem::Version
37
51
  version: '0'
38
52
  required_rubygems_version: !ruby/object:Gem::Requirement
39
- none: false
40
53
  requirements:
41
54
  - - ! '>='
42
55
  - !ruby/object:Gem::Version
43
56
  version: '0'
44
57
  requirements: []
45
58
  rubyforge_project:
46
- rubygems_version: 1.8.25
59
+ rubygems_version: 2.4.4
47
60
  signing_key:
48
- specification_version: 3
61
+ specification_version: 4
49
62
  summary: nyancat on your terminal
50
63
  test_files: []