fitting 2.8.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/fitting/records/spherical/requests.rb +4 -1
- data/lib/fitting/tests.rb +3 -1
- data/lib/fitting/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edafbec6cdccc2ef4325f10095bcd6519ffc7e67
|
4
|
+
data.tar.gz: 1eba55294c0d386d49bddbaae04426c7ab0d8dca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5b3446b91bec433494518e598a67941c3131738304c85414fa445909fad34de07cef39ed40b5a407609fadc6f812f380299cd8629701aca2d19b1931bbdba19
|
7
|
+
data.tar.gz: 84eed7d30ef18e7261185dc4c4acbccc86151c0e019ff3e4565d546f11f8a8d8b17480e21d1cece16ba7049377a395a1ed330cccccfcdb25741cc49b53ac1bf5
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,10 @@ module Fitting
|
|
8
8
|
def to_a
|
9
9
|
return @to_a if @to_a
|
10
10
|
|
11
|
-
array =
|
11
|
+
array = []
|
12
|
+
Dir['fitting_tests/*.json'].each do |file|
|
13
|
+
array += JSON.load(File.read(file))
|
14
|
+
end
|
12
15
|
@to_a = array.inject([]) do |res, tested_request|
|
13
16
|
res.push(Fitting::Records::Spherical::Request.load(tested_request))
|
14
17
|
end
|
data/lib/fitting/tests.rb
CHANGED
@@ -7,12 +7,14 @@ module Fitting
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def save
|
10
|
+
make_dir('fitting_tests')
|
10
11
|
array = @tested_requests.inject([]) do |res, request|
|
11
12
|
next res unless request.path.to_s.start_with?(Fitting.configuration.prefix)
|
12
13
|
res.push(request.to_spherical.to_hash)
|
13
14
|
end
|
14
15
|
json = JSON.dump(array)
|
15
|
-
|
16
|
+
|
17
|
+
File.open("fitting_tests/test#{ENV["TEST_ENV_NUMBER"]}.json", 'w') { |file| file.write(json) }
|
16
18
|
end
|
17
19
|
|
18
20
|
def make_dir(dir_name)
|
data/lib/fitting/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fitting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- d.efimov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|