nursys 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5272b06d59c4d499d1059198613e76265d23f1d4a1997e1a975c5b553110686a
4
+ data.tar.gz: 33dd76236ef92e03de43dcf30cdef16fdc02eac4a0c33cabdd13729eab8afd3c
5
+ SHA512:
6
+ metadata.gz: 2c1b41881d17fd1995ef292792266fe063c1bbd1322eef16dbfe310a95fe14ae04b70d74369aa9e54363fae0713b34db1e982acc72260dce4591ac3cd553cfe2
7
+ data.tar.gz: e1985fad23401f462574009293ac28b53161fc9cec8e2259d42c1e05f2fe74a554386609006c79cfd3c96d74e37e4eb49657081046dac5b0db5661ce524cb147
@@ -0,0 +1 @@
1
+ *.gem
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p551 [global]" project-jdk-type="RUBY_SDK" />
4
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/nursys.iml" filepath="$PROJECT_DIR$/.idea/nursys.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ <local />
6
+ </component>
7
+ <component name="NewModuleRootManager">
8
+ <content url="file://$MODULE_DIR$" />
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <option name="TRACKING_ENABLED" value="true" />
5
+ <option name="SHOW_DIALOG" value="false" />
6
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
7
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
8
+ <option name="LAST_RESOLUTION" value="IGNORE" />
9
+ </component>
10
+ <component name="ShelveChangesManager" show_recycled="false">
11
+ <option name="remove_strategy" value="false" />
12
+ </component>
13
+ <component name="TaskManager">
14
+ <task active="true" id="Default" summary="Default task">
15
+ <created>1556104951172</created>
16
+ <option name="number" value="Default" />
17
+ <option name="presentableId" value="Default" />
18
+ <updated>1556104951172</updated>
19
+ </task>
20
+ <servers />
21
+ </component>
22
+ <component name="VcsContentAnnotationSettings">
23
+ <option name="myLimit" value="2678400000" />
24
+ </component>
25
+ <component name="XDebuggerManager">
26
+ <breakpoint-manager />
27
+ <watches-manager />
28
+ </component>
29
+ </project>
@@ -0,0 +1,79 @@
1
+ # Nursys
2
+ Ruby wrapper for Nursys License Verification API. This is developed by reading Nursys API documentation to help open source community. This is not official ruby wrapper of Nursys nor developed by Nursys.
3
+
4
+ ## Installation
5
+
6
+ Add this line to your application's Gemfile:
7
+
8
+ ```ruby
9
+ gem 'nursys'
10
+ ```
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself as:
17
+
18
+ $ gem install nursys
19
+
20
+ ## Usage
21
+
22
+ Generate a new initializer file in config/initializers folder with your Nursys credentials using following command.
23
+
24
+ $ rails generate nursys:install
25
+
26
+ To get Nursys credentials, contact with Paya development team at https://nursys.com
27
+
28
+ After that, you can manage Licenses and check status of different License Types
29
+
30
+ Below is simple example to enroll new nurse:
31
+
32
+ nurse = Nursys::Nurse.new(
33
+ jurisdiction: 'WA',
34
+ license_number: '123456788',
35
+ license_type: 'RN',
36
+ address1: 'n/a',
37
+ address2: 'n/a',
38
+ state: 'WS',
39
+ city: 'Washington',
40
+ zip: '00000',
41
+ email: 'test@test.com',
42
+ birth_year: '1968',
43
+ hospital_practice_setting: '21'
44
+ )
45
+
46
+ nurse.save # It would return true or false based on given data
47
+ You need only once to enrol nurse to your account, after that you retrieve its status anytime.
48
+
49
+ Similarly you can add new license to checklist:
50
+
51
+ nursys_license = Nursys::License.new(
52
+ license_number: '12345678',
53
+ jurisdiction: 'WA',
54
+ license_type: 'RN',
55
+ record_ID: 18872 # Some random id
56
+ )
57
+
58
+ transaction_id = nursys_license.save # It would return transaction id which can be used to check status of license anytime
59
+
60
+ To Check license status using transaction id:
61
+
62
+ response = Nursys::License.find @license.transaction_id
63
+
64
+ # response is hash of attributes returned by Nursys system according to status of license.
65
+
66
+
67
+ ## Development
68
+
69
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
70
+
71
+ 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` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
72
+
73
+ ## Contributing
74
+
75
+ 1. Fork it ( https://github.com/[my-github-username]/nursys/fork )
76
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
77
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
78
+ 4. Push to the branch (`git push origin my-new-feature`)
79
+ 5. Create a new Pull Request
@@ -0,0 +1,14 @@
1
+ module Nursys
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+ source_root File.expand_path("../../templates", __FILE__)
5
+ desc "Creates Nursys initializer for your application"
6
+
7
+ def copy_initializer
8
+ template "nursys_initializer.rb", "config/initializers/nursys.rb"
9
+
10
+ puts "Install complete! Truly Outrageous!"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,7 @@
1
+ require 'nursys'
2
+ # require 'securerandom'
3
+
4
+ Nursys.configure do |config|
5
+ config.user_name = "YOUR-USER-NAME"
6
+ config.password = "YOUR-PASSWORD"
7
+ end
@@ -0,0 +1,24 @@
1
+ require 'savon'
2
+ require 'nokogiri'
3
+ require 'nursys/extensions/string'
4
+ require 'nursys/configuration'
5
+ require 'nursys/api'
6
+ require 'nursys/nurse'
7
+ require 'nursys/license'
8
+ require 'nursys/manage_nurse_list'
9
+ require 'nursys/submit_nurse_lookup'
10
+ require 'nursys/retrieve_nurse_lookup'
11
+ require 'nursys/notification'
12
+
13
+ module Nursys
14
+
15
+ class << self
16
+ attr_accessor :configuration
17
+ end
18
+
19
+ def self.configure
20
+ self.configuration ||= Configuration.new
21
+ yield(configuration)
22
+ end
23
+
24
+ end
@@ -0,0 +1,25 @@
1
+ module Nursys
2
+ class Api
3
+
4
+ API_END_POINT = "https://services.nursys.com/eNotifyService.svc?wsdl=wsdl0"
5
+
6
+ class << self
7
+
8
+ def call method, xml
9
+ response = self.client.call(method, xml: xml)
10
+ response.body
11
+ end
12
+
13
+ def client
14
+ ::Savon.client(
15
+ wsdl: 'https://services.nursys.com/eNotifyService.svc?wsdl=wsdl0',
16
+ endpoint: 'https://services.nursys.com/ENotifyService.svc',
17
+ log_level: :debug,
18
+ log: true,
19
+ pretty_print_xml: true
20
+ )
21
+ end
22
+ end
23
+
24
+ end
25
+ end
@@ -0,0 +1,9 @@
1
+ module Nursys
2
+ class Configuration
3
+ attr_accessor :user_name,
4
+ :password
5
+
6
+ def initialize
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class String
2
+ def keyify
3
+ self.split('_').map{|chr| chr.upcase_first }.join('')
4
+ end
5
+ end
@@ -0,0 +1,40 @@
1
+ module Nursys
2
+ class License
3
+
4
+ ATTRIBUTES = [
5
+ :license_number,
6
+ :jurisdiction,
7
+ :license_type,
8
+ :record_ID
9
+ ]
10
+
11
+ attr_accessor(*ATTRIBUTES)
12
+
13
+ def initialize attributes={}
14
+ attributes.each { |k, v| self.send("#{k}=", v) }
15
+ end
16
+
17
+ def save
18
+ response = Nursys::SubmitNurseLookup.request(self.to_hash)
19
+ response[:submit_nurse_lookup_response][:transaction][:transaction_success_flag] ? response[:submit_nurse_lookup_response][:transaction][:transaction_id] : response[:submit_nurse_lookup_response][:transaction][:transaction_success_flag]
20
+ end
21
+
22
+ def to_hash
23
+ hash = Hash.new
24
+ ATTRIBUTES.each do |attr|
25
+ hash[attr.to_s.keyify] = self.send(attr)
26
+ end
27
+ hash
28
+ end
29
+
30
+ class << self
31
+ def find transaction_id
32
+ response = Nursys::RetrieveNurseLookup.request(transaction_id)
33
+ response[:nurse_lookup_response][:nurse_license_responses][:nurse_license_response][:success_flag] ?
34
+ response[:nurse_lookup_response][:nurse_license_responses][:nurse_license_response][:nurse_licenses][:nurse_license] :
35
+ response[:nurse_lookup_response][:nurse_license_responses][:nurse_license_response][:success_flag]
36
+ end
37
+ end
38
+
39
+ end
40
+ end
@@ -0,0 +1,42 @@
1
+ module Nursys
2
+ class ManageNurseList
3
+
4
+ class << self
5
+
6
+ def request nurse
7
+ Nursys::Api.call(:manage_nurse_list, to_xml(nurse))
8
+ end
9
+
10
+ protected
11
+
12
+ def to_xml nurse
13
+ builder = Nokogiri::XML::Builder.new do |xml|
14
+ xml.send('s:Envelope', 'xmlns:s': 'http://schemas.xmlsoap.org/soap/envelope/') do
15
+ xml.send('s:Body') do
16
+ xml.ManageNurseListRequest(xmlns: 'http://com.nursys.services.ServiceModel/2012/eNotifyService') do
17
+ xml.Credentials('xmlns:a': 'http://com.nursys.services.ServiceModel/2012/Credentials', 'xmlns:i': 'http://www.w3.org/2001/XMLSchema-instance') do
18
+ xml.send('a:Username', Nursys.configuration.user_name)
19
+ xml.send('a:Password', Nursys.configuration.password)
20
+ end
21
+ xml.Nurses('xmlns:a': 'http://com.nursys.services.ServiceModel/2012/eNotify', 'xmlns:i': 'http://www.w3.org/2001/XMLSchema-instance') do
22
+
23
+ xml.send('a:Nurse') do
24
+ nurse.each do |k, v|
25
+ xml.send("a:#{k}", v.to_s)
26
+ end
27
+ end
28
+
29
+ end
30
+ xml.TransactionID nurse['RecordID']
31
+ end
32
+ end
33
+ end
34
+ end
35
+
36
+ builder.to_xml
37
+ end
38
+
39
+ end
40
+
41
+ end
42
+ end
@@ -0,0 +1,41 @@
1
+ module Nursys
2
+ class Notification
3
+
4
+
5
+
6
+
7
+ class << self
8
+
9
+ def where start_date=Date.todat-1.month, end_date=Date.today, transaction_id
10
+ #
11
+ #
12
+ #
13
+ Nursys::Api.call(:notification_lookup, xml_markup(start_date, end_date, transaction_id))
14
+ end
15
+
16
+ protected
17
+
18
+ def xml_markup start_date, end_date, transaction_id
19
+ builder = Nokogiri::XML::Builder.new do |xml|
20
+ xml.send('s:Envelope', 'xmlns:s': 'http://schemas.xmlsoap.org/soap/envelope/') do
21
+ xml.send('s:Body') do
22
+ xml.NotificationLookupRequest(xmlns: 'http://com.nursys.services.ServiceModel/2012/eNotifyService') do
23
+ xml.Credentials('xmlns:a': 'http://com.nursys.services.ServiceModel/2012/Credentials', 'xmlns:i': 'http://www.w3.org/2001/XMLSchema-instance') do
24
+ xml.send('a:Username', Nursys.configuration.user_name)
25
+ xml.send('a:Password', Nursys.configuration.password)
26
+ end
27
+ xml.EndDate end_date
28
+ xml.StartDate start_date
29
+ xml.TransactionID transaction_id
30
+ end
31
+ end
32
+ end
33
+ end
34
+
35
+ builder.to_xml
36
+ end
37
+
38
+ end
39
+
40
+ end
41
+ end
@@ -0,0 +1,62 @@
1
+ module Nursys
2
+ class Nurse
3
+
4
+ ATTRIBUTES = [
5
+ :submission_action_code,
6
+ :jurisdiction,
7
+ :license_number,
8
+ :license_type,
9
+ :email,
10
+ :cell_phone_number,
11
+ :address1,
12
+ :address2,
13
+ :city,
14
+ :state,
15
+ :zip,
16
+ :last_four_SSN,
17
+ :birth_year,
18
+ :hospital_practice_setting,
19
+ :hospital_practice_setting_other,
20
+ :notifications_enabled,
21
+ :reminders_enabled,
22
+ :location_list,
23
+ :record_ID
24
+ ]
25
+
26
+ attr_accessor(*ATTRIBUTES)
27
+
28
+ def initialize attributes={}
29
+ attributes.each { |k, v| self.send("#{k}=", v) }
30
+ end
31
+
32
+ def submission_action_code
33
+ @submission_action_code.nil? ? 'A' : @submission_action_code
34
+ end
35
+
36
+ def notifications_enabled
37
+ @notifications_enabled.nil? ? '0' : @notifications_enabled
38
+ end
39
+
40
+ def reminders_enabled
41
+ @reminders_enabled.nil? ? '0' : @reminders_enabled
42
+ end
43
+
44
+ def hospital_practice_setting
45
+ @hospital_practice_setting.nil? ? '0' : @hospital_practice_setting
46
+ end
47
+
48
+ def save
49
+ response = Nursys::ManageNurseList.request(self.to_hash)
50
+ response[:manage_nurse_list_response][:nurse_responses][:nurse_response][:success_flag]
51
+ end
52
+
53
+ def to_hash
54
+ hash = Hash.new
55
+ ATTRIBUTES.each do |attr|
56
+ hash[attr.to_s.keyify] = self.send(attr) unless self.send(attr).nil?
57
+ end
58
+ hash
59
+ end
60
+
61
+ end
62
+ end
@@ -0,0 +1,33 @@
1
+ module Nursys
2
+ class RetrieveNurseLookup
3
+
4
+ class << self
5
+
6
+ def request transaction_id
7
+ Nursys::Api.call(:retrieve_nurse_lookup, to_xml(transaction_id))
8
+ end
9
+
10
+ protected
11
+
12
+ def to_xml transaction_id
13
+ builder = Nokogiri::XML::Builder.new do |xml|
14
+ xml.send('s:Envelope', 'xmlns:s': 'http://schemas.xmlsoap.org/soap/envelope/') do
15
+ xml.send('s:Body') do
16
+ xml.RetrieveNurseLookupRequest(xmlns: 'http://com.nursys.services.ServiceModel/2012/eNotifyService') do
17
+ xml.Credentials('xmlns:a': 'http://com.nursys.services.ServiceModel/2012/Credentials', 'xmlns:i': 'http://www.w3.org/2001/XMLSchema-instance') do
18
+ xml.send('a:Username', Nursys.configuration.user_name)
19
+ xml.send('a:Password', Nursys.configuration.password)
20
+ end
21
+ xml.TransactionID transaction_id
22
+ end
23
+ end
24
+ end
25
+ end
26
+
27
+ builder.to_xml
28
+ end
29
+
30
+ end
31
+
32
+ end
33
+ end
@@ -0,0 +1,42 @@
1
+ module Nursys
2
+ class SubmitNurseLookup
3
+
4
+ class << self
5
+
6
+ def request license
7
+ Nursys::Api.call(:submit_nurse_lookup, to_xml(license))
8
+ end
9
+
10
+ protected
11
+
12
+ def to_xml license
13
+ builder = Nokogiri::XML::Builder.new do |xml|
14
+ xml.send('s:Envelope', 'xmlns:s': 'http://schemas.xmlsoap.org/soap/envelope/') do
15
+ xml.send('s:Body') do
16
+ xml.NurseLookupRequest(xmlns: 'http://com.nursys.services.ServiceModel/2012/eNotifyService') do
17
+ xml.Credentials('xmlns:a': 'http://com.nursys.services.ServiceModel/2012/Credentials', 'xmlns:i': 'http://www.w3.org/2001/XMLSchema-instance') do
18
+ xml.send('a:Username', Nursys.configuration.user_name)
19
+ xml.send('a:Password', Nursys.configuration.password)
20
+ end
21
+ xml.LicenseRequests('xmlns:a': 'http://com.nursys.services.ServiceModel/2012/eNotify', 'xmlns:i': 'http://www.w3.org/2001/XMLSchema-instance') do
22
+
23
+ xml.send('a:LicenseRequest') do
24
+ license.each do |k, v|
25
+ xml.send("a:#{k}", v.to_s)
26
+ end
27
+ end
28
+
29
+ end
30
+ # xml.TransactionID nurse['RecordID']
31
+ end
32
+ end
33
+ end
34
+ end
35
+
36
+ builder.to_xml
37
+ end
38
+
39
+ end
40
+
41
+ end
42
+ end
@@ -0,0 +1,3 @@
1
+ module Nursys
2
+ VERSION = "1.1.0"
3
+ end
@@ -0,0 +1,6 @@
1
+ <a:LicenseRequest>
2
+ <a:LicenseNumber>&&&LICENSE_NUMBER&&&</a:LicenseNumber>
3
+ <a:Jurisdiction>&&&JURISDICTION&&&</a:Jurisdiction>
4
+ <a:LicenseType>&&&LICENSE_TYPE&&&</a:LicenseType>
5
+ <a:RecordID>&&&RECORD_ID&&&</a:RecordID>
6
+ </a:LicenseRequest>
@@ -0,0 +1,21 @@
1
+ <a:Nurse>
2
+ <a:SubmissionActionCode>A</a:SubmissionActionCode>
3
+ <a:Jurisdiction>&&&JURISDICTION&&&</a:Jurisdiction>
4
+ <a:LicenseNumber>&&&LICENSE_NUMBER&&&</a:LicenseNumber>
5
+ <a:LicenseType>&&&LICENSE_TYPE&&&</a:LicenseType>
6
+ <a:Email>&&&EMAIL&&&</a:Email>
7
+ <a:CellPhoneNumber>&&&PHONE_NUMBER&&&</a:CellPhoneNumber>
8
+ <a:Address1>&&&ADDRESS_1&&&</a:Address1>
9
+ <a:Address2>&&&ADDRESS_2&&&</a:Address2>
10
+ <a:City>&&&CITY&&&</a:City>
11
+ <a:State>&&&STATE&&&</a:State>
12
+ <a:Zip>&&&ZIP&&&</a:Zip>
13
+ <a:LastFourSSN>&&&LAST_FOUR_SSN&&&</a:LastFourSSN>
14
+ <a:BirthYear>&&&BIRTH_YEAR&&&</a:BirthYear>
15
+ <a:HospitalPracticeSetting>21</a:HospitalPracticeSetting>
16
+ <a:HospitalPracticeSettingOther>Lorem Ipsum</a:HospitalPracticeSettingOther>
17
+ <a:NotificationsEnabled>Y</a:NotificationsEnabled>
18
+ <a:RemindersEnabled>Y</a:RemindersEnabled>
19
+ <a:LocationList>001</a:LocationList>
20
+ <a:RecordID>&&&RECORD_ID&&&</a:RecordID>
21
+ </a:Nurse>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0"?>
2
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <s:Body>
4
+ <ManageNurseListRequest xmlns="http://com.nursys.services.ServiceModel/2012/eNotifyService">
5
+ <Credentials xmlns:a="http://com.nursys.services.ServiceModel/2012/Credentials" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
6
+ <a:Username>&&&USERNAME&&&</a:Username>
7
+ <a:Password>&&&PASSWORD&&&</a:Password>
8
+ </Credentials>
9
+ <Nurses xmlns:a="http://com.nursys.services.ServiceModel/2012/eNotify" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
10
+ &&&NURSES&&&
11
+ </Nurses>
12
+ <TransactionID>&&&TRANSACTION_ID&&&</TransactionID>
13
+ </ManageNurseListRequest>
14
+ </s:Body>
15
+ </s:Envelope>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0"?>
2
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <s:Body>
4
+ <NotificationLookupRequest xmlns="http://com.nursys.services.ServiceModel/2012/eNotifyService">
5
+ <Credentials xmlns:a="http://com.nursys.services.ServiceModel/2012/Credentials" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
6
+ <a:Username>&&&USERNAME&&&</a:Username>
7
+ <a:Password>&&&PASSWORD&&&</a:Password>
8
+ </Credentials>
9
+ <EndDate>&&&END_DATE&&&&</EndDate>
10
+ <StartDate>&&&START_DATE&&&</StartDate>
11
+ <TransactionID>&&&TRANSACTION_ID&&&</TransactionID>
12
+ </NotificationLookupRequest>
13
+ </s:Body>
14
+ </s:Envelope>
@@ -0,0 +1,11 @@
1
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
2
+ <s:Body>
3
+ <RetrieveNurseLookupRequest xmlns="http://com.nursys.services.ServiceModel/2012/eNotifyService">
4
+ <Credentials xmlns:a="http://com.nursys.services.ServiceModel/2012/Credentials" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
5
+ <a:Username>&&&USERNAME&&&</a:Username>
6
+ <a:Password>&&&PASSWORD&&&</a:Password>
7
+ </Credentials>
8
+ <TransactionID>&&&TRANSACTION_ID&&&</TransactionID>
9
+ </RetrieveNurseLookupRequest>
10
+ </s:Body>
11
+ </s:Envelope>
@@ -0,0 +1,13 @@
1
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
2
+ <s:Body>
3
+ <NurseLookupRequest xmlns="http://com.nursys.services.ServiceModel/2012/eNotifyService">
4
+ <Credentials xmlns:a="http://com.nursys.services.ServiceModel/2012/Credentials" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
5
+ <a:Username>&&&USERNAME&&&</a:Username>
6
+ <a:Password>&&&PASSWORD&&&</a:Password>
7
+ </Credentials>
8
+ <LicenseRequests xmlns:a="http://com.nursys.services.ServiceModel/2012/eNotify" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
9
+ &&&LICENSE_REQUESTS&&&
10
+ </LicenseRequests>
11
+ </NurseLookupRequest>
12
+ </s:Body>
13
+ </s:Envelope>
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'nursys/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "nursys"
8
+ spec.version = Nursys::VERSION
9
+ spec.authors = ["Shahzad Tariq"]
10
+ spec.email = ["m.shahzad.tariq@hotmail.com"]
11
+
12
+ spec.summary = %q{Ruby wrapper for Nursys License Verification API}
13
+ spec.description = %q{Ruby wrapper for Nursys License Verification API. This is developed by reading Nursys API documentation to help open source community. This is not official ruby wrapper of Nursys nor developed by Nursys.}
14
+ spec.homepage = "https://github.com/mshahzadtariq/nursys"
15
+ spec.license = "MIT"
16
+
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.9"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_dependency 'savon'
26
+ spec.add_dependency 'nokogiri'
27
+ end
metadata ADDED
@@ -0,0 +1,127 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nursys
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Shahzad Tariq
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-06-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: savon
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: nokogiri
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Ruby wrapper for Nursys License Verification API. This is developed by
70
+ reading Nursys API documentation to help open source community. This is not official
71
+ ruby wrapper of Nursys nor developed by Nursys.
72
+ email:
73
+ - m.shahzad.tariq@hotmail.com
74
+ executables: []
75
+ extensions: []
76
+ extra_rdoc_files: []
77
+ files:
78
+ - .gitignore
79
+ - .idea/misc.xml
80
+ - .idea/modules.xml
81
+ - .idea/nursys.iml
82
+ - .idea/workspace.xml
83
+ - README.md
84
+ - lib/generators/nursys/install_generator.rb
85
+ - lib/generators/templates/nursys_initializer.rb
86
+ - lib/nursys.rb
87
+ - lib/nursys/api.rb
88
+ - lib/nursys/configuration.rb
89
+ - lib/nursys/extensions/string.rb
90
+ - lib/nursys/license.rb
91
+ - lib/nursys/manage_nurse_list.rb
92
+ - lib/nursys/notification.rb
93
+ - lib/nursys/nurse.rb
94
+ - lib/nursys/retrieve_nurse_lookup.rb
95
+ - lib/nursys/submit_nurse_lookup.rb
96
+ - lib/nursys/version.rb
97
+ - lib/nursys/xml/_license_request.xml
98
+ - lib/nursys/xml/_nurse.xml
99
+ - lib/nursys/xml/manage_nurse_list.xml
100
+ - lib/nursys/xml/notification_lookup.xml
101
+ - lib/nursys/xml/retrieve_nurse_lookup.xml
102
+ - lib/nursys/xml/submit_nurse_lookup.xml
103
+ - nursys.gemspec
104
+ homepage: https://github.com/mshahzadtariq/nursys
105
+ licenses:
106
+ - MIT
107
+ metadata: {}
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubygems_version: 3.0.2
124
+ signing_key:
125
+ specification_version: 4
126
+ summary: Ruby wrapper for Nursys License Verification API
127
+ test_files: []