RubyInline 3.12.3 → 3.12.6

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
- SHA1:
3
- metadata.gz: 1d6182b09e600d7b7fb93d56bf4d602b89e3f95a
4
- data.tar.gz: 7acc51292d14cceacc6fe39c901f8cb4840de60b
2
+ SHA256:
3
+ metadata.gz: 7ba7b8737df8454f2428459aa7066082c3966cd52213ae62126489327ce614b9
4
+ data.tar.gz: 77476279cc150dbfec24b72cfbee747af92f13489e6c46d44436deb06e095fa7
5
5
  SHA512:
6
- metadata.gz: 243478a68519a0ff15331f215773a1bb0905d16b9574af1ff421e783e976b9960483a1cfbe962c4525531cfc73f4add448a33b9038bb481285766d4b84507b76
7
- data.tar.gz: 1829ff4d6d1a19005052c36ee2f9fa8f5442ea653f556dbaabaf307e476a553c256db762048fdb588f6373a147001ace2022315cc727138f525be7907df3bf9e
6
+ metadata.gz: eb1b824084189a44908e5896fba9acb9637c26c31a5944f0c3bd9fa986aae2986e30c05f4a1886672d8dc9a46b619a8b566d5051f8504a48365ddc96d85473fd
7
+ data.tar.gz: 1c9184d49d7ecf30af622fa8a6b317ca84707524f810b6ee9eb675ceb68d419814116f85eb096ffca523634e7d9f4287e538de584eb2786684b1c05f298bcb0c
checksums.yaml.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,21 @@
1
+ === 3.12.6 / 2022-05-23
2
+
3
+ * 1 bug fix:
4
+
5
+ * Removed rubinius support. LOL.
6
+
7
+ === 3.12.5 / 2019-10-08
8
+
9
+ * 1 bug fix:
10
+
11
+ * Fixed a race condition between testing for file existance and renaming. (spjsschl)
12
+
13
+ === 3.12.4 / 2015-04-14
14
+
15
+ * 1 bug fix:
16
+
17
+ * Fixed arch header directoy with Ruby >= 2.0. (aurelj)
18
+
1
19
  === 3.12.3 / 2014-04-29
2
20
 
3
21
  * 3 bug fixes:
data/lib/inline.rb CHANGED
@@ -65,17 +65,12 @@ class CompilationError < RuntimeError; end
65
65
  # the current namespace.
66
66
 
67
67
  module Inline
68
- VERSION = "3.12.3"
68
+ VERSION = "3.12.6"
69
69
 
70
70
  WINDOZE = /mswin|mingw/ =~ RUBY_PLATFORM
71
- RUBINIUS = defined? RUBY_ENGINE
72
71
  DEV_NULL = (WINDOZE ? 'nul' : '/dev/null')
73
72
  GEM = 'gem'
74
- RAKE = if RUBINIUS then
75
- File.join(Gem.bindir, 'rake')
76
- else
77
- "#{Gem.ruby} -S rake"
78
- end
73
+ RAKE = "#{Gem.ruby} -S rake"
79
74
 
80
75
  warn "RubyInline v #{VERSION}" if $DEBUG
81
76
 
@@ -100,6 +95,9 @@ module Inline
100
95
  #
101
96
  # Perform a check in that other to see if the environment is defined
102
97
  # and if so, use it. only try this on Windows.
98
+ #
99
+ # Note, depending on how you're using this (eg, a rails app in
100
+ # production), you probably want to use absolute paths.
103
101
 
104
102
  def self.rootdir
105
103
  env = ENV['INLINEDIR'] || ENV['HOME']
@@ -566,7 +564,9 @@ VALUE #{method}_equals(VALUE value) {
566
564
  flags = @flags.join(' ')
567
565
  libs = @libs.join(' ')
568
566
 
569
- config_hdrdir = if RUBY_VERSION > '1.9' then
567
+ config_hdrdir = if RbConfig::CONFIG['rubyarchhdrdir'] then
568
+ "-I #{RbConfig::CONFIG['rubyarchhdrdir']}"
569
+ elsif RUBY_VERSION > '1.9' then
570
570
  "-I #{File.join hdrdir, RbConfig::CONFIG['arch']}"
571
571
  else
572
572
  nil
@@ -868,9 +868,13 @@ class File
868
868
 
869
869
  # move previous version to the side if it exists
870
870
  renamed = false
871
- if test ?f, path then
872
- renamed = true
873
- File.rename path, path + ".old"
871
+ if File.file? path then
872
+ begin
873
+ File.rename path, path + ".old"
874
+ renamed = true
875
+ rescue SystemCallError
876
+ # do nothing
877
+ end
874
878
  end
875
879
 
876
880
  File.open(path, "w") do |io|
data/test/test_inline.rb CHANGED
@@ -870,8 +870,6 @@ extern \"C\" {
870
870
  end
871
871
 
872
872
  def test_build_good
873
- skip "https://github.com/MagLev/maglev/issues/231" if maglev?
874
-
875
873
  code = util_simple_code(:DumbTest1, "long dumbpi() { return 314; }")
876
874
  util_test_build(code) do
877
875
  result = DumbTest1.new.dumbpi
@@ -982,8 +980,6 @@ EOR
982
980
 
983
981
  class TestModule < InlineTestCase
984
982
  def test_nested
985
- skip "https://github.com/MagLev/maglev/issues/231" if maglev?
986
-
987
983
  Object.class_eval $test_module_code
988
984
  fb = Foo::Bar.new
989
985
  assert_equal(42, fb.forty_two_instance)
@@ -1004,16 +1000,12 @@ class TestModule < InlineTestCase
1004
1000
  end
1005
1001
 
1006
1002
  def test_argument_check_good
1007
- skip "https://github.com/MagLev/maglev/issues/231" if maglev?
1008
-
1009
1003
  util_arity_check
1010
1004
  fb = Foo::Bar.new
1011
1005
  assert_equal 13, fb.arity6(1, 2, 3, 4, 5, "blah")
1012
1006
  end
1013
1007
 
1014
1008
  def test_argument_check_fewer
1015
- skip "https://github.com/MagLev/maglev/issues/231" if maglev?
1016
-
1017
1009
  util_arity_check
1018
1010
  fb = Foo::Bar.new
1019
1011
 
@@ -1023,8 +1015,6 @@ class TestModule < InlineTestCase
1023
1015
  end
1024
1016
 
1025
1017
  def test_argument_check_more
1026
- skip "https://github.com/MagLev/maglev/issues/231" if maglev?
1027
-
1028
1018
  util_arity_check
1029
1019
  fb = Foo::Bar.new
1030
1020
  assert_raises ArgumentError do
@@ -1033,8 +1023,6 @@ class TestModule < InlineTestCase
1033
1023
  end
1034
1024
 
1035
1025
  def test_inline
1036
- skip "https://github.com/MagLev/maglev/issues/231" if maglev?
1037
-
1038
1026
  self.class.inline(:C) do |builder|
1039
1027
  builder.c "int add(int a, int b) { return a + b; }"
1040
1028
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyInline
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.12.3
4
+ version: 3.12.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTEzMDkxNjIzMDQxMloXDTE0MDkxNjIzMDQxMlowRTETMBEGA1UE
15
+ GRYDY29tMB4XDTIxMTIyMzIzMTkwNFoXDTIyMTIyMzIzMTkwNFowRTETMBEGA1UE
16
16
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
17
  JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
18
  b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -21,72 +21,64 @@ cert_chain:
21
21
  GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
22
22
  qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
23
  gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
- HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
25
- AQCFZ7JTzoy1gcG4d8A6dmOJy7ygtO5MFpRIz8HuKCF5566nOvpy7aHhDDzFmQuu
26
- FX3zDU6ghx5cQIueDhf2SGOncyBmmJRRYawm3wI0o1MeN6LZJ/3cRaOTjSFy6+S6
27
- zqDmHBp8fVA2TGJtO0BLNkbGVrBJjh0UPmSoGzWlRhEVnYC33TpDAbNA+u39UrQI
28
- ynwhNN7YbnmSR7+JU2cUjBFv2iPBO+TGuWC+9L2zn3NHjuc6tnmSYipA9y8Hv+As
29
- Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
30
- xx3n58i0lQkBE1EpKE0lFu/y
24
+ HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
25
+ AQCKB5jfsuSnKb+t/Wrh3UpdkmX7TrEsjVmERC0pPqzQ5GQJgmEXDD7oMgaKXaAq
26
+ x2m+KSZDrqk7c8uho5OX6YMqg4KdxehfSLqqTZGoeV78qwf/jpPQZKTf+W9gUSJh
27
+ zsWpo4K50MP+QtdSbKXZwjAafpQ8hK0MnnZ/aeCsW9ov5vdXpYbf3dpg6ADXRGE7
28
+ lQY2y1tJ5/chqu6h7dQmnm2ABUqx9O+JcN9hbCYoA5i/EeubUEtFIh2w3SpO6YfB
29
+ JFmxn4h9YO/pVdB962BdBNNDia0kgIjI3ENnkLq0dKpYU3+F3KhEuTksLO0L6X/V
30
+ YsuyUzsMz6GQA4khyaMgKNSD
31
31
  -----END CERTIFICATE-----
32
- date: 2014-04-29 00:00:00.000000000 Z
32
+ date: 2022-05-23 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: ZenTest
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.3'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.3'
48
- - !ruby/object:Gem::Dependency
49
- name: minitest
50
- requirement: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: '5.3'
55
- type: :development
56
- prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '5.3'
62
48
  - !ruby/object:Gem::Dependency
63
49
  name: rdoc
64
50
  requirement: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - ~>
52
+ - - ">="
67
53
  - !ruby/object:Gem::Version
68
54
  version: '4.0'
55
+ - - "<"
56
+ - !ruby/object:Gem::Version
57
+ version: '7'
69
58
  type: :development
70
59
  prerelease: false
71
60
  version_requirements: !ruby/object:Gem::Requirement
72
61
  requirements:
73
- - - ~>
62
+ - - ">="
74
63
  - !ruby/object:Gem::Version
75
64
  version: '4.0'
65
+ - - "<"
66
+ - !ruby/object:Gem::Version
67
+ version: '7'
76
68
  - !ruby/object:Gem::Dependency
77
69
  name: hoe
78
70
  requirement: !ruby/object:Gem::Requirement
79
71
  requirements:
80
- - - ~>
72
+ - - "~>"
81
73
  - !ruby/object:Gem::Version
82
- version: '3.12'
74
+ version: '3.23'
83
75
  type: :development
84
76
  prerelease: false
85
77
  version_requirements: !ruby/object:Gem::Requirement
86
78
  requirements:
87
- - - ~>
79
+ - - "~>"
88
80
  - !ruby/object:Gem::Version
89
- version: '3.12'
81
+ version: '3.23'
90
82
  description: |-
91
83
  Inline allows you to write foreign code within your ruby code. It
92
84
  automatically determines if the code in question has changed and
@@ -105,7 +97,6 @@ extra_rdoc_files:
105
97
  - Manifest.txt
106
98
  - README.txt
107
99
  files:
108
- - .gemtest
109
100
  - History.txt
110
101
  - Manifest.txt
111
102
  - README.txt
@@ -121,29 +112,29 @@ files:
121
112
  homepage: http://www.zenspider.com/ZSS/Products/RubyInline/
122
113
  licenses:
123
114
  - MIT
124
- metadata: {}
125
- post_install_message:
115
+ metadata:
116
+ homepage_uri: http://www.zenspider.com/ZSS/Products/RubyInline/
117
+ source_code_uri: https://github.com/seattlerb/rubyinline
118
+ post_install_message:
126
119
  rdoc_options:
127
- - --main
120
+ - "--main"
128
121
  - README.txt
129
122
  require_paths:
130
123
  - lib
131
124
  required_ruby_version: !ruby/object:Gem::Requirement
132
125
  requirements:
133
- - - '>='
126
+ - - ">="
134
127
  - !ruby/object:Gem::Version
135
128
  version: '0'
136
129
  required_rubygems_version: !ruby/object:Gem::Requirement
137
130
  requirements:
138
- - - '>='
131
+ - - ">="
139
132
  - !ruby/object:Gem::Version
140
133
  version: '0'
141
134
  requirements:
142
135
  - A POSIX environment and a compiler for your language.
143
- rubyforge_project:
144
- rubygems_version: 2.2.1
145
- signing_key:
136
+ rubygems_version: 3.3.12
137
+ signing_key:
146
138
  specification_version: 4
147
139
  summary: Inline allows you to write foreign code within your ruby code
148
- test_files:
149
- - test/test_inline.rb
140
+ test_files: []
metadata.gz.sig CHANGED
Binary file
data/.gemtest DELETED
File without changes