atlas_rb 0.0.59 → 0.0.61

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: 572963297507c6138cfeaebd39049f8864f8fa83a85b2bf6a15cbbe1f6d2f30d
4
- data.tar.gz: 53b9dc73b21523ae5604f66f74c7547423207633009076245d023baf25f48d80
3
+ metadata.gz: 7fc8248dce62919e557dcea44a7cbc492f4ec35cd27cb55913c2de1ec480c6d9
4
+ data.tar.gz: 85246ff7f2a6584a0811d44301ec9456501dae766678a516ba983f8852eae9f6
5
5
  SHA512:
6
- metadata.gz: 173b842c29fde8afef7d3d482c72fe3db73fb911726d94e290c820af315ca8f5d3b4783ff5c68eee00ed8b086bad6f93774afd0a1a34e792e46e1cb104d65e72
7
- data.tar.gz: c94e0c0d378cd517e2c186aa95adef6c899ea2db38c79fe01ee2f1dd0b09477c43bdceaa200e2b1d1b034ff24eccf33d5bee429653ffe887b3336becb454afb7
6
+ metadata.gz: 1d21922ec797058ceb83b4c780940af0473ab3367c216882295c904781debcf6667d1fc58c910232cdec8abacb0d773a5a1dcd4e1749a4d1961a96c08f1b66dd
7
+ data.tar.gz: fcbb8e9690552079436ad47a2a1a35903d083436a30e352bf4ec95c7bd71250d9a5294bf4b8b342ba5bca15f285aff9ba87f6d83e93ecce4b861e62619f3b382
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.59
1
+ 0.0.61
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.59)
4
+ atlas_rb (0.0.61)
5
5
  faraday (~> 2.7)
6
6
  faraday-follow_redirects (~> 0.3.0)
7
7
  faraday-multipart (~> 1)
@@ -37,7 +37,7 @@ GEM
37
37
  diff-lcs (>= 1.2.0, < 2.0)
38
38
  rspec-support (~> 3.12.0)
39
39
  rspec-support (3.12.1)
40
- uri (0.13.0)
40
+ uri (0.13.1)
41
41
 
42
42
  PLATFORMS
43
43
  x86_64-linux
data/lib/atlas_rb/blob.rb CHANGED
@@ -3,28 +3,28 @@
3
3
  module AtlasRb
4
4
  class Blob < Resource
5
5
  ROUTE = "/files/"
6
- end
7
6
 
8
- def self.find(id)
9
- connection({}).get(ROUTE + id)&.body
10
- end
7
+ def self.find(id)
8
+ connection({}).get(ROUTE + id)&.body
9
+ end
11
10
 
12
- def self.create(id, blob_path)
13
- payload = { binary: Faraday::Multipart::FilePart.new(File.open(blob_path),
14
- "application/octet-stream",
15
- File.basename(blob_path)) }
11
+ def self.create(id, blob_path)
12
+ payload = { binary: Faraday::Multipart::FilePart.new(File.open(blob_path),
13
+ "application/octet-stream",
14
+ File.basename(blob_path)) }
16
15
 
17
- multipart({ work_id: id }).post(ROUTE, payload)&.body
18
- end
16
+ multipart({ work_id: id }).post(ROUTE, payload)&.body
17
+ end
19
18
 
20
- def self.destroy(id)
21
- connection({}).delete(ROUTE + id)
22
- end
19
+ def self.destroy(id)
20
+ connection({}).delete(ROUTE + id)
21
+ end
23
22
 
24
- def self.update(id, blob_path)
25
- payload = { binary: Faraday::Multipart::FilePart.new(File.open(blob_path),
26
- "application/octet-stream",
27
- File.basename(blob_path)) }
28
- multipart({}).patch(ROUTE + id, payload)&.body
23
+ def self.update(id, blob_path)
24
+ payload = { binary: Faraday::Multipart::FilePart.new(File.open(blob_path),
25
+ "application/octet-stream",
26
+ File.basename(blob_path)) }
27
+ multipart({}).patch(ROUTE + id, payload)&.body
28
+ end
29
29
  end
30
30
  end
@@ -3,25 +3,25 @@
3
3
  module AtlasRb
4
4
  class FileSet < Resource
5
5
  ROUTE = "/file_sets/"
6
- end
7
6
 
8
- def self.find(id)
9
- connection({}).get(ROUTE + id)&.body
10
- end
7
+ def self.find(id)
8
+ connection({}).get(ROUTE + id)&.body
9
+ end
11
10
 
12
- def self.create(id, classification)
13
- connection({ work_id: id, classification: classification }).post(ROUTE)&.body
14
- end
11
+ def self.create(id, classification)
12
+ connection({ work_id: id, classification: classification }).post(ROUTE)&.body
13
+ end
15
14
 
16
- def self.destroy(id)
17
- connection({}).delete(ROUTE + id)
18
- end
15
+ def self.destroy(id)
16
+ connection({}).delete(ROUTE + id)
17
+ end
19
18
 
20
- def self.update(id, blob_path)
21
- # Need to figure out blob vs XML
22
- payload = { binary: Faraday::Multipart::FilePart.new(File.open(blob_path),
23
- "application/octet-stream",
24
- File.basename(blob_path)) }
25
- multipart({}).patch(ROUTE + id, payload)&.body
19
+ def self.update(id, blob_path)
20
+ # Need to figure out blob vs XML
21
+ payload = { binary: Faraday::Multipart::FilePart.new(File.open(blob_path),
22
+ "application/octet-stream",
23
+ File.basename(blob_path)) }
24
+ multipart({}).patch(ROUTE + id, payload)&.body
25
+ end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.59
4
+ version: 0.0.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-26 00:00:00.000000000 Z
11
+ date: 2024-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday