renet 0.1.0-universal-darwin → 0.1.1-universal-darwin

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  # require the lib!
2
- require './../bin/renet'
2
+ require 'rubygems'
3
+ require 'renet'
3
4
 
4
5
  # define a custom handler for new client connections, it will be automatically called
5
6
  def connections_handler(id, ip)
@@ -1,6 +1,7 @@
1
1
  # require gosu and renet libs!
2
+ require 'rubygems'
2
3
  require 'gosu'
3
- require './../bin/renet'
4
+ require 'renet'
4
5
 
5
6
  # define a new window class
6
7
  class GameWindow < Gosu::Window
data/ext/renet/extconf.rb CHANGED
@@ -1,15 +1,9 @@
1
- # Loads mkmf which is used to make makefiles for Ruby extensions
2
1
  require 'mkmf'
2
+ require 'fileutils'
3
3
 
4
4
  extension_name = 'renet'
5
-
6
- # Add the Enet library dependency
7
5
  #have_library('enet')
8
-
9
- # The destination
10
6
  dir_config(extension_name)
11
-
12
- # Do the work
13
7
  create_makefile(extension_name)
14
8
 
15
9
  sh "make"
data/ext/renet/renet.c CHANGED
@@ -30,7 +30,7 @@ void Init_renet()
30
30
  init_renet_connection();
31
31
  init_renet_server();
32
32
  rb_define_const(mENet, "ENET_VERSION", rb_str_new2("1.3.0"));
33
- rb_define_const(mENet, "RENET_VERSION", rb_str_new2("0.1"));
33
+ rb_define_const(mENet, "RENET_VERSION", rb_str_new2("0.1.1"));
34
34
  }
35
35
 
36
36
  VALUE renet_main_initialize(VALUE self)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: universal-darwin
7
7
  authors: