atlas_rb 0.0.37 → 0.0.38

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: 149b9168c85df4b0a5f01fd1698e9ea0c26324c750835cc1a164c78bd3ff4125
4
- data.tar.gz: 28d932df35ad0562a620493fad6182b11fbf756a9c3f93939a8f655366c1878b
3
+ metadata.gz: 070f585d0a852f00f82f7edc40205e7f8e999a6e91ef362cc940b935d610c8ca
4
+ data.tar.gz: 5271e93f84f8f291cf18bd5aa8ef3a7e715539ff56e7ffb3f132d4300db5fdd2
5
5
  SHA512:
6
- metadata.gz: 04b8b8abc3d21e1cd27f76bf93bb9d61b935575e06429e73954088893016144514f8a49630a0758600e75a5c650c619d2b70b12ae2ddd35abf707643512614de
7
- data.tar.gz: 6d8c48b0d97998b3fc459476c7cd9cecead996ca032ac2ec74a4aafe624efe1f989bb76b65777649751f174506006b996948f63a8183a05810d2d97ef2bda871
6
+ metadata.gz: 47bcf136f5a35bac6696bea27750726530fb924663389bb1d2e25c1fa0c6e7f98fe5bc613203045c2e3c94d756ec85d474864b9360f4ff002f9adb07cc4082c4
7
+ data.tar.gz: 2aed7e35e4a6d8e78be14c511954c10ab1da71fe87e08d5817e919d8acb268009b6642b23038b0b419c46432ae36467417c0f5c822ff42be474f53fb715c6b59
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.37
1
+ 0.0.38
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.37)
4
+ atlas_rb (0.0.38)
5
5
  faraday (~> 2.7)
6
6
  faraday-multipart (~> 1)
7
7
 
@@ -7,7 +7,10 @@ module AtlasRb
7
7
  url: ENV.fetch("ATLAS_URL", nil),
8
8
  params: params,
9
9
  headers: { "Content-Type" => "application/json" }
10
- )
10
+ ) do |f|
11
+ f.use FaradayMiddleware::FollowRedirects, limit: 5
12
+ f.adapter Faraday.default_adapter
13
+ end
11
14
  end
12
15
 
13
16
  def multipart(_params)
@@ -3,5 +3,9 @@
3
3
  module AtlasRb
4
4
  class Resource
5
5
  extend AtlasRb::FaradayHelper
6
+
7
+ def self.find(id)
8
+ JSON.parse(connection({}).get('/resources/' + id)&.body)
9
+ end
6
10
  end
7
11
  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.37
4
+ version: 0.0.38
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-01-18 00:00:00.000000000 Z
11
+ date: 2024-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday