This is a gem wrapping the SIP v2 protocol.
http://multimedia.3m.com/mws/media/355361O/sip2-protocol.pdf
Add this line to your application's Gemfile:
gem 'sip2'
And then execute:
$ bundle
So far only login (code 93) and patron_information (code 63) are supported
client = Sip2::Client.new(host: 'my.sip2.host.net', port: 6001)
patron =
client.connect do |connection|
if connection.login 'sip_username', 'sip_password'
connection.patron_information 'patron_username', 'patron_password'
end
end
puts 'Valid patron' if patron && patron.authenticated?
Bug reports and pull requests are welcome on GitHub at https://github.com/Studiosity/sip2-ruby.
Note that spec tests are appreciated to minimise regressions. Before submitting a PR, please ensure that:
$ rspec
and
$ rubocop
both succeed
The gem is available as open source under the terms of the MIT License.