atlas_rb 0.0.39 → 0.0.41

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: '05318c2def730efdde552276927047998ed3c9e5b8d351e2bed151757a3568ee'
4
- data.tar.gz: 9141403c4f5d70e6d66611d705f537c60138d7e5920be2ee53a37d74439b5d86
3
+ metadata.gz: 7924179dc613023b3134ba0a3bb0e0c96df3368023983a094d2221453e9727f3
4
+ data.tar.gz: 1308b7e9adeab96789ed6cf7a3e308148059260727fd0873bec8450b3b7fa9e5
5
5
  SHA512:
6
- metadata.gz: 5ebdc7d384892a1cfe7f6c3efb8228ae318acd27f46363f08eb6cdc59c5b0251d8a01b9560e7ba415249b3da6a9dfe3ffba879b1924d6acc1a15ca749eadc180
7
- data.tar.gz: 03fcbbda3eede725fc0cad1fdb4680504485e076a758a90d5c2b8ab729c8be55e73d6c37881b3f14e375d551c57522a43a56e6fe269d13b2489e06577a90efe3
6
+ metadata.gz: c06fd14aab90f75c196c9e16b95392d154388a7b7983cce8293ce6affdae1fb0b96261e0b2f7896ca481c6d1477f3853b35fcb39de02e8822e68c0e44c404a5f
7
+ data.tar.gz: 63fda40ce6688119fdfffa9069e8a7e3166f26afe189d93bbc29d3c5626aa797ec123c34d998e4048505d1584934084b35e1dcd9b6e59b4ddefadaddad9c4008
data/.version CHANGED
@@ -1 +1 @@
1
- 0.0.39
1
+ 0.0.41
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas_rb (0.0.39)
4
+ atlas_rb (0.0.41)
5
5
  faraday (~> 2.7)
6
6
  faraday-follow_redirects (~> 0.3.0)
7
7
  faraday-multipart (~> 1)
@@ -8,7 +8,6 @@ module AtlasRb
8
8
  params: params,
9
9
  headers: { "Content-Type" => "application/json" }
10
10
  ) do |f|
11
- f.use Faraday::FollowRedirects::Middleware
12
11
  f.response :follow_redirects
13
12
  f.adapter Faraday.default_adapter
14
13
  end
@@ -5,7 +5,9 @@ module AtlasRb
5
5
  extend AtlasRb::FaradayHelper
6
6
 
7
7
  def self.find(id)
8
- JSON.parse(connection({}).get('/resources/' + id)&.body)
8
+ result = JSON.parse(connection({}).get('/resources/' + id)&.body)
9
+ { "klass" => result.first[0].capitalize,
10
+ "resource" => result.first[1] }
9
11
  end
10
12
  end
11
13
  end
data/lib/atlas_rb.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "faraday"
4
4
  require "faraday/multipart"
5
+ require "faraday/follow_redirects"
5
6
  require_relative "atlas_rb/version"
6
7
  require_relative "atlas_rb/faraday_helper"
7
8
  require_relative "atlas_rb/resource"
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.39
4
+ version: 0.0.41
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-24 00:00:00.000000000 Z
11
+ date: 2024-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday