feathr 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 6ae650f7803f02e1c78fdfeb157fb0172b63a7f9
4
- data.tar.gz: e93b13277216ac2c8df100d10227f928fccfecf2
3
+ metadata.gz: 2256a0d60c2d8d229f0f34bbffe656211d096dac
4
+ data.tar.gz: a58974b968d528996f57bf3bd3a03ffe34b8fa40
5
5
  SHA512:
6
- metadata.gz: a0fd0e8d2936f63d4a08175e5f8150a6edfe30ac2c3bafe1bdcb46e1b487bcdd89ee6add4dbca1547ef776ff1a821ff2e564f36c4b12429add1b59153f9d4693
7
- data.tar.gz: 6df71e6e30ee147aecb9385322953019ef8e575d63aca1a93f3b3ca44063aeb85d71d73cd1bdbdc514a42a8f792475ba2b19e13e972973727f57bd69500cbe7e
6
+ metadata.gz: '09bd14ac0f3005322e9ff7ba273d3af840702fe587f9c5e14cafd74539a5801948c3ffb088fd912dc3b6497afd558c2859becb3bb5d266689eaef3ad3b6277e2'
7
+ data.tar.gz: 183a471a56815525bbeb85c2f0d4c1fb6ebb4f2dc09e21f9a0eebecbdfac5315c3743ed7e0069606f3d7dad6c9625b052e7a54a79c40a40556e9de2b4b682a8f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- feathr (0.1.0)
4
+ feathr (0.1.1)
5
5
  httparty
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -80,6 +80,9 @@ NOT PRODUCTION READY outside
80
80
  - use urls instead of ids ??
81
81
  - missing a few tests
82
82
  - remove unnecessary intermediate queries
83
+ - raise errors instead of returning them?
84
+ - separate objects and endpoints
85
+ - authentciated user cacheing?
83
86
 
84
87
  ## Development
85
88
 
@@ -9,12 +9,18 @@ module Feathr
9
9
  def initialize(data, id)
10
10
  @data = data
11
11
  @id = id
12
+
13
+ super()
12
14
  end
13
15
 
14
16
  def path
15
17
  [api_path, id].join('')
16
18
  end
17
19
 
20
+ def full_path
21
+ url = [client.config.base_url, path].join('/') + "/"
22
+ end
23
+
18
24
  def as_json
19
25
  data.to_h
20
26
  end
@@ -52,7 +52,6 @@ module Feathr
52
52
  def request(method: :get, path:, query: {}, headers: {})
53
53
  url = [config.base_url, path].join('/')
54
54
 
55
-
56
55
  unless path == Feathr::Api::ApiTokenAuth.new.api_path
57
56
  headers = default_headers.merge(auth_headers).merge(headers)
58
57
  query = query.to_json
@@ -1,3 +1,3 @@
1
1
  module Feathr
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feathr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Herman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2017-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty