synonymous 0.2.0 → 0.3.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 +18 -23
- data/lib/synonymous/client.rb +1 -3
- data/lib/synonymous/version.rb +1 -1
- data/synonymous.gemspec +3 -4
- metadata +12 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01e4b7d1e3163206aa1f8c94d28672be1eac9ff8199923bebab244648ad97902
|
4
|
+
data.tar.gz: 6b39ef45c54165d3fd33581b708303c7dabc2389dff3821c6dc04f0092b85e6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15307c7cf0399ca24ebc36a650ea461206fe37bf6e4e5433a6f564297c6ed072f8cc5597c91470333e9be834f783cd34d3ea0dd1fecd595c9c4b58620db65821
|
7
|
+
data.tar.gz: adb56c03089b226666190406debd93727212113cf96be44716cf57beb898476c27c55b3c17344783d4682769356f058d2956f3cf0ee870aa936f7f5f286a2f5a
|
data/Gemfile.lock
CHANGED
@@ -1,35 +1,30 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
synonymous (0.
|
4
|
+
synonymous (0.3.0)
|
5
5
|
faraday
|
6
|
-
faraday-raise-errors
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: https://rubygems.org/
|
10
9
|
specs:
|
11
|
-
addressable (2.
|
10
|
+
addressable (2.8.0)
|
12
11
|
public_suffix (>= 2.0.2, < 5.0)
|
13
12
|
crack (0.4.5)
|
14
13
|
rexml
|
15
|
-
faraday (
|
16
|
-
faraday-net_http (~>
|
17
|
-
|
18
|
-
|
19
|
-
faraday-net_http (1.0.1)
|
20
|
-
faraday-raise-errors (0.3.0)
|
21
|
-
faraday
|
14
|
+
faraday (2.2.0)
|
15
|
+
faraday-net_http (~> 2.0)
|
16
|
+
ruby2_keywords (>= 0.0.4)
|
17
|
+
faraday-net_http (2.0.2)
|
22
18
|
hashdiff (1.0.1)
|
23
|
-
minitest (5.
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
ruby2_keywords (0.0.4)
|
19
|
+
minitest (5.15.0)
|
20
|
+
public_suffix (4.0.7)
|
21
|
+
rake (13.0.6)
|
22
|
+
rexml (3.2.5)
|
23
|
+
ruby2_keywords (0.0.5)
|
29
24
|
shoulda-context (2.0.0)
|
30
|
-
vcr (6.
|
31
|
-
webmock (3.
|
32
|
-
addressable (>= 2.
|
25
|
+
vcr (6.1.0)
|
26
|
+
webmock (3.14.0)
|
27
|
+
addressable (>= 2.8.0)
|
33
28
|
crack (>= 0.3.2)
|
34
29
|
hashdiff (>= 0.4.0, < 2.0.0)
|
35
30
|
|
@@ -37,13 +32,13 @@ PLATFORMS
|
|
37
32
|
ruby
|
38
33
|
|
39
34
|
DEPENDENCIES
|
40
|
-
bundler
|
41
|
-
minitest
|
42
|
-
rake
|
35
|
+
bundler
|
36
|
+
minitest
|
37
|
+
rake
|
43
38
|
shoulda-context
|
44
39
|
synonymous!
|
45
40
|
vcr
|
46
41
|
webmock
|
47
42
|
|
48
43
|
BUNDLED WITH
|
49
|
-
|
44
|
+
2.2.32
|
data/lib/synonymous/client.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require "faraday"
|
2
|
-
require "faraday/raise_errors"
|
3
2
|
require "json"
|
4
3
|
|
5
4
|
require "synonymous/response"
|
@@ -17,11 +16,10 @@ module Synonymous
|
|
17
16
|
end
|
18
17
|
|
19
18
|
private
|
20
|
-
attr_reader :client
|
21
19
|
|
22
20
|
def client
|
23
21
|
@client ||= Faraday.new("https://www.dictionaryapi.com/api/v3/references/thesaurus/json") do |client|
|
24
|
-
client.
|
22
|
+
client.response :raise_error
|
25
23
|
client.adapter Faraday.default_adapter
|
26
24
|
end
|
27
25
|
end
|
data/lib/synonymous/version.rb
CHANGED
data/synonymous.gemspec
CHANGED
@@ -24,11 +24,10 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
26
|
spec.add_dependency "faraday"
|
27
|
-
spec.add_dependency "faraday-raise-errors"
|
28
27
|
|
29
|
-
spec.add_development_dependency "bundler"
|
30
|
-
spec.add_development_dependency "rake"
|
31
|
-
spec.add_development_dependency "minitest"
|
28
|
+
spec.add_development_dependency "bundler"
|
29
|
+
spec.add_development_dependency "rake"
|
30
|
+
spec.add_development_dependency "minitest"
|
32
31
|
spec.add_development_dependency "shoulda-context"
|
33
32
|
spec.add_development_dependency "vcr"
|
34
33
|
spec.add_development_dependency "webmock"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synonymous
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -25,61 +25,47 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
|
-
type: :
|
34
|
+
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.17'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.17'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rake
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- - "
|
45
|
+
- - ">="
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
47
|
+
version: '0'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- - "
|
52
|
+
- - ">="
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
54
|
+
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: minitest
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- - "
|
59
|
+
- - ">="
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
61
|
+
version: '0'
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- - "
|
66
|
+
- - ">="
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
68
|
+
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: shoulda-context
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|