microslop_one_drive 1.1.0 → 1.2.0
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/lib/microslop_one_drive/client.rb +10 -0
- data/lib/microslop_one_drive/version.rb +1 -1
- metadata +1 -2
- data/LICENSE.txt +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 200bb46df7cd42f96b656faa27f97694ea62d82e9d3a53bf018e893cf7c4f76c
|
|
4
|
+
data.tar.gz: f62102a6873bf709511394512e5264788f2316fa85c8e7d45b21ac1243622c39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a27663fc00bbacba006ac4ad99d3b110c7ca9dec5d57d1f6c97fc59faef2e52f4efae616b840a90876f17ff956f7cd617241f85dc37f28ddc8a367bf12e3a74
|
|
7
|
+
data.tar.gz: cd71efcf58b1b77fd4e583a266349b48c578f2f262352008f93380cc8d497c93fc71dbf4d3fdd015d2548ca78de21d61af476c59811621b0acf60bc1cfbe4d59
|
|
@@ -44,6 +44,16 @@ module MicroslopOneDrive
|
|
|
44
44
|
MicroslopOneDrive::Drive.new(response.parsed_response)
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
# Asks if a Drive exists by its ID.
|
|
48
|
+
#
|
|
49
|
+
# @param drive_id [String] The ID of the Drive to check.
|
|
50
|
+
#
|
|
51
|
+
# @return [Boolean]
|
|
52
|
+
def drive_exists?(drive_id:)
|
|
53
|
+
response = get(path: "me/drives/#{drive_id}", query: {})
|
|
54
|
+
response.success?
|
|
55
|
+
end
|
|
56
|
+
|
|
47
57
|
# Gets a specific DriveItem (folder or file) by its ID.
|
|
48
58
|
#
|
|
49
59
|
# @param item_id [String] The ID of the Drive Item to get.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: microslop_one_drive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bradley Marques
|
|
@@ -87,7 +87,6 @@ executables: []
|
|
|
87
87
|
extensions: []
|
|
88
88
|
extra_rdoc_files: []
|
|
89
89
|
files:
|
|
90
|
-
- LICENSE.txt
|
|
91
90
|
- README.md
|
|
92
91
|
- lib/microslop_one_drive.rb
|
|
93
92
|
- lib/microslop_one_drive/audience.rb
|
data/LICENSE.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Proprietary for now
|