You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the ruby-plsql gem to a project using bundler as the dependency manager.
Expected and actual behavior
After dependencies been solved, the gem should work with no problem, but it require's ruby-oci8 to work.
I looked for it possible causes in the ruby-plsql's gemspec and found that in the following code block, line 93 of gemspec's file, ruby-oci8 is added as a development_dependency, which causes to it not be installed by default and not be activated when ruby-plsql is required.
Since this dependency is needed to the gem properly work, under development or production enviroment, it should be added as a runtime dependency, cause even if I install it using the development option, when the project goes to production I have to manually require ruby-oci8 in the Gemfile.
To solve this issue simply change s.add_development_dependency("ruby-oci8".freeze, ["~> 2.1"]) to s.add_dependency("ruby-oci8".freeze, ["~> 2.1"]) in line 93, which is the if statement that my system in running into.
System configuration
Ruby version: 6.2.0
Oracle Database version: 12.1
The text was updated successfully, but these errors were encountered:
derickgn
changed the title
Add ruby-oci8 as a dependency
Add ruby-oci8 as a runtime dependency
Mar 25, 2019
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Steps to reproduce
Add the ruby-plsql gem to a project using bundler as the dependency manager.
Expected and actual behavior
After dependencies been solved, the gem should work with no problem, but it require's ruby-oci8 to work.
I looked for it possible causes in the ruby-plsql's gemspec and found that in the following code block, line 93 of gemspec's file, ruby-oci8 is added as a development_dependency, which causes to it not be installed by default and not be activated when ruby-plsql is required.
Since this dependency is needed to the gem properly work, under development or production enviroment, it should be added as a runtime dependency, cause even if I install it using the development option, when the project goes to production I have to manually require ruby-oci8 in the Gemfile.
To solve this issue simply change
s.add_development_dependency("ruby-oci8".freeze, ["~> 2.1"])
tos.add_dependency("ruby-oci8".freeze, ["~> 2.1"])
in line 93, which is the if statement that my system in running into.System configuration
Ruby version: 6.2.0
Oracle Database version: 12.1
The text was updated successfully, but these errors were encountered: