gosu 0.11.0 → 0.11.1.pre1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ad2451369f43dadcb9f88a84fead3c5e3eb2dd3
4
- data.tar.gz: 284ae60ac4f93bb14e3188c53652ed86bd439168
3
+ metadata.gz: 559346f86540c571e858ae520b871e1a35537e84
4
+ data.tar.gz: 5114eebd3a3aa212b330978a3006bc4d9f5d321e
5
5
  SHA512:
6
- metadata.gz: b17636aa514351891d603b9dae3a5210e506f130ef8ced28094c2f2d94c66ee299c40bf25f3959dccf9813bd134b9127b7748553999731c9821d0b4af1bbd591
7
- data.tar.gz: 6be1bb1c2228e69c25936ece224ce831c9f36fd25b12306ad91667439748186bd0d7b7fefdac51e99ad122042592714f49b60c7616873e75fb5967896fb417b3
6
+ metadata.gz: 65e2e163b6e679c44375e3505c0ffe68d767ca9d4333ab0e6c4634ee3c327aa791e03f2b249b3708e1f8d76d9fd3c64a96549988a1074622a41883c949159c63
7
+ data.tar.gz: 232c94a88002c95910261c074293df22a2c6d6106d27503ba456466d5759d6d7022ed77e43b3cee46d5563973c77335a02b88b3c3b511bbc3be3cd762f08a043
@@ -4,6 +4,7 @@
4
4
  #pragma once
5
5
 
6
6
  #include <Gosu/Platform.hpp>
7
+ #include <cstdint>
7
8
 
8
9
  namespace Gosu
9
10
  {
@@ -4,7 +4,7 @@
4
4
 
5
5
  #define GOSU_MAJOR_VERSION 0
6
6
  #define GOSU_MINOR_VERSION 11
7
- #define GOSU_POINT_VERSION 0
7
+ #define GOSU_POINT_VERSION 1
8
8
 
9
9
  namespace Gosu
10
10
  {
@@ -2516,7 +2516,7 @@ SWIG_ruby_failed(void)
2516
2516
  }
2517
2517
 
2518
2518
 
2519
- /*@SWIG:/usr/local/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2519
+ /*@SWIG:/usr/local/Cellar/swig/3.0.11/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2520
2520
  SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
2521
2521
  {
2522
2522
  VALUE obj = args[0];
@@ -2555,7 +2555,7 @@ SWIG_From_unsigned_SS_int (unsigned int value)
2555
2555
  #include <string>
2556
2556
 
2557
2557
 
2558
- /*@SWIG:/usr/local/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2558
+ /*@SWIG:/usr/local/Cellar/swig/3.0.11/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2559
2559
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
2560
2560
  {
2561
2561
  VALUE obj = args[0];
@@ -2667,9 +2667,7 @@ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
2667
2667
  SWIGINTERNINLINE VALUE
2668
2668
  SWIG_From_std_string (const std::string& s)
2669
2669
  {
2670
- VALUE string = SWIG_FromCharPtrAndSize(s.data(), s.size());
2671
- ENFORCE_UTF8(string);
2672
- return string;
2670
+ return SWIG_FromCharPtrAndSize(s.data(), s.size());
2673
2671
  }
2674
2672
 
2675
2673
  SWIGINTERN bool Gosu_Color_operator_Se__Se_(Gosu::Color const *self,VALUE other){
@@ -2753,7 +2751,7 @@ SWIG_AsPtr_std_string (VALUE obj, std::string **val)
2753
2751
  }
2754
2752
 
2755
2753
 
2756
- /*@SWIG:/usr/local/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2754
+ /*@SWIG:/usr/local/Cellar/swig/3.0.11/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2757
2755
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
2758
2756
  {
2759
2757
  VALUE obj = args[0];
@@ -3128,7 +3126,7 @@ SWIGINTERN VALUE Gosu_TextInput_selection_start(Gosu::TextInput *self){
3128
3126
  std::string prefix = self->text().substr(0, self->selection_start());
3129
3127
  VALUE rb_prefix = rb_str_new2(prefix.c_str());
3130
3128
  ENFORCE_UTF8(rb_prefix);
3131
- return rb_str_length(rb_prefix);
3129
+ return rb_funcall(rb_prefix, rb_intern("length"), 0);
3132
3130
  }
3133
3131
  SWIGINTERN void Gosu_TextInput_set_selection_start(Gosu::TextInput *self,VALUE selection_start){
3134
3132
  VALUE rb_text = rb_str_new2(self->text().c_str());
@@ -3249,14 +3247,14 @@ bool SwigDirector_Window::tick() {
3249
3247
  void SwigDirector_Window::update() {
3250
3248
  VALUE SWIGUNUSED result;
3251
3249
 
3252
- result = rb_funcall(swig_get_self(), rb_intern("protected_update"), 0, NULL);
3250
+ result = rb_funcall(swig_get_self(), rb_intern("update"), 0, NULL);
3253
3251
  }
3254
3252
 
3255
3253
 
3256
3254
  void SwigDirector_Window::draw() {
3257
3255
  VALUE SWIGUNUSED result;
3258
3256
 
3259
- result = rb_funcall(swig_get_self(), rb_intern("protected_draw_2"), 0, NULL);
3257
+ result = rb_funcall(swig_get_self(), rb_intern("draw"), 0, NULL);
3260
3258
  }
3261
3259
 
3262
3260
 
@@ -3264,7 +3262,7 @@ bool SwigDirector_Window::needs_redraw() const {
3264
3262
  bool c_result ;
3265
3263
  VALUE SWIGUNUSED result;
3266
3264
 
3267
- result = rb_funcall(swig_get_self(), rb_intern("protected_needs_redraw?"), 0, NULL);
3265
+ result = rb_funcall(swig_get_self(), rb_intern("needs_redraw?"), 0, NULL);
3268
3266
  bool swig_val;
3269
3267
  int swig_res = SWIG_AsVal_bool(result, &swig_val);
3270
3268
  if (!SWIG_IsOK(swig_res)) {
@@ -3279,7 +3277,7 @@ bool SwigDirector_Window::needs_cursor() const {
3279
3277
  bool c_result ;
3280
3278
  VALUE SWIGUNUSED result;
3281
3279
 
3282
- result = rb_funcall(swig_get_self(), rb_intern("protected_needs_cursor?"), 0, NULL);
3280
+ result = rb_funcall(swig_get_self(), rb_intern("needs_cursor?"), 0, NULL);
3283
3281
  bool swig_val;
3284
3282
  int swig_res = SWIG_AsVal_bool(result, &swig_val);
3285
3283
  if (!SWIG_IsOK(swig_res)) {
@@ -3293,7 +3291,7 @@ bool SwigDirector_Window::needs_cursor() const {
3293
3291
  void SwigDirector_Window::lose_focus() {
3294
3292
  VALUE SWIGUNUSED result;
3295
3293
 
3296
- result = rb_funcall(swig_get_self(), rb_intern("protected_lose_focus"), 0, NULL);
3294
+ result = rb_funcall(swig_get_self(), rb_intern("lose_focus"), 0, NULL);
3297
3295
  }
3298
3296
 
3299
3297
 
@@ -3311,7 +3309,7 @@ void SwigDirector_Window::button_down(Gosu::Button arg0) {
3311
3309
  {
3312
3310
  obj0 = arg0 == Gosu::NO_BUTTON ? Qnil : LONG2NUM((&arg0)->id());
3313
3311
  }
3314
- result = rb_funcall(swig_get_self(), rb_intern("protected_button_down"), 1,obj0);
3312
+ result = rb_funcall(swig_get_self(), rb_intern("button_down"), 1,obj0);
3315
3313
  }
3316
3314
 
3317
3315
 
@@ -3322,7 +3320,7 @@ void SwigDirector_Window::button_up(Gosu::Button arg0) {
3322
3320
  {
3323
3321
  obj0 = arg0 == Gosu::NO_BUTTON ? Qnil : LONG2NUM((&arg0)->id());
3324
3322
  }
3325
- result = rb_funcall(swig_get_self(), rb_intern("protected_button_up"), 1,obj0);
3323
+ result = rb_funcall(swig_get_self(), rb_intern("button_up"), 1,obj0);
3326
3324
  }
3327
3325
 
3328
3326
 
@@ -11513,11 +11511,11 @@ SWIGEXPORT void Init_gosu(void) {
11513
11511
  }
11514
11512
 
11515
11513
  SWIG_RubyInitializeTrackings();
11516
- rb_define_const(mGosu, "VERSION", SWIG_From_std_string(static_cast< std::string >(Gosu::VERSION)));
11517
- rb_define_const(mGosu, "LICENSES", SWIG_From_std_string(static_cast< std::string >(Gosu::LICENSES)));
11514
+ rb_define_const(mGosu, "VERSION", SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::VERSION),SWIGTYPE_p_std__string, 0 ));
11515
+ rb_define_const(mGosu, "LICENSES", SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::LICENSES),SWIGTYPE_p_std__string, 0 ));
11518
11516
  rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(0)));
11519
- rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(10)));
11520
- rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(8)));
11517
+ rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(11)));
11518
+ rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(1)));
11521
11519
  rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
11522
11520
  rb_define_const(mGosu, "M_PI", SWIG_From_double(static_cast< double >(3.14159265358979323846264338327950288)));
11523
11521
  rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Raschke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-07 00:00:00.000000000 Z
11
+ date: 2017-01-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.
@@ -150,9 +150,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
150
  version: 1.8.2
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - ">="
153
+ - - ">"
154
154
  - !ruby/object:Gem::Version
155
- version: '0'
155
+ version: 1.3.1
156
156
  requirements: []
157
157
  rubyforge_project:
158
158
  rubygems_version: 2.6.8