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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 741e0a412dd8d819491fdf28c9f39f34a55a82ed0ef46e09a451146892e4e110
4
- data.tar.gz: 708aa4fc97a346afe379f2442e74e1c01d3a680476b701469357d3394daf28d5
3
+ metadata.gz: 2a272a9f94c2e02f952eb657bbb9d8d6862b9f7aee4010a18ee2934fd3ce0488
4
+ data.tar.gz: c6c18518484c0bc6a08f815636947e581c2ff38bd1391aef3af6550376134311
5
5
  SHA512:
6
- metadata.gz: 6ee78d19db8cd207d26fc4e291d4e7c29a03d46a143a35f098d684a448aa3a82f41d2e54f647c385062e921ad3e578dcdab7f8c18a54dce7baceaf23cd6dee2d
7
- data.tar.gz: 1e91ddc7dc02c8950dfb4b347246dd4204ba315b8e59ba2f68d29f6ddd3bdf26f302266b6124f6d7021d9396feb84a4ee0773d7fc2c715483a99e841d6369119
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.1.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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Liblab
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
data/lib/liblab.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "pry"
4
3
  require_relative "liblab/version"
5
4
  require_relative "liblab/configuration"
6
5
  require_relative "liblab/https"
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.1.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