RubyInline 3.8.1 → 3.8.2

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig ADDED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 3.8.2 / 2009-06-23
2
+
3
+ * 1 bug fix:
4
+
5
+ * ruby 1.9 expands __FILE__ and broke my tests
6
+
1
7
  === 3.8.1 / 2008-10-24
2
8
 
3
9
  * 1 minor enhancement
data/Rakefile CHANGED
@@ -1,19 +1,20 @@
1
- # -*- ruby -*-
1
+ # -*- ruby -*-
2
2
 
3
3
  require 'rubygems'
4
4
  require 'hoe'
5
5
 
6
6
  Hoe.add_include_dirs "../../ZenTest/dev/lib"
7
+ Hoe.add_include_dirs "lib"
7
8
 
8
- require './lib/inline.rb'
9
+ Hoe.plugin :seattlerb
9
10
 
10
- Hoe.new("RubyInline", Inline::VERSION) do |inline|
11
- inline.developer 'Ryan Davis', 'ryand-ruby@zenspider.com'
11
+ Hoe.spec "RubyInline" do
12
+ developer 'Ryan Davis', 'ryand-ruby@zenspider.com'
12
13
 
13
- inline.clean_globs << File.expand_path("~/.ruby_inline")
14
- inline.spec_extras[:requirements] =
14
+ clean_globs << File.expand_path("~/.ruby_inline")
15
+ spec_extras[:requirements] =
15
16
  "A POSIX environment and a compiler for your language."
16
- inline.extra_deps << 'ZenTest' # ZenTest mapping
17
+ extra_deps << 'ZenTest' # ZenTest mapping
17
18
  end
18
19
 
19
20
  task :test => :clean
data/lib/inline.rb CHANGED
@@ -65,7 +65,7 @@ class CompilationError < RuntimeError; end
65
65
  # the current namespace.
66
66
 
67
67
  module Inline
68
- VERSION = '3.8.1'
68
+ VERSION = '3.8.2'
69
69
 
70
70
  WINDOZE = /mswin|mingw/ =~ RUBY_PLATFORM
71
71
  RUBINIUS = defined? RUBY_ENGINE
data/test/test_inline.rb CHANGED
@@ -10,6 +10,17 @@ require 'fileutils' unless defined?(::FileUtils)
10
10
 
11
11
  File.umask(0)
12
12
 
13
+ require 'pathname'
14
+
15
+ $expand_paths = Pathname.new(__FILE__).absolute?
16
+ $inline_path = './lib/inline.rb'
17
+ $test_inline_path = './test/test_inline.rb'
18
+
19
+ if $expand_paths then
20
+ $inline_path = File.expand_path $inline_path
21
+ $test_inline_path = File.expand_path $test_inline_path
22
+ end
23
+
13
24
  class InlineTestCase < Test::Unit::TestCase
14
25
  def setup
15
26
  super
@@ -110,7 +121,7 @@ class TestC < InlineTestCase
110
121
 
111
122
  expected = []
112
123
  expected << <<-READER
113
- # line N "./lib/inline.rb"
124
+ # line N "#{$inline_path}"
114
125
  static VALUE method_name(VALUE self) {
115
126
 
116
127
  MyStruct *pointer;
@@ -122,7 +133,7 @@ static VALUE method_name(VALUE self) {
122
133
  READER
123
134
 
124
135
  expected << <<-WRITER
125
- # line N "./lib/inline.rb"
136
+ # line N "#{$inline_path}"
126
137
  static VALUE method_name_equals(VALUE self, VALUE _value) {
127
138
  VALUE value = (_value);
128
139
 
@@ -149,7 +160,7 @@ static VALUE method_name_equals(VALUE self, VALUE _value) {
149
160
 
150
161
  expected = []
151
162
  expected << <<-READER
152
- # line N "./lib/inline.rb"
163
+ # line N "#{$inline_path}"
153
164
  static VALUE method_name(VALUE self) {
154
165
 
155
166
  MyStruct *pointer;
@@ -161,7 +172,7 @@ static VALUE method_name(VALUE self) {
161
172
  READER
162
173
 
163
174
  expected << <<-WRITER
164
- # line N "./lib/inline.rb"
175
+ # line N "#{$inline_path}"
165
176
  static VALUE method_name_equals(VALUE self, VALUE _value) {
166
177
  VALUE value = (_value);
167
178
 
@@ -217,7 +228,7 @@ static VALUE method_name_equals(VALUE self, VALUE _value) {
217
228
 
218
229
  expected = []
219
230
  expected << <<-READER
220
- # line N "./lib/inline.rb"
231
+ # line N "#{$inline_path}"
221
232
  static VALUE method_name(VALUE self) {
222
233
 
223
234
  MyStruct *pointer;
@@ -241,7 +252,7 @@ static VALUE method_name(VALUE self) {
241
252
 
242
253
  expected = []
243
254
  expected << <<-READER
244
- # line N "./lib/inline.rb"
255
+ # line N "#{$inline_path}"
245
256
  static VALUE method_name(VALUE self) {
246
257
 
247
258
  MyStruct *pointer;
@@ -285,7 +296,7 @@ static VALUE method_name(VALUE self) {
285
296
 
286
297
  expected = []
287
298
  expected << <<-WRITER
288
- # line N "./lib/inline.rb"
299
+ # line N "#{$inline_path}"
289
300
  static VALUE method_name_equals(VALUE self, VALUE _value) {
290
301
  VALUE value = (_value);
291
302
 
@@ -312,7 +323,7 @@ static VALUE method_name_equals(VALUE self, VALUE _value) {
312
323
 
313
324
  expected = []
314
325
  expected << <<-WRITER
315
- # line N "./lib/inline.rb"
326
+ # line N "#{$inline_path}"
316
327
  static VALUE method_name_equals(VALUE self, VALUE _value) {
317
328
  VALUE value = (_value);
318
329
 
@@ -750,11 +761,11 @@ puts(s); return rb_str_new2(s)}"
750
761
  expected = <<-EXT
751
762
  #include "ruby.h"
752
763
 
753
- # line N "./test/test_inline.rb"
764
+ # line N "#{$test_inline_path}"
754
765
  static VALUE allocate(VALUE self) {
755
766
  return (Qnil); }
756
767
 
757
- # line N "./test/test_inline.rb"
768
+ # line N "#{$test_inline_path}"
758
769
  static VALUE my_method(VALUE self) {
759
770
  return (Qnil); }
760
771
 
metadata CHANGED
@@ -1,15 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyInline
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.1
4
+ version: 3.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
+ ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
+ GRYDY29tMB4XDTA5MDMwNjE4NTMxNVoXDTEwMDMwNjE4NTMxNVowRTETMBEGA1UE
16
+ AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
+ JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
+ b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
19
+ taCPaLmfYIaFcHHCSY4hYDJijRQkLxPeB3xbOfzfLoBDbjvx5JxgJxUjmGa7xhcT
20
+ oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
21
+ GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
22
+ qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
+ gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
+ HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
25
+ AQAY59gYvDxqSqgC92nAP9P8dnGgfZgLxP237xS6XxFGJSghdz/nI6pusfCWKM8m
26
+ vzjjH2wUMSSf3tNudQ3rCGLf2epkcU13/rguI88wO6MrE0wi4ZqLQX+eZQFskJb/
27
+ w6x9W1ur8eR01s397LSMexySDBrJOh34cm2AlfKr/jokKCTwcM0OvVZnAutaovC0
28
+ l1SVZ0ecg88bsWHA0Yhh7NFxK1utWoIhtB6AFC/+trM0FQEB/jZkIS8SaNzn96Rl
29
+ n0sZEf77FLf5peR8TP/PtmIg7Cyqz23sLM4mCOoTGIy5OcZ8TdyiyINUHtb5ej/T
30
+ FBHgymkyj/AOSqKRIpXPhjC6
31
+ -----END CERTIFICATE-----
11
32
 
12
- date: 2008-10-24 00:00:00 -07:00
33
+ date: 2009-06-23 00:00:00 -07:00
13
34
  default_executable:
14
35
  dependencies:
15
36
  - !ruby/object:Gem::Dependency
@@ -30,9 +51,17 @@ dependencies:
30
51
  requirements:
31
52
  - - ">="
32
53
  - !ruby/object:Gem::Version
33
- version: 1.8.0
54
+ version: 2.3.0
34
55
  version:
35
- description: Inline allows you to write foreign code within your ruby code. It automatically determines if the code in question has changed and builds it only when necessary. The extensions are then automatically loaded into the class/module that defines it. You can even write extra builders that will allow you to write inlined code in any language. Use Inline::C as a template and look at Module#inline for the required API.
56
+ description: |-
57
+ Inline allows you to write foreign code within your ruby code. It
58
+ automatically determines if the code in question has changed and
59
+ builds it only when necessary. The extensions are then automatically
60
+ loaded into the class/module that defines it.
61
+
62
+ You can even write extra builders that will allow you to write inlined
63
+ code in any language. Use Inline::C as a template and look at
64
+ Module#inline for the required API.
36
65
  email:
37
66
  - ryand-ruby@zenspider.com
38
67
  executables: []
@@ -58,6 +87,8 @@ files:
58
87
  - tutorial/example2.rb
59
88
  has_rdoc: true
60
89
  homepage: http://rubyforge.org/projects/rubyinline/
90
+ licenses: []
91
+
61
92
  post_install_message:
62
93
  rdoc_options:
63
94
  - --main
@@ -79,9 +110,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
110
  requirements:
80
111
  - A POSIX environment and a compiler for your language.
81
112
  rubyforge_project: rubyinline
82
- rubygems_version: 1.3.0
113
+ rubygems_version: 1.3.4
83
114
  signing_key:
84
- specification_version: 2
115
+ specification_version: 3
85
116
  summary: Inline allows you to write foreign code within your ruby code
86
117
  test_files:
87
118
  - test/test_inline.rb
metadata.gz.sig ADDED
Binary file