Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bigdecimal as a dependency #561

Merged
merged 3 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
$gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"

Write-Host "Looking to install $gemToInstall"
gem install --local "$gemToInstall"
gem install "$gemToInstall"

- name: Test if TinyTDS loads
shell: pwsh
Expand Down Expand Up @@ -124,18 +124,18 @@ jobs:
run: |
$rubyArchitecture = (ruby -e "puts RbConfig::CONFIG['arch']").Trim()
$gemVersion = (Get-Content VERSION).Trim()
$gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"
$gemToUnpack = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"

Write-Host "Looking to install $gemToInstall"
gem install --local --install-dir=./tmp "$gemToInstall"
Write-Host "Looking to unpack $gemToUnpack"
gem unpack --target ./tmp "$gemToUnpack"

# Restore precompiled code
$source = (Resolve-Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path
$source = (Resolve-Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path
$destination = (Resolve-Path ".\lib\tiny_tds").Path
Get-ChildItem $source -Recurse -Exclude "*.rb" | Copy-Item -Destination {Join-Path $destination $_.FullName.Substring($source.length)}

# Restore ports
Copy-Item -Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse
Copy-Item -Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse

- name: Setup MSSQL
uses: potatoqualitee/[email protected]
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
$gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"

Write-Host "Looking to install $gemToInstall"
gem install --local "$gemToInstall"
gem install "$gemToInstall"

- name: Test if TinyTDS loads
shell: pwsh
Expand Down Expand Up @@ -245,18 +245,18 @@ jobs:
run: |
$rubyArchitecture = (ruby -e "puts RbConfig::CONFIG['arch']").Trim()
$gemVersion = (Get-Content VERSION).Trim()
$gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"
$gemToUnpack = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"

Write-Host "Looking to install $gemToInstall"
gem install --local --install-dir=./tmp "$gemToInstall"
Write-Host "Looking to unpack $gemToUnpack"
gem unpack --target ./tmp "$gemToUnpack"

# Restore precompiled code
$source = (Resolve-Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path
$source = (Resolve-Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path
$destination = (Resolve-Path ".\lib\tiny_tds").Path
Get-ChildItem $source -Recurse -Exclude "*.rb" | Copy-Item -Destination {Join-Path $destination $_.FullName.Substring($source.length)}

# Restore ports
Copy-Item -Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse
Copy-Item -Path ".\tmp\tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse

- name: Setup MSSQL
uses: potatoqualitee/[email protected]
Expand Down Expand Up @@ -319,7 +319,7 @@ jobs:
shell: pwsh
run: |
$gemVersion = (Get-Content VERSION).Trim()
gem install --local "tiny_tds-$gemVersion.gem"
gem install "tiny_tds-$gemVersion.gem"

- name: Test if TinyTDS loads
shell: pwsh
Expand Down Expand Up @@ -458,7 +458,7 @@ jobs:
shell: bash
run: |
gemVersion=$(<VERSION tr -d '[:space:]')
gem install --local "tiny_tds-$gemVersion.gem"
gem install "tiny_tds-$gemVersion.gem"

- name: Test if TinyTDS loads
shell: bash
Expand Down
1 change: 1 addition & 0 deletions tiny_tds.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Gem::Specification.new do |s|
s.license = 'MIT'
s.required_ruby_version = '>= 2.7.0'
s.metadata['msys2_mingw_dependencies'] = 'freetds'
s.add_dependency 'bigdecimal', '~> 3'
s.add_development_dependency 'mini_portile2', '~> 2.5.0'
s.add_development_dependency 'rake', '~> 13.0.0'
s.add_development_dependency 'rake-compiler', '~> 1.2'
Expand Down