Skip to content

Commit

Permalink
Merge pull request #561 from andyundso/bigdecimal-dependency
Browse files Browse the repository at this point in the history
Add `bigdecimal` as a dependency
  • Loading branch information
andyundso authored Oct 23, 2024
2 parents f971cce + a9c5d88 commit bb1d8ae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
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

0 comments on commit bb1d8ae

Please sign in to comment.