luma 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
  SHA256:
3
- metadata.gz: 9c4e179f650da2d209031f9ed57933d2dac374805c6664ac89c89300031103ff
4
- data.tar.gz: 47bb4a75845df4cf3df393320d5dc8af6c662cfebb368454e17c88f83be45b18
3
+ metadata.gz: 4fa51b1a67a6654b087dd07a6fac2cbfa92d5bdabd78adb9ac1dc7b7a61d4f20
4
+ data.tar.gz: 152164770be9e7a8753b0456f2a94b15f2fcfc1f75795b9266b09cb81fbecc20
5
5
  SHA512:
6
- metadata.gz: f23b67e267845f151baf2463eadc176ed48fe126184c7722a258ad6ccbb83e2fcc2fa6fa77abc9859fb031c42b9a780b3a7db2a7ec2d5a4c3224d1dbf2febba8
7
- data.tar.gz: 35c0833ce16929953ae46fd13bd8e08892f932ccef57e02b954d02d0c350f2c0bc560816b026c57b52a47acb39b7b41858868f99357678fd6d49124fbdbf141b
6
+ metadata.gz: 0fd82fa1ded48b2aea24bdedaa370ec498d28fe3be85748974b606273d3be0991ee570d2083c83bd19e5217e8b8181ab063df3abbf31f74ec0595a05c478934a
7
+ data.tar.gz: c9769fb14069ad01e56b53f9ac512735ee51f2cab42f003b3bd9eb9a3d59a452e52ae9a21e5db0548de48700463a4f2e3007e9e4f47689fa41f282a568baf9c5
data/CHANGELOG.md CHANGED
@@ -1,4 +1,14 @@
1
1
  # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [0.0.5] - 2021-10-14
8
+
9
+ ### Changed
10
+
11
+ - Return HTTParty response when creating facility, appointment type, provider
2
12
 
3
13
  ## [0.0.4] - 2021-09-7
4
14
 
@@ -26,4 +36,8 @@
26
36
 
27
37
  - Initial Create
28
38
 
29
- [0.1.1]: https://github.com/WeInfuse/luma/compare/0.1.0...0.1.1
39
+ [0.0.5]: https://github.com/WeInfuse/luma/compare/v0.0.4...v0.0.5
40
+ [0.0.4]: https://github.com/WeInfuse/luma/compare/v0.0.3...v0.0.4
41
+ [0.0.3]: https://github.com/WeInfuse/luma/compare/v0.0.2...v0.0.3
42
+ [0.0.2]: https://github.com/WeInfuse/luma/compare/v0.0.1...v0.0.2
43
+ [0.0.1]: https://github.com/WeInfuse/luma/compare/4626a358638...v0.0.1
data/README.md CHANGED
@@ -29,8 +29,47 @@ Luma.configure do |c|
29
29
  end
30
30
  ```
31
31
 
32
+ ### Create Appointment Type
33
+ ```ruby
34
+ body = { "name": "Infusion", "description": "Infusion" }
35
+ Luma::AppointmentType.new.create_appointment_type(body: body)
36
+ ```
37
+
38
+ ### Create Facility
39
+ ```ruby
40
+ body = {
41
+ name: "Facility Test Deb 1",
42
+ phone: "5121111111",
43
+ address: "101 Bob Avenue",
44
+ state: "Texas",
45
+ city: "Austin",
46
+ postcode: 78705
47
+ }
48
+
49
+ Luma::Facilities.new.create_facility(body: body)
50
+ ```
51
+
52
+ ### Create Provider
53
+ ```ruby
54
+ Luma::Provider.new.create_provider(name: 'Billy Bob', npi: 1234567891)
55
+ ```
56
+
32
57
  ## Development
33
58
 
34
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
59
+ ### Prep
60
+ After checking out the repo, run `bin/setup` to install dependencies.
61
+
62
+ ### Test
63
+ Run `rake test` to run the tests.
64
+
65
+ ### Debug
66
+ Run `bin/console` for an interactive prompt that will allow you to experiment.
67
+
68
+ ### Install Local
69
+ To install this gem onto your local machine, run `bundle exec rake install`.
70
+
71
+ ### Release
72
+
73
+ To release a new version, update the version number in `version.rb` and add notes to `CHANGELOG.md`.
35
74
 
36
- 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`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
75
+ From up-to-date `main` branch, run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
@@ -11,7 +11,6 @@ module Luma
11
11
  full_url = "https://api.lumahealth.io/" + url
12
12
 
13
13
  result = HTTParty.get(full_url.to_str, headers: @headers, debug_output: $stdout)
14
- { result: result, headers: @headers }
15
14
  end
16
15
 
17
16
  def create_appointment_type(endpoint: APPOINTMENT_TYPE_ENDPOINT, body: nil, headers: {}, auth: true, verb: :post, debug_output: $stdout)
@@ -19,7 +18,6 @@ module Luma
19
18
  self.add_headers_and_body if auth
20
19
 
21
20
  result = self.class.send(verb.to_s, endpoint, body: @body, headers: @headers, debug_output: $stdout)
22
- { result: result, headers: @headers }
23
21
  end
24
22
  end
25
- end
23
+ end
@@ -8,8 +8,7 @@ module Luma
8
8
  @body = body
9
9
  self.add_headers_and_body if auth
10
10
 
11
- result = self.class.send(verb.to_s, endpoint, body: @body, headers: @headers)
12
- { result: result, headers: @headers }
11
+ self.class.send(verb.to_s, endpoint, body: @body, headers: @headers)
13
12
  end
14
13
  end
15
- end
14
+ end
data/lib/luma/provider.rb CHANGED
@@ -13,7 +13,6 @@ module Luma
13
13
  self.add_headers_and_body if auth
14
14
 
15
15
  result = self.class.send(verb.to_s, endpoint, body: @body, headers: @headers, debug_output: $stdout)
16
- { result: result, headers: @headers }
17
16
  end
18
17
  end
19
- end
18
+ end
data/lib/luma/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Luma
2
- VERSION = '0.0.4'.freeze
2
+ VERSION = '0.0.5'.freeze
3
3
  end
data/luma.gemspec CHANGED
@@ -36,4 +36,5 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency 'rake', '~> 10.0'
37
37
  spec.add_development_dependency 'webmock', '~> 3.1'
38
38
  spec.add_development_dependency 'yard', '~> 0.9'
39
+ spec.add_development_dependency 'pry'
39
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luma
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
  - Angela Rodriguez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-08 00:00:00.000000000 Z
11
+ date: 2021-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -128,6 +128,20 @@ dependencies:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0.9'
131
+ - !ruby/object:Gem::Dependency
132
+ name: pry
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
131
145
  description:
132
146
  email:
133
147
  - angela.rodriguez@weinfuse.com