sip2 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -48
- data/README.md +2 -2
- data/Rakefile +0 -0
- data/lib/sip2/messages/patron_information.rb +5 -2
- data/lib/sip2/non_blocking_socket.rb +1 -1
- data/lib/sip2/version.rb +1 -1
- data/sip2.gemspec +0 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f30333741cfdb2fc75e81550b393199858254d79
|
4
|
+
data.tar.gz: 044c4c7d037b87b73039fcf146be85b900fc6cef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f62f077c16df1637d9b72c9da68ef25d9c672bd9e0a1c89f63539e8f88bedd84e488425a4f2e092a0361a26aa5a574e3ca6e84419afa9a8f29d862366d0ba7dd
|
7
|
+
data.tar.gz: 1653dc9dc58314b8e0973e4d5a1a1e4b74b261945186cb5a29f5e6f3dafb8135ca2c73bf8dda9e03484b04c45778ff756a1ae9576dbe0a6d43f64cc3c6788b35
|
data/.gitignore
CHANGED
@@ -1,50 +1,2 @@
|
|
1
1
|
*.gem
|
2
|
-
*.rbc
|
3
|
-
/.config
|
4
|
-
/coverage/
|
5
|
-
/InstalledFiles
|
6
|
-
/pkg/
|
7
|
-
/spec/reports/
|
8
|
-
/spec/examples.txt
|
9
|
-
/test/tmp/
|
10
|
-
/test/version_tmp/
|
11
|
-
/tmp/
|
12
|
-
|
13
|
-
# Used by dotenv library to load environment variables.
|
14
|
-
# .env
|
15
|
-
|
16
|
-
## Specific to RubyMotion:
|
17
|
-
.dat*
|
18
|
-
.repl_history
|
19
|
-
build/
|
20
|
-
*.bridgesupport
|
21
|
-
build-iPhoneOS/
|
22
|
-
build-iPhoneSimulator/
|
23
|
-
|
24
|
-
## Specific to RubyMotion (use of CocoaPods):
|
25
|
-
#
|
26
|
-
# We recommend against adding the Pods directory to your .gitignore. However
|
27
|
-
# you should judge for yourself, the pros and cons are mentioned at:
|
28
|
-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
29
|
-
#
|
30
|
-
# vendor/Pods/
|
31
|
-
|
32
|
-
## Documentation cache and generated files:
|
33
|
-
/.yardoc/
|
34
|
-
/_yardoc/
|
35
|
-
/doc/
|
36
|
-
/rdoc/
|
37
|
-
|
38
|
-
## Environment normalization:
|
39
|
-
/.bundle/
|
40
|
-
/vendor/bundle
|
41
|
-
/lib/bundler/man/
|
42
|
-
|
43
|
-
# for a library or gem, you might want to ignore these files since the code is
|
44
|
-
# intended to run in multiple environments; otherwise, check them in:
|
45
2
|
Gemfile.lock
|
46
|
-
# .ruby-version
|
47
|
-
# .ruby-gemset
|
48
|
-
|
49
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
50
|
-
.rvmrc
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![Travis Build Status](http://img.shields.io/travis/
|
1
|
+
[![Travis Build Status](http://img.shields.io/travis/Studiosity/sip2-ruby.svg?style=flat)](https://travis-ci.org/Studiosity/sip2-ruby)
|
2
2
|
[![Gem Version](http://img.shields.io/gem/v/sip2.svg?style=flat)](#)
|
3
3
|
|
4
4
|
# 3M™ Standard Interchange Protocol v2 (SIP2) client implementation in Ruby
|
@@ -45,7 +45,7 @@ puts 'Valid patron' if patron && patron.authenticated?
|
|
45
45
|
|
46
46
|
## Contributing
|
47
47
|
|
48
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
48
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Studiosity/sip2-ruby.
|
49
49
|
|
50
50
|
Note that spec tests are appreciated to minimise regressions. Before submitting a PR, please ensure that:
|
51
51
|
|
data/Rakefile
CHANGED
File without changes
|
@@ -10,12 +10,15 @@ module Sip2
|
|
10
10
|
|
11
11
|
private
|
12
12
|
|
13
|
-
def build_patron_information_message(uid, password)
|
13
|
+
def build_patron_information_message(uid, password, terminal_password = nil)
|
14
14
|
code = '63' # Patron information
|
15
15
|
language = '000' # Unknown
|
16
16
|
timestamp = Time.now.strftime('%Y%m%d %H%M%S')
|
17
17
|
summary = ' ' * 10
|
18
|
-
[
|
18
|
+
[
|
19
|
+
code, language, timestamp, summary,
|
20
|
+
'AO|AA', uid, '|AC', terminal_password, '|AD', password
|
21
|
+
].join
|
19
22
|
end
|
20
23
|
|
21
24
|
def handle_patron_information_response(response)
|
@@ -29,7 +29,7 @@ module Sip2
|
|
29
29
|
socket.connect_nonblock(sockaddr)
|
30
30
|
rescue Errno::EISCONN # rubocop:disable Lint/HandleExceptions
|
31
31
|
# Good news everybody, the socket is connected!
|
32
|
-
rescue
|
32
|
+
rescue StandardError
|
33
33
|
# An unexpected exception was raised - the connection is no good.
|
34
34
|
socket.close
|
35
35
|
raise
|
data/lib/sip2/version.rb
CHANGED
data/sip2.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sip2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- abrom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,9 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.6.
|
126
|
+
rubygems_version: 2.6.14
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: 3M™ Standard Interchange Protocol v2 client implementation in Ruby
|
130
130
|
test_files: []
|
131
|
-
has_rdoc:
|