book-value 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +71 -50
- data/book-value.gemspec +9 -9
- data/lib/book-value/client.rb +2 -1
- data/lib/book-value/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e96a7d930107e91d3dee0675e7414033a75c3143cd6798d18d0ca6498febdbb8
|
4
|
+
data.tar.gz: 234e9d4ec3fcc715ecbb2513d955d6a5329c9e941cfe390a82c15eba31f8653b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 380af078c232d219b6f511096695be309e0be2cfa2e1e91c36c945941ed20fc31f119e29d77f67850bbd94eeabf8f481eb705d2dbf429999b04480c640aa43ae
|
7
|
+
data.tar.gz: 7f9758ecfb052484b3e886f5369a1aee6fef7b7b7e921b1a3a8dc3bc4c711722294b38a39fd3b4965ad7df6b075514d539dbc2fba0b5e0cf421f9fd8db44cd37
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,110 +1,131 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
book-value (0.0.
|
5
|
-
active_attr (~> 0.
|
4
|
+
book-value (0.0.6)
|
5
|
+
active_attr (~> 0.16.0)
|
6
6
|
httparty (~> 0.21.0)
|
7
|
-
nokogiri (~> 1.
|
7
|
+
nokogiri (~> 1.15.4)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actionpack (7.
|
13
|
-
actionview (= 7.
|
14
|
-
activesupport (= 7.
|
15
|
-
|
12
|
+
actionpack (7.1.1)
|
13
|
+
actionview (= 7.1.1)
|
14
|
+
activesupport (= 7.1.1)
|
15
|
+
nokogiri (>= 1.8.5)
|
16
|
+
rack (>= 2.2.4)
|
17
|
+
rack-session (>= 1.0.1)
|
16
18
|
rack-test (>= 0.6.3)
|
17
|
-
rails-dom-testing (~> 2.
|
18
|
-
rails-html-sanitizer (~> 1.
|
19
|
-
actionview (7.
|
20
|
-
activesupport (= 7.
|
19
|
+
rails-dom-testing (~> 2.2)
|
20
|
+
rails-html-sanitizer (~> 1.6)
|
21
|
+
actionview (7.1.1)
|
22
|
+
activesupport (= 7.1.1)
|
21
23
|
builder (~> 3.1)
|
22
|
-
erubi (~> 1.
|
23
|
-
rails-dom-testing (~> 2.
|
24
|
-
rails-html-sanitizer (~> 1.
|
25
|
-
active_attr (0.
|
26
|
-
actionpack (>= 3.0.2, < 7.
|
27
|
-
activemodel (>= 3.0.2, < 7.
|
28
|
-
activesupport (>= 3.0.2, < 7.
|
29
|
-
activemodel (7.
|
30
|
-
activesupport (= 7.
|
31
|
-
activesupport (7.
|
24
|
+
erubi (~> 1.11)
|
25
|
+
rails-dom-testing (~> 2.2)
|
26
|
+
rails-html-sanitizer (~> 1.6)
|
27
|
+
active_attr (0.16.0)
|
28
|
+
actionpack (>= 3.0.2, < 7.2)
|
29
|
+
activemodel (>= 3.0.2, < 7.2)
|
30
|
+
activesupport (>= 3.0.2, < 7.2)
|
31
|
+
activemodel (7.1.1)
|
32
|
+
activesupport (= 7.1.1)
|
33
|
+
activesupport (7.1.1)
|
34
|
+
base64
|
35
|
+
bigdecimal
|
32
36
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
37
|
+
connection_pool (>= 2.2.5)
|
38
|
+
drb
|
33
39
|
i18n (>= 1.6, < 2)
|
34
40
|
minitest (>= 5.1)
|
41
|
+
mutex_m
|
35
42
|
tzinfo (~> 2.0)
|
36
|
-
addressable (2.8.
|
43
|
+
addressable (2.8.5)
|
37
44
|
public_suffix (>= 2.0.2, < 6.0)
|
38
45
|
ansi (1.5.0)
|
46
|
+
base64 (0.2.0)
|
47
|
+
bigdecimal (3.1.4)
|
39
48
|
builder (3.2.4)
|
40
49
|
coderay (1.1.3)
|
41
50
|
concurrent-ruby (1.2.2)
|
51
|
+
connection_pool (2.4.1)
|
42
52
|
crack (0.4.5)
|
43
53
|
rexml
|
44
54
|
crass (1.0.6)
|
55
|
+
drb (2.2.0)
|
56
|
+
ruby2_keywords
|
45
57
|
erubi (1.12.0)
|
46
58
|
hashdiff (1.0.1)
|
47
59
|
httparty (0.21.0)
|
48
60
|
mini_mime (>= 1.0.0)
|
49
61
|
multi_xml (>= 0.5.2)
|
50
|
-
i18n (1.
|
62
|
+
i18n (1.14.1)
|
51
63
|
concurrent-ruby (~> 1.0)
|
52
|
-
loofah (2.
|
64
|
+
loofah (2.21.4)
|
53
65
|
crass (~> 1.0.2)
|
54
|
-
nokogiri (>= 1.
|
66
|
+
nokogiri (>= 1.12.0)
|
55
67
|
method_source (1.0.0)
|
56
|
-
mini_mime (1.1.
|
57
|
-
minitest (5.
|
58
|
-
minitest-focus (1.
|
68
|
+
mini_mime (1.1.5)
|
69
|
+
minitest (5.20.0)
|
70
|
+
minitest-focus (1.4.0)
|
59
71
|
minitest (>= 4, < 6)
|
60
|
-
minitest-reporters (1.
|
72
|
+
minitest-reporters (1.6.1)
|
61
73
|
ansi
|
62
74
|
builder
|
63
75
|
minitest (>= 5.0)
|
64
76
|
ruby-progressbar
|
65
|
-
mocha (2.0
|
77
|
+
mocha (2.1.0)
|
66
78
|
ruby2_keywords (>= 0.0.5)
|
67
79
|
multi_xml (0.6.0)
|
68
|
-
|
80
|
+
mutex_m (0.2.0)
|
81
|
+
nokogiri (1.15.4-arm64-darwin)
|
82
|
+
racc (~> 1.4)
|
83
|
+
nokogiri (1.15.4-x86_64-linux)
|
69
84
|
racc (~> 1.4)
|
70
85
|
pry (0.14.2)
|
71
86
|
coderay (~> 1.1)
|
72
87
|
method_source (~> 1.0)
|
73
|
-
public_suffix (5.0.
|
74
|
-
racc (1.
|
75
|
-
rack (
|
88
|
+
public_suffix (5.0.3)
|
89
|
+
racc (1.7.3)
|
90
|
+
rack (3.0.8)
|
91
|
+
rack-session (2.0.0)
|
92
|
+
rack (>= 3.0.0)
|
76
93
|
rack-test (2.1.0)
|
77
94
|
rack (>= 1.3)
|
78
|
-
rails-dom-testing (2.0
|
79
|
-
activesupport (>=
|
95
|
+
rails-dom-testing (2.2.0)
|
96
|
+
activesupport (>= 5.0.0)
|
97
|
+
minitest
|
80
98
|
nokogiri (>= 1.6)
|
81
|
-
rails-html-sanitizer (1.
|
82
|
-
loofah (~> 2.
|
83
|
-
|
84
|
-
|
99
|
+
rails-html-sanitizer (1.6.0)
|
100
|
+
loofah (~> 2.21)
|
101
|
+
nokogiri (~> 1.14)
|
102
|
+
rake (13.1.0)
|
103
|
+
rexml (3.2.6)
|
85
104
|
ruby-progressbar (1.13.0)
|
86
105
|
ruby2_keywords (0.0.5)
|
87
|
-
timecop (0.9.
|
106
|
+
timecop (0.9.8)
|
88
107
|
tzinfo (2.0.6)
|
89
108
|
concurrent-ruby (~> 1.0)
|
90
|
-
webmock (3.
|
109
|
+
webmock (3.19.1)
|
91
110
|
addressable (>= 2.8.0)
|
92
111
|
crack (>= 0.3.2)
|
93
112
|
hashdiff (>= 0.4.0, < 2.0.0)
|
94
113
|
|
95
114
|
PLATFORMS
|
96
115
|
arm64-darwin-20
|
116
|
+
arm64-darwin-23
|
117
|
+
x86_64-linux
|
97
118
|
|
98
119
|
DEPENDENCIES
|
99
120
|
book-value!
|
100
|
-
minitest (~> 5.
|
101
|
-
minitest-focus (~> 1.
|
102
|
-
minitest-reporters (~> 1.
|
103
|
-
mocha (~> 2.0
|
121
|
+
minitest (~> 5.20.0)
|
122
|
+
minitest-focus (~> 1.4.0)
|
123
|
+
minitest-reporters (~> 1.6.1)
|
124
|
+
mocha (~> 2.1.0)
|
104
125
|
pry (~> 0.14.2)
|
105
|
-
rake (~> 13.0
|
106
|
-
timecop (~> 0.9.
|
107
|
-
webmock (~> 3.
|
126
|
+
rake (~> 13.1.0)
|
127
|
+
timecop (~> 0.9.8)
|
128
|
+
webmock (~> 3.19.1)
|
108
129
|
|
109
130
|
BUNDLED WITH
|
110
|
-
2.
|
131
|
+
2.4.21
|
data/book-value.gemspec
CHANGED
@@ -23,16 +23,16 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
25
|
spec.add_dependency "httparty", "~> 0.21.0"
|
26
|
-
spec.add_dependency "active_attr", "~> 0.
|
27
|
-
spec.add_dependency "nokogiri", "~> 1.
|
26
|
+
spec.add_dependency "active_attr", "~> 0.16.0"
|
27
|
+
spec.add_dependency "nokogiri", "~> 1.15.4"
|
28
28
|
|
29
29
|
# Development dependancies
|
30
|
-
spec.add_development_dependency "rake", "~> 13.0
|
31
|
-
spec.add_development_dependency "minitest", "~> 5.
|
32
|
-
spec.add_development_dependency "minitest-focus", "~> 1.
|
33
|
-
spec.add_development_dependency "minitest-reporters", "~> 1.
|
34
|
-
spec.add_development_dependency "timecop", "~> 0.9.
|
35
|
-
spec.add_development_dependency "mocha", "~> 2.0
|
30
|
+
spec.add_development_dependency "rake", "~> 13.1.0"
|
31
|
+
spec.add_development_dependency "minitest", "~> 5.20.0"
|
32
|
+
spec.add_development_dependency "minitest-focus", "~> 1.4.0"
|
33
|
+
spec.add_development_dependency "minitest-reporters", "~> 1.6.1"
|
34
|
+
spec.add_development_dependency "timecop", "~> 0.9.8"
|
35
|
+
spec.add_development_dependency "mocha", "~> 2.1.0"
|
36
36
|
spec.add_development_dependency "pry", "~> 0.14.2"
|
37
|
-
spec.add_development_dependency "webmock", "~> 3.
|
37
|
+
spec.add_development_dependency "webmock", "~> 3.19.1"
|
38
38
|
end
|
data/lib/book-value/client.rb
CHANGED
@@ -71,8 +71,9 @@ module BookValue
|
|
71
71
|
feature_params = feature_params[0..-2]
|
72
72
|
|
73
73
|
milage_form_page = authorise_and_send(http_method: :post, payload: feature_params, command: "calculate/#{make.downcase}/#{model_name}")
|
74
|
+
next unless milage_form_page['metadata']['ok']
|
75
|
+
|
74
76
|
condition_url = milage_form_page['headers']['location']
|
75
|
-
next unless condition_url
|
76
77
|
|
77
78
|
_condition_page = HTTParty.post(condition_url, body: "mileage=#{mileage}&year=#{year}")
|
78
79
|
|
data/lib/book-value/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: book-value
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- trex22
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -30,112 +30,112 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.16.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.16.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: nokogiri
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.15.4
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.15.4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 13.0
|
61
|
+
version: 13.1.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 13.0
|
68
|
+
version: 13.1.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 5.
|
75
|
+
version: 5.20.0
|
76
76
|
type: :development
|
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: 5.
|
82
|
+
version: 5.20.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: minitest-focus
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.
|
89
|
+
version: 1.4.0
|
90
90
|
type: :development
|
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: 1.
|
96
|
+
version: 1.4.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: minitest-reporters
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.6.1
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: 1.6.1
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: timecop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.9.
|
117
|
+
version: 0.9.8
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.9.
|
124
|
+
version: 0.9.8
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: mocha
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.0
|
131
|
+
version: 2.1.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 2.0
|
138
|
+
version: 2.1.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: pry
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 3.
|
159
|
+
version: 3.19.1
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 3.
|
166
|
+
version: 3.19.1
|
167
167
|
description: An unofficial client for https://book-value.co.za/.
|
168
168
|
email:
|
169
169
|
- contact@jasonchalom.com
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
|
-
rubygems_version: 3.
|
209
|
+
rubygems_version: 3.4.10
|
210
210
|
signing_key:
|
211
211
|
specification_version: 4
|
212
212
|
summary: An unofficial client for https://book-value.co.za/.
|