luma 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +9 -0
- data/lib/luma/appointment.rb +9 -0
- data/lib/luma/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ba2fd974740d61c1665cefa352759fb62aa9a104740362a419bf105891faa14
|
4
|
+
data.tar.gz: c1557993c05a3b72da33217b5f2ec919ee2effdce2f33c0c7125a60571766c17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e03019b01901ac0718cebd31ebcce588707ac84459f29031b9a6b006a9e8a1847a88908754b9620e19720d634e7b54f5b703d103d4e27884ee22447b4ac8973a
|
7
|
+
data.tar.gz: 9d2b8aaba0b48ef57c17a6b51d0257af898753c664ed9502111125dfc6bcb35e0206d5e8b0756a5254fb45bb38550c72a140b29bfe3bf144acc01ebc490c866b
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [0.1.1] - 2021-11-16
|
8
|
+
|
9
|
+
### Changed
|
10
|
+
|
11
|
+
- Added API access for updating an appointment (PUT)
|
12
|
+
|
7
13
|
## [0.1.0] - 2021-11-10
|
8
14
|
|
9
15
|
### Changed
|
@@ -63,6 +69,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
63
69
|
|
64
70
|
- Initial Create
|
65
71
|
|
72
|
+
[0.1.1]: https://github.com/WeInfuse/luma/compare/v0.1.0...v0.1.1
|
66
73
|
[0.1.0]: https://github.com/WeInfuse/luma/compare/v0.0.8...v0.1.0
|
67
74
|
[0.0.8]: https://github.com/WeInfuse/luma/compare/v0.0.7...v0.0.8
|
68
75
|
[0.0.7]: https://github.com/WeInfuse/luma/compare/v0.0.6...v0.0.7
|
data/README.md
CHANGED
@@ -81,6 +81,15 @@ body = Luma::Models::Appointment.new(
|
|
81
81
|
Luma::Appointment.new(email: email, password: password).create_appointment(body: body)
|
82
82
|
```
|
83
83
|
|
84
|
+
### Update Appointment
|
85
|
+
```ruby
|
86
|
+
body = {
|
87
|
+
appt_duration: '60'
|
88
|
+
}
|
89
|
+
|
90
|
+
Luma::Appointment.new(email: email, password: password).update_appointment('appointment_id', body: body)
|
91
|
+
```
|
92
|
+
|
84
93
|
## Development
|
85
94
|
|
86
95
|
### Prep
|
data/lib/luma/appointment.rb
CHANGED
@@ -10,5 +10,14 @@ module Luma
|
|
10
10
|
|
11
11
|
self.class.send(verb.to_s, endpoint, body: @body, headers: @headers)
|
12
12
|
end
|
13
|
+
|
14
|
+
def update_appointment(appt_identifier, endpoint: APPOINTMENT_ENDPOINT, body: nil, headers: {}, auth: true, verb: :put, debug_output: $stdout)
|
15
|
+
@body = body
|
16
|
+
self.add_headers_and_body if auth
|
17
|
+
|
18
|
+
endpoint = "#{endpoint}/#{appt_identifier}"
|
19
|
+
|
20
|
+
self.class.send(verb.to_s, endpoint, body: @body, headers: @headers)
|
21
|
+
end
|
13
22
|
end
|
14
23
|
end
|
data/lib/luma/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.1
|
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-11-
|
11
|
+
date: 2021-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
189
|
- !ruby/object:Gem::Version
|
190
190
|
version: '0'
|
191
191
|
requirements: []
|
192
|
-
rubygems_version: 3.
|
192
|
+
rubygems_version: 3.0.3
|
193
193
|
signing_key:
|
194
194
|
specification_version: 4
|
195
195
|
summary: Ruby wrapper for the Luma Health API
|