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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b9431410bae36fdf3c566e033fe3cc4d88c42c5
4
- data.tar.gz: 17507b9ad14b594133cf190451bd0e3c45406c22
3
+ metadata.gz: f30333741cfdb2fc75e81550b393199858254d79
4
+ data.tar.gz: 044c4c7d037b87b73039fcf146be85b900fc6cef
5
5
  SHA512:
6
- metadata.gz: 7d19ef0aacc48fd5221495a9f4ab4a720b3072cd0d376919947a93b49eed87ea1785579b52f46b40efe9f719194ba660343e3bc92bbf08697dce2ae8a02bf93c
7
- data.tar.gz: 6a984ab08d59ab0bd00038bab0e306d0858a3f8edeaac99d8651cb714b32259a12d5a023d9c57bcb38735bf126396d6a6f6ab1ae9ddccfb9b31549c4c5b81708
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/TutoringAustralasia/sip2-ruby.svg?style=flat)](https://travis-ci.org/TutoringAustralasia/sip2-ruby)
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/TutoringAustralasia/sip2-ruby.
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
- [code, language, timestamp, summary, 'AO|AA', uid, '|AC|AD', password].join
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
@@ -1,3 +1,3 @@
1
1
  module Sip2
2
- VERSION = '0.0.4'.freeze
2
+ VERSION = '0.0.5'.freeze
3
3
  end
data/sip2.gemspec CHANGED
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  lib = File.expand_path('../lib', __FILE__)
4
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
3
 
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
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: 2017-11-04 00:00:00.000000000 Z
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.13
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: