lingutest_client 0.1.4 → 0.1.5

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: 75545303557e78cc13f1aff77d1236a60e96a64450bbe3b028109fa27c9125bb
4
- data.tar.gz: d4536b69d79b552326ab302d19cca72d4192530c7fb438997e8156ecaa9a00dc
3
+ metadata.gz: c720d6b45a1920d5e0d8b6624415807e2f5ae099f62020d949f0559d4e93cac1
4
+ data.tar.gz: 1d979933919db99cfaa57c5ecd40c06b58cbda121850406d8cee7ab87e79ef5c
5
5
  SHA512:
6
- metadata.gz: e0c0bb5293aeda8932acc6bb867af5ca4295a0d632d1addb04756de6061150fe72465f14a8356a22b9eb1655f7dd385c56ecdf126c45b7ea8ba265b965e38d45
7
- data.tar.gz: a251fb5e341b92ddc6b106053fd7cce1eaa6f9c74c03fafa5f5bf438409fbfaec1b48a74d4a4b727d4671ff266f05bcd9558897c6d60ef9e6b7368305c41e873
6
+ metadata.gz: dc3ed1b9e05a0e7b7c58ae5c1cd83786f2a1e10fd1776a2265d2d1c750f2fd1449b14d72af26be6d02d15dc3b3221c1efbd4173dee3445bef30e8d73af05b46f
7
+ data.tar.gz: 6e291959bb887a3be5f5bdae7a16de8a0eb45a33f0227d7dc09d248219c5bc6e41c1ea609e4978d82801031a02d1fa04ec0908f898f81204092fbe48b156f82e
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ vendor
10
11
 
11
12
  # rspec failure tracking
12
13
  .rspec_status
data/Gemfile.lock CHANGED
@@ -1,35 +1,34 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lingutest_client (0.1.4)
4
+ lingutest_client (0.1.5)
5
5
  dry-configurable (~> 0.9.0)
6
6
  dry-schema (~> 1.4.3)
7
7
  dry-struct (~> 1.2.0)
8
8
  dry-types (~> 1.2.2)
9
- faraday
10
- faraday_middleware
9
+ faraday (~> 1.8.0)
10
+ faraday_middleware (~> 1.2.0)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- ast (2.4.0)
16
- concurrent-ruby (1.1.5)
17
- diff-lcs (1.3)
15
+ ast (2.4.2)
16
+ concurrent-ruby (1.1.9)
17
+ diff-lcs (1.5.0)
18
18
  dry-configurable (0.9.0)
19
19
  concurrent-ruby (~> 1.0)
20
20
  dry-core (~> 0.4, >= 0.4.7)
21
- dry-container (0.7.2)
21
+ dry-container (0.8.0)
22
22
  concurrent-ruby (~> 1.0)
23
23
  dry-configurable (~> 0.1, >= 0.1.3)
24
- dry-core (0.4.9)
24
+ dry-core (0.7.1)
25
25
  concurrent-ruby (~> 1.0)
26
26
  dry-equalizer (0.3.0)
27
- dry-inflector (0.2.0)
28
- dry-initializer (3.0.3)
29
- dry-logic (1.0.5)
27
+ dry-inflector (0.2.1)
28
+ dry-initializer (3.0.4)
29
+ dry-logic (1.2.0)
30
30
  concurrent-ruby (~> 1.0)
31
- dry-core (~> 0.2)
32
- dry-equalizer (~> 0.2)
31
+ dry-core (~> 0.5, >= 0.5)
33
32
  dry-schema (1.4.3)
34
33
  concurrent-ruby (~> 1.0)
35
34
  dry-configurable (~> 0.8, >= 0.8.3)
@@ -50,31 +49,48 @@ GEM
50
49
  dry-equalizer (~> 0.3)
51
50
  dry-inflector (~> 0.1, >= 0.1.2)
52
51
  dry-logic (~> 1.0, >= 1.0.2)
53
- faraday (0.17.3)
52
+ faraday (1.8.0)
53
+ faraday-em_http (~> 1.0)
54
+ faraday-em_synchrony (~> 1.0)
55
+ faraday-excon (~> 1.1)
56
+ faraday-httpclient (~> 1.0.1)
57
+ faraday-net_http (~> 1.0)
58
+ faraday-net_http_persistent (~> 1.1)
59
+ faraday-patron (~> 1.0)
60
+ faraday-rack (~> 1.0)
54
61
  multipart-post (>= 1.2, < 3)
55
- faraday_middleware (0.14.0)
56
- faraday (>= 0.7.4, < 1.0)
62
+ ruby2_keywords (>= 0.0.4)
63
+ faraday-em_http (1.0.0)
64
+ faraday-em_synchrony (1.0.0)
65
+ faraday-excon (1.1.0)
66
+ faraday-httpclient (1.0.1)
67
+ faraday-net_http (1.0.1)
68
+ faraday-net_http_persistent (1.2.0)
69
+ faraday-patron (1.0.0)
70
+ faraday-rack (1.0.0)
71
+ faraday_middleware (1.2.0)
72
+ faraday (~> 1.0)
57
73
  ice_nine (0.11.2)
58
74
  jaro_winkler (1.5.4)
59
75
  multipart-post (2.1.1)
60
- parallel (1.19.1)
61
- parser (2.7.0.2)
62
- ast (~> 2.4.0)
76
+ parallel (1.21.0)
77
+ parser (3.1.0.0)
78
+ ast (~> 2.4.1)
63
79
  rainbow (3.0.0)
64
80
  rake (12.3.3)
65
- rspec (3.9.0)
66
- rspec-core (~> 3.9.0)
67
- rspec-expectations (~> 3.9.0)
68
- rspec-mocks (~> 3.9.0)
69
- rspec-core (3.9.1)
70
- rspec-support (~> 3.9.1)
71
- rspec-expectations (3.9.0)
81
+ rspec (3.10.0)
82
+ rspec-core (~> 3.10.0)
83
+ rspec-expectations (~> 3.10.0)
84
+ rspec-mocks (~> 3.10.0)
85
+ rspec-core (3.10.1)
86
+ rspec-support (~> 3.10.0)
87
+ rspec-expectations (3.10.1)
72
88
  diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.9.0)
74
- rspec-mocks (3.9.1)
89
+ rspec-support (~> 3.10.0)
90
+ rspec-mocks (3.10.2)
75
91
  diff-lcs (>= 1.2.0, < 2.0)
76
- rspec-support (~> 3.9.0)
77
- rspec-support (3.9.2)
92
+ rspec-support (~> 3.10.0)
93
+ rspec-support (3.10.3)
78
94
  rubocop (0.79.0)
79
95
  jaro_winkler (~> 1.5.1)
80
96
  parallel (~> 1.10)
@@ -82,7 +98,8 @@ GEM
82
98
  rainbow (>= 2.2.2, < 4.0)
83
99
  ruby-progressbar (~> 1.7)
84
100
  unicode-display_width (>= 1.4.0, < 1.7)
85
- ruby-progressbar (1.10.1)
101
+ ruby-progressbar (1.11.0)
102
+ ruby2_keywords (0.0.5)
86
103
  unicode-display_width (1.6.1)
87
104
 
88
105
  PLATFORMS
@@ -95,4 +112,4 @@ DEPENDENCIES
95
112
  rubocop (~> 0.79.0)
96
113
 
97
114
  BUNDLED WITH
98
- 1.17.3
115
+ 2.2.27
data/README.md CHANGED
@@ -1,15 +1,14 @@
1
1
  # LingutestClient
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/lingutest_client`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ This library will allow you to communicate with Lingu Test API. You can create examinations for client, and receive examination results. You need API token from Lingu Test to use this gem. Check [documentation](https://test.lingu.com/documentation) for API calls.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
5
 
7
6
  ## Installation
8
7
 
9
8
  Add this line to your application's Gemfile:
10
9
 
11
10
  ```ruby
12
- gem 'lingutest_client', github: 'AdeptLMS/lingutest_client', branch: :master
11
+ gem 'lingutest_client'
13
12
  ```
14
13
 
15
14
  And then execute:
@@ -18,7 +17,18 @@ And then execute:
18
17
 
19
18
  ## Usage
20
19
 
21
- TODO: Write usage instructions here
20
+ ```ruby
21
+ LingutestClient::Exam.list
22
+
23
+ LingutestClient::Candidate.list
24
+ LingutestClient::Candidate.find(id)
25
+ LingutestClient::Candidate.create(fname:, lname:, email:, ssn:, gender:, mobile:)
26
+ LingutestClient::Candidate.update(fname:, lname:, email:, ssn:, gender:, mobile:)
27
+
28
+ LingutestClient::Examination.list
29
+ LingutestClient::Examination.find(id)
30
+ LingutestClient::Examination.create(candidate_id:, exam_id:, expires_at:)
31
+ ```
22
32
 
23
33
  ## Development
24
34
 
@@ -1,3 +1,3 @@
1
1
  module LingutestClient
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency 'dry-struct', '~> 1.2.0'
33
33
  spec.add_dependency 'dry-types', '~> 1.2.2'
34
34
 
35
- spec.add_dependency 'faraday'
36
- spec.add_dependency 'faraday_middleware'
35
+ spec.add_dependency 'faraday', '~> 1.8.0'
36
+ spec.add_dependency 'faraday_middleware', '~> 1.2.0'
37
37
  spec.add_development_dependency 'rubocop', '~> 0.79.0'
38
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lingutest_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatolii Didukh
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-05 00:00:00.000000000 Z
11
+ date: 2022-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -70,30 +70,30 @@ dependencies:
70
70
  name: faraday
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 1.8.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 1.8.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: faraday_middleware
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 1.2.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 1.2.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -147,10 +147,10 @@ files:
147
147
  - lib/lingutest_client/types.rb
148
148
  - lib/lingutest_client/version.rb
149
149
  - lingutest_client.gemspec
150
- homepage:
150
+ homepage:
151
151
  licenses: []
152
152
  metadata: {}
153
- post_install_message:
153
+ post_install_message:
154
154
  rdoc_options: []
155
155
  require_paths:
156
156
  - lib
@@ -165,8 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.1.2
169
- signing_key:
168
+ rubygems_version: 3.2.22
169
+ signing_key:
170
170
  specification_version: 4
171
171
  summary: Write a short summary, because RubyGems requires one.
172
172
  test_files: []