ruby-plsql-spec
ruby-plsql-spec copied to clipboard
Installation instructions fail
The installation instructions propose that we install ruby-oci8 and ruby-plsql-rpec. I've tried this on two version.
ruby v2.7: ruby-oci8 installs fine. ruby-plsql-spec fails due to Nokogiri package supported only till ruby 2.4
ruby v2.4: ruby-oci8 fails - requires ruby 2.5 >
Bit of a paradox. It would be good to know the exact dependencies this is tested with so people can follow the same when installing. Appreciate this is actually because of external packages and a bit out of this package's hand. I am a newbie in ruby - and this may have a very obvious solution such as installing an older version of ruby-oci8.
Did you get any solution to this.
This is a problem on Windows only. For our Windows-based developers I have modified ruby-plsql-spec gem and updated nokogiri dependency to 1.8. This works fine.
Thank @bpom , Could you please share what changes have you made to ruby-plsql-spec gem to make it work. I am very new to ruby and does not know much about gems.
Actually you can use https://github.com/rsim/ruby-plsql-spec/pull/47 to fix this for your installation.
Tried many combinations of different Ruby versions and gems. Finally managed to make things work using...
- Ruby 2.3.3
...with the following gems...
- ruby-oci8 -v 2.2.8
- ruby-plsql -v 0.7.1
- ruby-plsql-spec -v 0.5.0
This, with latest VS Code and "rebornix.ruby" and "kaiwood.endwise" extensions, is working.
The above Ruby 2.3.3 instructions worked for me but I had problems at first because the CA certificates supplied with Ruby 2.3.3 aren't up to date.
To be able to install the gems I needed to:
- download .pem file https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem
- copy it to the relevant directory, which for me was
C:\Ruby23-x64\lib\ruby\2.3.0\rubygems\ssl_certs
After this the above worked for me.