RubyInline 3.12.2 → 3.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data/History.txt +20 -0
- data/README.txt +1 -1
- data/lib/inline.rb +19 -10
- data/test/test_inline.rb +2 -1
- data.tar.gz.sig +0 -0
- metadata +79 -110
- metadata.gz.sig +0 -0
- data/.gemtest +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0b52a9c305b0637630dac7864963cfeffcc35339b07a2e53247c993b6a6d025c
|
4
|
+
data.tar.gz: aa2215a384451f9b97d8ab5671c54e3b2d00acbca603e1848d8f2dc72a093009
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2834680eb4b3f5a11f96d6b258d95bc72c68f3fe61e1cf8785496a4f161b429d2b5d6a0c06f004544308a52b210c846fd78a73e114b34208c7135e13cab433bd
|
7
|
+
data.tar.gz: d966280a6cf13529cb3781801c39a08bd03da5c4576ddb244296b22065c1e17ccc3582d73acb07342ded1fa978a4f25d7c054f4fbd34cde1bd6a165056477a23
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data/History.txt
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
=== 3.12.5 / 2019-10-08
|
2
|
+
|
3
|
+
* 1 bug fix:
|
4
|
+
|
5
|
+
* Fixed a race condition between testing for file existance and renaming. (spjsschl)
|
6
|
+
|
7
|
+
=== 3.12.4 / 2015-04-14
|
8
|
+
|
9
|
+
* 1 bug fix:
|
10
|
+
|
11
|
+
* Fixed arch header directoy with Ruby >= 2.0. (aurelj)
|
12
|
+
|
13
|
+
=== 3.12.3 / 2014-04-29
|
14
|
+
|
15
|
+
* 3 bug fixes:
|
16
|
+
|
17
|
+
* Fixed code/home urls in readme/gem.
|
18
|
+
* Fixed linker error on clang+freebsd10+rbenv.
|
19
|
+
* Removed old hack for osx 10.5
|
20
|
+
|
1
21
|
=== 3.12.2 / 2013-04-18
|
2
22
|
|
3
23
|
* 2 minor enhancements:
|
data/README.txt
CHANGED
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.12.
|
68
|
+
VERSION = "3.12.5"
|
69
69
|
|
70
70
|
WINDOZE = /mswin|mingw/ =~ RUBY_PLATFORM
|
71
71
|
RUBINIUS = defined? RUBY_ENGINE
|
@@ -100,6 +100,9 @@ module Inline
|
|
100
100
|
#
|
101
101
|
# Perform a check in that other to see if the environment is defined
|
102
102
|
# and if so, use it. only try this on Windows.
|
103
|
+
#
|
104
|
+
# Note, depending on how you're using this (eg, a rails app in
|
105
|
+
# production), you probably want to use absolute paths.
|
103
106
|
|
104
107
|
def self.rootdir
|
105
108
|
env = ENV['INLINEDIR'] || ENV['HOME']
|
@@ -566,7 +569,9 @@ VALUE #{method}_equals(VALUE value) {
|
|
566
569
|
flags = @flags.join(' ')
|
567
570
|
libs = @libs.join(' ')
|
568
571
|
|
569
|
-
config_hdrdir = if
|
572
|
+
config_hdrdir = if RbConfig::CONFIG['rubyarchhdrdir'] then
|
573
|
+
"-I #{RbConfig::CONFIG['rubyarchhdrdir']}"
|
574
|
+
elsif RUBY_VERSION > '1.9' then
|
570
575
|
"-I #{File.join hdrdir, RbConfig::CONFIG['arch']}"
|
571
576
|
else
|
572
577
|
nil
|
@@ -592,12 +597,12 @@ VALUE #{method}_equals(VALUE value) {
|
|
592
597
|
(RbConfig::CONFIG['CCDLFLAGS'] if windoze),
|
593
598
|
].compact.join(' ')
|
594
599
|
|
595
|
-
|
596
|
-
|
600
|
+
# odd compilation error on clang + freebsd 10. Ruby built w/ rbenv.
|
601
|
+
cmd = cmd.gsub(/-Wl,-soname,\$@/, "-Wl,-soname,#{File.basename so_name}")
|
602
|
+
|
603
|
+
# strip off some makefile macros for mingw 1.9
|
604
|
+
cmd = cmd.gsub(/\$\(.*\)/, '') if RUBY_PLATFORM =~ /mingw/
|
597
605
|
|
598
|
-
# TODO: remove after osx 10.5.2
|
599
|
-
cmd += ' -flat_namespace -undefined suppress' if
|
600
|
-
RUBY_PLATFORM =~ /darwin9\.[01]/
|
601
606
|
cmd += " 2> #{DEV_NULL}" if $TESTING and not $DEBUG
|
602
607
|
|
603
608
|
warn "Building #{so_name} with '#{cmd}'" if $DEBUG
|
@@ -868,9 +873,13 @@ class File
|
|
868
873
|
|
869
874
|
# move previous version to the side if it exists
|
870
875
|
renamed = false
|
871
|
-
if
|
872
|
-
|
873
|
-
|
876
|
+
if File.file? path then
|
877
|
+
begin
|
878
|
+
File.rename path, path + ".old"
|
879
|
+
renamed = true
|
880
|
+
rescue SystemCallError
|
881
|
+
# do nothing
|
882
|
+
end
|
874
883
|
end
|
875
884
|
|
876
885
|
File.open(path, "w") do |io|
|
data/test/test_inline.rb
CHANGED
@@ -17,7 +17,7 @@ require 'pathname'
|
|
17
17
|
$inline_path = './lib/inline.rb'
|
18
18
|
$test_inline_path = './test/test_inline.rb'
|
19
19
|
|
20
|
-
class InlineTestCase <
|
20
|
+
class InlineTestCase < Minitest::Test
|
21
21
|
def setup
|
22
22
|
super
|
23
23
|
@rootdir = File.join(Dir.tmpdir, "test_inline.#{$$}")
|
@@ -933,6 +933,7 @@ extern \"C\" {
|
|
933
933
|
|
934
934
|
def test_load
|
935
935
|
# totally tested by test_build
|
936
|
+
assert true
|
936
937
|
end
|
937
938
|
|
938
939
|
end # class TestC
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,24 +1,18 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: RubyInline
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 3
|
8
|
-
- 12
|
9
|
-
- 2
|
10
|
-
version: 3.12.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.12.5
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Ryan Davis
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
|
-
cert_chain:
|
10
|
+
cert_chain:
|
17
11
|
- |
|
18
12
|
-----BEGIN CERTIFICATE-----
|
19
|
-
|
13
|
+
MIIDPjCCAiagAwIBAgIBAzANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
|
20
14
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
21
|
-
|
15
|
+
GRYDY29tMB4XDTE4MTIwNDIxMzAxNFoXDTE5MTIwNDIxMzAxNFowRTETMBEGA1UE
|
22
16
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
23
17
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
24
18
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -27,97 +21,82 @@ cert_chain:
|
|
27
21
|
GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
|
28
22
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
29
23
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
30
|
-
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
24
|
+
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
|
25
|
+
AQCbJwLmpJR2PomLU+Zzw3KRzH/hbyUWc/ftru71AopZ1fy4iY9J/BW5QYKVYwbP
|
26
|
+
V0FSBWtvfI/RdwfKGtuGhPKECZgmLieGuZ3XCc09qPu1bdg7i/tu1p0t0c6163ku
|
27
|
+
nDMDIC/t/DAFK0TY9I3HswuyZGbLW7rgF0DmiuZdN/RPhHq2pOLMLXJmFclCb/im
|
28
|
+
9yToml/06TJdUJ5p64mkBs0TzaK66DIB1Smd3PdtfZqoRV+EwaXMdx0Hb3zdR1JR
|
29
|
+
Em82dBUFsipwMLCYj39kcyHWAxyl6Ae1Cn9r/ItVBCxoeFdrHjfavnrIEoXUt4bU
|
30
|
+
UfBugfLD19bu3nvL+zTAGx/U
|
37
31
|
-----END CERTIFICATE-----
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
- !ruby/object:Gem::Dependency
|
32
|
+
date: 2019-10-09 00:00:00.000000000 Z
|
33
|
+
dependencies:
|
34
|
+
- !ruby/object:Gem::Dependency
|
42
35
|
name: ZenTest
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
hash: 29
|
50
|
-
segments:
|
51
|
-
- 4
|
52
|
-
- 3
|
53
|
-
version: "4.3"
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '4.3'
|
54
41
|
type: :runtime
|
55
|
-
version_requirements: *id001
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: minitest
|
58
42
|
prerelease: false
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
segments:
|
66
|
-
- 4
|
67
|
-
- 7
|
68
|
-
version: "4.7"
|
69
|
-
type: :development
|
70
|
-
version_requirements: *id002
|
71
|
-
- !ruby/object:Gem::Dependency
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '4.3'
|
48
|
+
- !ruby/object:Gem::Dependency
|
72
49
|
name: rdoc
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
- 4
|
82
|
-
- 0
|
83
|
-
version: "4.0"
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '4.0'
|
55
|
+
- - "<"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '7'
|
84
58
|
type: :development
|
85
|
-
version_requirements: *id003
|
86
|
-
- !ruby/object:Gem::Dependency
|
87
|
-
name: hoe
|
88
59
|
prerelease: false
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
60
|
+
version_requirements: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '4.0'
|
65
|
+
- - "<"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '7'
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: hoe
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '3.18'
|
99
75
|
type: :development
|
100
|
-
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '3.18'
|
101
82
|
description: |-
|
102
83
|
Inline allows you to write foreign code within your ruby code. It
|
103
84
|
automatically determines if the code in question has changed and
|
104
85
|
builds it only when necessary. The extensions are then automatically
|
105
86
|
loaded into the class/module that defines it.
|
106
|
-
|
87
|
+
|
107
88
|
You can even write extra builders that will allow you to write inlined
|
108
89
|
code in any language. Use Inline::C as a template and look at
|
109
90
|
Module#inline for the required API.
|
110
|
-
email:
|
91
|
+
email:
|
111
92
|
- ryand-ruby@zenspider.com
|
112
93
|
executables: []
|
113
|
-
|
114
94
|
extensions: []
|
115
|
-
|
116
|
-
extra_rdoc_files:
|
95
|
+
extra_rdoc_files:
|
117
96
|
- History.txt
|
118
97
|
- Manifest.txt
|
119
98
|
- README.txt
|
120
|
-
files:
|
99
|
+
files:
|
121
100
|
- History.txt
|
122
101
|
- Manifest.txt
|
123
102
|
- README.txt
|
@@ -130,40 +109,30 @@ files:
|
|
130
109
|
- test/test_inline.rb
|
131
110
|
- tutorial/example1.rb
|
132
111
|
- tutorial/example2.rb
|
133
|
-
- .gemtest
|
134
112
|
homepage: http://www.zenspider.com/ZSS/Products/RubyInline/
|
135
|
-
licenses:
|
136
|
-
|
113
|
+
licenses:
|
114
|
+
- MIT
|
115
|
+
metadata: {}
|
137
116
|
post_install_message:
|
138
|
-
rdoc_options:
|
139
|
-
- --main
|
117
|
+
rdoc_options:
|
118
|
+
- "--main"
|
140
119
|
- README.txt
|
141
|
-
require_paths:
|
120
|
+
require_paths:
|
142
121
|
- lib
|
143
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
-
|
145
|
-
requirements:
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
146
124
|
- - ">="
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
version: "0"
|
152
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
|
-
requirements:
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
155
129
|
- - ">="
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
|
158
|
-
|
159
|
-
- 0
|
160
|
-
version: "0"
|
161
|
-
requirements:
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
requirements:
|
162
133
|
- A POSIX environment and a compiler for your language.
|
163
|
-
|
164
|
-
rubygems_version: 1.8.25
|
134
|
+
rubygems_version: 3.0.6
|
165
135
|
signing_key:
|
166
|
-
specification_version:
|
136
|
+
specification_version: 4
|
167
137
|
summary: Inline allows you to write foreign code within your ruby code
|
168
|
-
test_files:
|
169
|
-
- test/test_inline.rb
|
138
|
+
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|
data/.gemtest
DELETED
File without changes
|