allscripts_api 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.pryrc +1 -1
- data/Gemfile.lock +1 -1
- data/lib/allscripts_api.rb +2 -3
- data/lib/allscripts_api/configuration.rb +1 -4
- data/lib/allscripts_api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d2ee397a4c9ecf45e7a20fa6a3cd5e7cad43c77
|
4
|
+
data.tar.gz: 80b8b4c04c0fe2c585c0fa5b7a935a71d36a4826
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80dda6414b9382877ea4abce74f14505d04b901253282df42939ff59c1c4898977434ae009ce85a05168cd7a79dc190397ab8044fc2904e6c2cd1e37e0538729
|
7
|
+
data.tar.gz: fae98f28f8f2d1da1e59fb908f5ccff36d4b7f90b69175ff948431cf983abdd861bc71d882a3fc2971376b71f9e782358283ed05af71c60b78d20eef0c358371
|
data/.pryrc
CHANGED
data/Gemfile.lock
CHANGED
data/lib/allscripts_api.rb
CHANGED
@@ -28,7 +28,6 @@ module AllscriptsApi
|
|
28
28
|
config.app_name = 'YOUR_APP_NAME_HERE'
|
29
29
|
config.app_username = 'YOUR_APP_USERNAME_HERE'
|
30
30
|
config.app_password = 'YOUR_APP_PASSWORD_HERE'
|
31
|
-
config.unity_url = 'CHOSEN_UNITY_URL'
|
32
31
|
end
|
33
32
|
)
|
34
33
|
end
|
@@ -46,13 +45,13 @@ module AllscriptsApi
|
|
46
45
|
|
47
46
|
# The main entry point for a pre-configured client
|
48
47
|
#
|
48
|
+
# @param unity_url [String] Unity API endpoint to connect to
|
49
49
|
# @return [AllscriptsApi::Client, AllscriptsApi::NoConfigurationError]
|
50
50
|
# @see AllscriptsApi::Client
|
51
|
-
def connect
|
51
|
+
def connect(unity_url)
|
52
52
|
unless AllscriptsApi.configuration
|
53
53
|
raise NoConfigurationError, NoConfigurationError.error_message
|
54
54
|
end
|
55
|
-
unity_url = AllscriptsApi.configuration.unity_url
|
56
55
|
app_name = AllscriptsApi.configuration.app_name
|
57
56
|
app_username = AllscriptsApi.configuration.app_username
|
58
57
|
app_password = AllscriptsApi.configuration.app_password
|
@@ -8,12 +8,10 @@ module AllscriptsApi
|
|
8
8
|
# config.app_name = 'YOUR_APP_NAME_HERE'
|
9
9
|
# config.app_username = 'YOUR_APP_USERNAME_HERE'
|
10
10
|
# config.app_password = 'YOUR_APP_PASSWORD_HERE'
|
11
|
-
# config.unity_url = 'CHOSEN_UNITY_URL'
|
12
11
|
# config.faraday_adapter = Faraday.some_adapter # default = Faraday.default_adapter
|
13
12
|
# end
|
14
13
|
class Configuration
|
15
|
-
attr_accessor :app_name, :app_password, :
|
16
|
-
:app_username, :faraday_adapter
|
14
|
+
attr_accessor :app_name, :app_password, :app_username, :faraday_adapter
|
17
15
|
# The initialize method may be passed a block, but defaults to fetching
|
18
16
|
# data from the environment
|
19
17
|
#
|
@@ -21,7 +19,6 @@ module AllscriptsApi
|
|
21
19
|
def initialize
|
22
20
|
@app_name = ENV["app_name"]
|
23
21
|
@app_password = ENV["app_password"]
|
24
|
-
@unity_url = ENV["unity_url"]
|
25
22
|
@app_username = ENV["app_username"]
|
26
23
|
@faraday_adapter = Faraday.default_adapter
|
27
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allscripts_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chase
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
213
|
version: '0'
|
214
214
|
requirements: []
|
215
215
|
rubyforge_project:
|
216
|
-
rubygems_version: 2.6.
|
216
|
+
rubygems_version: 2.6.13
|
217
217
|
signing_key:
|
218
218
|
specification_version: 4
|
219
219
|
summary: A simple, configurable wrapper around Allscripts APIs
|