README.md
syspro-ruby
syspro-ruby is an adapter gem to connect to SYSPRO 7 ERP installations. You can use this gem to connect to the SYSPRO 7 WCF Service and build Ruby applications on top of your SYSPRO data.
Installation
Add this line to your application's Gemfile:
gem 'syspro'
And then execute:
$ bundle
Or install it yourself as:
$ gem install syspro
Usage
Utilities
Logon
user_id = Syspro::Logon.logon(username, password, company_id, company_password)
user_id will be a UserId object that contains the guid supplied by SYSPRO. You will use this guid to make further requests to SYSPRO.
GetLogonProfile
user_profile = Syspro::GetLogonProfile.get_logon_profile(guid)
user_profile will be a UserProfile object that contains the following:
company_nameoperator_codeoperator_groupoperator_email_addressoperator_locationoperator_language_codesystem_languageaccounting_datecompany_datedefault_ar_branchdefault_ap_branchdefault_bankdefault_warehousedefault_customersystem_site_idsystem_nationality_codelocal_currency_codecurrency_descriptiondefault_requisition_userxml_to_html_transformcss_stylecss_suffixdecimal_formatdate_formatfunctional_roledatabase_typesyspro_versionenet_versionsyspro_server_bit_width
Logoff
logged_off = Syspro::Logoff.logoff(guid)
logged_off will be true if the user has been successfully logged off, and will contain an error string if an error has occured.
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ike/syspro-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the Syspro project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.