liblab_the_one 0.1.0 → 0.2.0
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 -7
- data/design.md +19 -0
- data/lib/liblab/version.rb +1 -1
- data/lib/liblab.rb +0 -1
- metadata +2 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a272a9f94c2e02f952eb657bbb9d8d6862b9f7aee4010a18ee2934fd3ce0488
|
4
|
+
data.tar.gz: c6c18518484c0bc6a08f815636947e581c2ff38bd1391aef3af6550376134311
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e23d7d4e726e30dfc42d600f2a981eac6be42e04569cce33c82a5f753a3fbbaea75dd1b241674812309f73e62c2c38172d6e9b1386accc8905c1dd06c7bd15d
|
7
|
+
data.tar.gz: e1d422f96ae681b84644543a0e495bce923d600596e90ad0ca8431c59e75ca7a4e25e40dbe9d3b4cdaedf310c92007dd596b8321e455e0d72ea6bccee6ece590
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
liblab_the_one (0.
|
5
|
-
pry (~> 0.14.2)
|
4
|
+
liblab_the_one (0.2.0)
|
6
5
|
rest-client (~> 2.1.0)
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: https://rubygems.org/
|
10
9
|
specs:
|
11
10
|
ast (2.4.2)
|
12
|
-
coderay (1.1.3)
|
13
11
|
diff-lcs (1.5.0)
|
14
12
|
domain_name (0.5.20190701)
|
15
13
|
unf (>= 0.0.5, < 1.0.0)
|
@@ -17,7 +15,6 @@ GEM
|
|
17
15
|
http-cookie (1.0.5)
|
18
16
|
domain_name (~> 0.5)
|
19
17
|
json (2.6.3)
|
20
|
-
method_source (1.0.0)
|
21
18
|
mime-types (3.4.1)
|
22
19
|
mime-types-data (~> 3.2015)
|
23
20
|
mime-types-data (3.2023.0218.1)
|
@@ -25,9 +22,6 @@ GEM
|
|
25
22
|
parallel (1.23.0)
|
26
23
|
parser (3.2.2.1)
|
27
24
|
ast (~> 2.4.1)
|
28
|
-
pry (0.14.2)
|
29
|
-
coderay (~> 1.1)
|
30
|
-
method_source (~> 1.0)
|
31
25
|
rainbow (3.1.1)
|
32
26
|
rake (13.0.6)
|
33
27
|
regexp_parser (2.8.0)
|
data/design.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# Liblab one API SDK design
|
2
|
+
|
3
|
+
This is a `ruby gem` implementation. The gem was bootstrapped with `Bundler`.
|
4
|
+
|
5
|
+
The file structure follows standard file structure design stated by https://guides.rubygems.org/make-your-own-gem/. and https://bundler.io/guides/creating_gem.html
|
6
|
+
|
7
|
+
There is an `https helper class` to help with error handling.
|
8
|
+
|
9
|
+
`client/base` handles the actual api request preparation and calling.
|
10
|
+
|
11
|
+
There is a configuration file to allow for the `access token` to be added via an environment variable.
|
12
|
+
|
13
|
+
There is a custom `logging` system to debug requests.
|
14
|
+
|
15
|
+
`Rspec` was used for automated testing and tests all implemented endpoints and possible failures.
|
16
|
+
|
17
|
+
Each class contains a command for an endpoint request. This follows a `service object` approach with a `call` method to trigger the request. https://www.toptal.com/ruby-on-rails/rails-service-objects-tutorial
|
18
|
+
|
19
|
+
`Pagination` was also implemented for quotes list.
|
data/lib/liblab/version.rb
CHANGED
data/lib/liblab.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liblab_the_one
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Monty Lennie
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.1.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: pry
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.14.2
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.14.2
|
41
27
|
description: Allows easy connection to liblab API
|
42
28
|
email:
|
43
29
|
- montylennie@gmail.com
|
@@ -54,6 +40,7 @@ files:
|
|
54
40
|
- LICENSE.txt
|
55
41
|
- README.md
|
56
42
|
- Rakefile
|
43
|
+
- design.md
|
57
44
|
- lib/liblab.rb
|
58
45
|
- lib/liblab/client/base.rb
|
59
46
|
- lib/liblab/configuration.rb
|