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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -0
- data/lib/feathr/api/feathr_object.rb +6 -0
- data/lib/feathr/client.rb +0 -1
- data/lib/feathr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2256a0d60c2d8d229f0f34bbffe656211d096dac
|
4
|
+
data.tar.gz: a58974b968d528996f57bf3bd3a03ffe34b8fa40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09bd14ac0f3005322e9ff7ba273d3af840702fe587f9c5e14cafd74539a5801948c3ffb088fd912dc3b6497afd558c2859becb3bb5d266689eaef3ad3b6277e2'
|
7
|
+
data.tar.gz: 183a471a56815525bbeb85c2f0d4c1fb6ebb4f2dc09e21f9a0eebecbdfac5315c3743ed7e0069606f3d7dad6c9625b052e7a54a79c40a40556e9de2b4b682a8f
|
data/Gemfile.lock
CHANGED
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
|
data/lib/feathr/client.rb
CHANGED
@@ -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
|
data/lib/feathr/version.rb
CHANGED
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.
|
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
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|