mult 0.1.2-i386-mswin32 → 0.1.4-i386-mswin32

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,9 +1,9 @@
1
+ direc = File.dirname(__FILE__)
2
+
1
3
  require 'rake/clean'
2
- #require 'rake/extensiontask'
3
4
  require 'rake/gempackagetask'
4
5
  require 'rake/rdoctask'
5
-
6
- MULT_VERSION = "0.1.2"
6
+ require "#{direc}/lib/mult/version"
7
7
 
8
8
  dlext = Config::CONFIG['DLEXT']
9
9
 
@@ -11,25 +11,27 @@ CLEAN.include("ext/**/*.#{dlext}", "ext/**/.log", "ext/**/.o", "ext/**/*~", "ext
11
11
  CLOBBER.include("**/*.#{dlext}", "**/*~", "**/*#*", "**/*.log", "**/*.o", "doc/**")
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
- s.name = "mult"
15
- s.summary = "a few handy extensions to mess with ruby objects"
16
- s.description = s.summary
17
- s.version = MULT_VERSION
18
- s.author = "John Mair (banisterfiend)"
19
- s.email = 'jrmair@gmail.com'
20
- s.date = Time.now.strftime '%Y-%m-%d'
21
- s.require_path = 'lib'
22
- s.homepage = "http://banisterfiend.wordpress.com"
23
- s.platform = 'i386-mswin32'
24
- # s.extensions = FileList["ext/**/extconf.rb"]
25
- s.has_rdoc = true
26
- s.files = ["Rakefile", "README.rdoc", "LICENSE", "lib/mult.rb", "lib/1.8/mult.#{dlext}", "lib/1.9/mult.#{dlext}"] +
27
- FileList["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c"].to_a
14
+ s.name = "mult"
15
+ s.summary = "a few handy extensions to mess with ruby objects"
16
+ s.description = s.summary
17
+ s.version = Mult::VERSION
18
+ s.author = "John Mair (banisterfiend)"
19
+ s.email = 'jrmair@gmail.com'
20
+ s.date = Time.now.strftime '%Y-%m-%d'
21
+ s.require_path = 'lib'
22
+ s.homepage = "http://banisterfiend.wordpress.com"
23
+ s.platform = 'i386-mswin32'
24
+ # s.platform = Gem::Platform::RUBY
25
+ # s.extensions = FileList["ext/**/extconf.rb"]
26
+ s.has_rdoc = 'yard'
27
+ s.files = ["Rakefile", "README.rdoc", "LICENSE", "lib/mult.rb", "lib/1.8/mult.#{dlext}", "lib/1.9/mult.#{dlext}",
28
+ "lib/mult/version.rb"] +
29
+ FileList["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c"].to_a
28
30
  end
29
31
 
30
32
  Rake::GemPackageTask.new(spec) do |pkg|
31
- pkg.need_zip = false
32
- pkg.need_tar = false
33
+ pkg.need_zip = false
34
+ pkg.need_tar = false
33
35
  end
34
36
 
35
37
  # Rake::ExtensionTask.new('mult', spec) do |ext|
data/ext/mult/mult.c CHANGED
@@ -1,20 +1,16 @@
1
1
  #include <ruby.h>
2
2
  #include "compat.h"
3
3
 
4
-
5
4
  /* return the actual class of an object */
6
5
  static VALUE
7
6
  get_class(VALUE self) {
8
-
9
7
  return CLASS_OF(self);
10
8
  }
11
9
 
12
10
  /* set the class of an object */
13
11
  static VALUE
14
12
  set_class(VALUE self, VALUE klass) {
15
-
16
13
  KLASS_OF(self) = klass;
17
-
18
14
  return klass;
19
15
  }
20
16
 
@@ -29,16 +25,13 @@ get_super(VALUE self)
29
25
  /* set the super class of an object */
30
26
  static VALUE
31
27
  set_super(VALUE self, VALUE klass) {
32
-
33
28
  RCLASS_SUPER(self) = klass;
34
-
35
29
  return klass;
36
30
  }
37
31
 
38
32
  /* is the object a singleton class ? */
39
33
  static VALUE
40
34
  is_singleton(VALUE self, VALUE klass) {
41
-
42
35
  return FL_TEST(self, FL_SINGLETON) ? Qtrue : Qfalse;
43
36
  }
44
37
 
@@ -69,8 +62,8 @@ Init_mult() {
69
62
  rb_define_method(rb_cObject, "actual_class", get_class, 0);
70
63
  rb_define_method(rb_cObject, "actual_class=", set_class, 1);
71
64
 
72
- rb_define_method(rb_cClass, "actual_super", get_super, 0);
73
- rb_define_method(rb_cClass, "actual_super=", set_super, 1);
65
+ rb_define_method(rb_cModule, "actual_super", get_super, 0);
66
+ rb_define_method(rb_cModule, "actual_super=", set_super, 1);
74
67
 
75
68
  rb_define_method(rb_cClass, "is_singleton?", is_singleton, 0);
76
69
 
data/lib/1.8/mult.so CHANGED
Binary file
data/lib/1.9/mult.so CHANGED
Binary file
@@ -0,0 +1,3 @@
1
+ module Mult
2
+ VERSION = "0.1.4"
3
+ end
data/lib/mult.rb CHANGED
@@ -1,4 +1,7 @@
1
- require 'rbconfig'
1
+ direc = File.dirname(__FILE__)
2
+
3
+ require "rbconfig"
4
+ require "#{direc}/mult/version"
2
5
 
3
6
  direc = File.dirname(__FILE__)
4
7
  dlext = Config::CONFIG['DLEXT']
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mult
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
- - 2
9
- version: 0.1.2
9
+ - 4
10
+ version: 0.1.4
10
11
  platform: i386-mswin32
11
12
  authors:
12
13
  - John Mair (banisterfiend)
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-07-06 00:00:00 +12:00
18
+ date: 2010-10-20 00:00:00 +13:00
18
19
  default_executable:
19
20
  dependencies: []
20
21
 
@@ -33,10 +34,11 @@ files:
33
34
  - lib/mult.rb
34
35
  - lib/1.8/mult.so
35
36
  - lib/1.9/mult.so
37
+ - lib/mult/version.rb
36
38
  - ext/mult/extconf.rb
37
39
  - ext/mult/compat.h
38
40
  - ext/mult/mult.c
39
- has_rdoc: true
41
+ has_rdoc: yard
40
42
  homepage: http://banisterfiend.wordpress.com
41
43
  licenses: []
42
44
 
@@ -46,23 +48,27 @@ rdoc_options: []
46
48
  require_paths:
47
49
  - lib
48
50
  required_ruby_version: !ruby/object:Gem::Requirement
51
+ none: false
49
52
  requirements:
50
53
  - - ">="
51
54
  - !ruby/object:Gem::Version
55
+ hash: 3
52
56
  segments:
53
57
  - 0
54
58
  version: "0"
55
59
  required_rubygems_version: !ruby/object:Gem::Requirement
60
+ none: false
56
61
  requirements:
57
62
  - - ">="
58
63
  - !ruby/object:Gem::Version
64
+ hash: 3
59
65
  segments:
60
66
  - 0
61
67
  version: "0"
62
68
  requirements: []
63
69
 
64
70
  rubyforge_project:
65
- rubygems_version: 1.3.6
71
+ rubygems_version: 1.3.7
66
72
  signing_key:
67
73
  specification_version: 3
68
74
  summary: a few handy extensions to mess with ruby objects