|
82 | 82 | $gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem" |
83 | 83 |
|
84 | 84 | Write-Host "Looking to install $gemToInstall" |
85 | | - gem install --local "$gemToInstall" |
| 85 | + gem install "$gemToInstall" |
86 | 86 |
|
87 | 87 | - name: Test if TinyTDS loads |
88 | 88 | shell: pwsh |
@@ -124,18 +124,18 @@ jobs: |
124 | 124 | run: | |
125 | 125 | $rubyArchitecture = (ruby -e "puts RbConfig::CONFIG['arch']").Trim() |
126 | 126 | $gemVersion = (Get-Content VERSION).Trim() |
127 | | - $gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem" |
| 127 | + $gemToUnpack = "./tiny_tds-$gemVersion-$rubyArchitecture.gem" |
128 | 128 |
|
129 | | - Write-Host "Looking to install $gemToInstall" |
130 | | - gem install --local --install-dir=./tmp "$gemToInstall" |
| 129 | + Write-Host "Looking to unpack $gemToUnpack" |
| 130 | + gem unpack --target ./tmp "$gemToUnpack" |
131 | 131 |
|
132 | 132 | # Restore precompiled code |
133 | | - $source = (Resolve-Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path |
| 133 | + $source = (Resolve-Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path |
134 | 134 | $destination = (Resolve-Path ".\lib\tiny_tds").Path |
135 | 135 | Get-ChildItem $source -Recurse -Exclude "*.rb" | Copy-Item -Destination {Join-Path $destination $_.FullName.Substring($source.length)} |
136 | 136 |
|
137 | 137 | # Restore ports |
138 | | - Copy-Item -Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse |
| 138 | + Copy-Item -Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse |
139 | 139 |
|
140 | 140 | - name: Setup MSSQL |
141 | 141 | uses: potatoqualitee/[email protected] |
@@ -203,7 +203,7 @@ jobs: |
203 | 203 | $gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem" |
204 | 204 |
|
205 | 205 | Write-Host "Looking to install $gemToInstall" |
206 | | - gem install --local "$gemToInstall" |
| 206 | + gem install "$gemToInstall" |
207 | 207 |
|
208 | 208 | - name: Test if TinyTDS loads |
209 | 209 | shell: pwsh |
@@ -245,18 +245,18 @@ jobs: |
245 | 245 | run: | |
246 | 246 | $rubyArchitecture = (ruby -e "puts RbConfig::CONFIG['arch']").Trim() |
247 | 247 | $gemVersion = (Get-Content VERSION).Trim() |
248 | | - $gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem" |
| 248 | + $gemToUnpack = "./tiny_tds-$gemVersion-$rubyArchitecture.gem" |
249 | 249 |
|
250 | | - Write-Host "Looking to install $gemToInstall" |
251 | | - gem install --local --install-dir=./tmp "$gemToInstall" |
| 250 | + Write-Host "Looking to unpack $gemToUnpack" |
| 251 | + gem unpack --target ./tmp "$gemToUnpack" |
252 | 252 |
|
253 | 253 | # Restore precompiled code |
254 | | - $source = (Resolve-Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path |
| 254 | + $source = (Resolve-Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path |
255 | 255 | $destination = (Resolve-Path ".\lib\tiny_tds").Path |
256 | 256 | Get-ChildItem $source -Recurse -Exclude "*.rb" | Copy-Item -Destination {Join-Path $destination $_.FullName.Substring($source.length)} |
257 | 257 |
|
258 | 258 | # Restore ports |
259 | | - Copy-Item -Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse |
| 259 | + Copy-Item -Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse |
260 | 260 |
|
261 | 261 | - name: Setup MSSQL |
262 | 262 | uses: potatoqualitee/[email protected] |
@@ -319,7 +319,7 @@ jobs: |
319 | 319 | shell: pwsh |
320 | 320 | run: | |
321 | 321 | $gemVersion = (Get-Content VERSION).Trim() |
322 | | - gem install --local "tiny_tds-$gemVersion.gem" |
| 322 | + gem install "tiny_tds-$gemVersion.gem" |
323 | 323 |
|
324 | 324 | - name: Test if TinyTDS loads |
325 | 325 | shell: pwsh |
@@ -458,7 +458,7 @@ jobs: |
458 | 458 | shell: bash |
459 | 459 | run: | |
460 | 460 | gemVersion=$(<VERSION tr -d '[:space:]') |
461 | | - gem install --local "tiny_tds-$gemVersion.gem" |
| 461 | + gem install "tiny_tds-$gemVersion.gem" |
462 | 462 |
|
463 | 463 | - name: Test if TinyTDS loads |
464 | 464 | shell: bash |
|
0 commit comments