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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccd068e932aeea1ad8a85010ba3d3c71ad0d6953
4
- data.tar.gz: a603b15bfc82a0f0f732ed79dcebb715bf9007f1
3
+ metadata.gz: 5d2ee397a4c9ecf45e7a20fa6a3cd5e7cad43c77
4
+ data.tar.gz: 80b8b4c04c0fe2c585c0fa5b7a935a71d36a4826
5
5
  SHA512:
6
- metadata.gz: 9f7b5c458d08e82845ac1668c060ee62e203552eff823fec997d36aef08fbd3100d4e40180575b1df3fa4cce2dfccdad9a9f31c01a7997ccdab254c98b2481b8
7
- data.tar.gz: 659af7f89b328429041628b07af8d84b94166090f0f8f136a8530f288c84db245c0076f71fe997fbb75ecb3d5c840e0b343d1d56ac05587205b5781ffef1f45b
6
+ metadata.gz: 80dda6414b9382877ea4abce74f14505d04b901253282df42939ff59c1c4898977434ae009ce85a05168cd7a79dc190397ab8044fc2904e6c2cd1e37e0538729
7
+ data.tar.gz: fae98f28f8f2d1da1e59fb908f5ccff36d4b7f90b69175ff948431cf983abdd861bc71d882a3fc2971376b71f9e782358283ed05af71c60b78d20eef0c358371
data/.pryrc CHANGED
@@ -13,7 +13,7 @@ end
13
13
 
14
14
  def bc
15
15
  client =
16
- AllscriptsApi::Client.new(ENV["unity_url"],
16
+ AllscriptsApi::Client.new("http://twlatestga.unitysandbox.com/",
17
17
  ENV["app_name"],
18
18
  ENV["app_username"],
19
19
  ENV["app_password"])
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- allscripts_api (0.2.0)
4
+ allscripts_api (0.3.0)
5
5
  faraday (>= 0.12.2)
6
6
 
7
7
  GEM
@@ -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, :unity_url,
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module AllscriptsApi
4
4
  # gem version declaration
5
- VERSION = "0.2.0".freeze
5
+ VERSION = "0.3.0".freeze
6
6
  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.2.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-13 00:00:00.000000000 Z
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.14
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