File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def library_name
112
112
#
113
113
def cargo_shared_library
114
114
@cargo_shared_library ||= begin
115
- filename = shared_library
115
+ filename = " #{ library_name } . #{ shared_ext } "
116
116
filename = "lib#{ filename } " unless Gem . win_platform?
117
117
filename
118
118
end
@@ -122,7 +122,7 @@ def cargo_shared_library
122
122
# The basename of the Rust shared library, as installed in the {#ruby_extension_path}.
123
123
#
124
124
def shared_library
125
- @shared_library ||= "#{ library_name } .#{ shared_ext } "
125
+ @shared_library ||= "#{ library_name } .so "
126
126
end
127
127
128
128
#
Original file line number Diff line number Diff line change @@ -74,14 +74,14 @@ def test_shared_library
74
74
config . stubs ( :library_name ) . returns ( 'foobar' )
75
75
config . stubs ( :shared_ext ) . returns ( 'ext' )
76
76
Gem . stubs ( :win_platform? ) . returns ( false )
77
- assert_equal 'foobar.ext ' , config . shared_library
77
+ assert_equal 'foobar.so ' , config . shared_library
78
78
end
79
79
80
80
def test_shared_library_windows
81
81
config . stubs ( :library_name ) . returns ( 'foobar' )
82
82
config . stubs ( :shared_ext ) . returns ( 'ext' )
83
83
Gem . stubs ( :win_platform? ) . returns ( true )
84
- assert_equal 'foobar.ext ' , config . shared_library
84
+ assert_equal 'foobar.so ' , config . shared_library
85
85
end
86
86
87
87
def test_cargo_shared_library
You can’t perform that action at this time.
0 commit comments