fitting 2.8.0 → 2.8.1

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
  SHA1:
3
- metadata.gz: e2cacd061443e2b01a8632268f720ded08dffce1
4
- data.tar.gz: 1d0237514578651a2376ae63b47b8ca6433a3a9c
3
+ metadata.gz: edafbec6cdccc2ef4325f10095bcd6519ffc7e67
4
+ data.tar.gz: 1eba55294c0d386d49bddbaae04426c7ab0d8dca
5
5
  SHA512:
6
- metadata.gz: a23cd2b021cfc20b7fa23a02cc97446e27a99714bb0069cfd4b08303a2011daca9e59fab7f38cc98476fd7b447df8389d9247806e451b2277d7f6a8dd6d0208f
7
- data.tar.gz: d10e832b45a744eabf84cdbdbe0f213bd901f80bce104e6639d391d83d1123df4f95426a64cda0c28706210eac6c6e2100d031696413c6bbc23fcd536202cb94
6
+ metadata.gz: f5b3446b91bec433494518e598a67941c3131738304c85414fa445909fad34de07cef39ed40b5a407609fadc6f812f380299cd8629701aca2d19b1931bbdba19
7
+ data.tar.gz: 84eed7d30ef18e7261185dc4c4acbccc86151c0e019ff3e4565d546f11f8a8d8b17480e21d1cece16ba7049377a395a1ed330cccccfcdb25741cc49b53ac1bf5
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ### 2.8.1 - 2018-12-18
4
+
5
+ * features
6
+ * Add support for [parallel_tests](https://github.com/grosser/parallel_tests)
7
+
3
8
  ### 2.8.0 - 2018-10-13
4
9
 
5
10
  * features
data/README.md CHANGED
@@ -42,7 +42,7 @@ require 'fitting'
42
42
  Fitting.save_test_data
43
43
  ```
44
44
 
45
- The tests.json file will be created
45
+ The files will be created in ./fitting_tests/ path
46
46
 
47
47
  Example:
48
48
 
@@ -8,7 +8,10 @@ module Fitting
8
8
  def to_a
9
9
  return @to_a if @to_a
10
10
 
11
- array = JSON.load(File.read('tests.json'))
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
@@ -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
- File.open('tests.json', 'w') { |file| file.write(json) }
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)
@@ -1,3 +1,3 @@
1
1
  module Fitting
2
- VERSION = '2.8.0'.freeze
2
+ VERSION = '2.8.1'.freeze
3
3
  end
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.0
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-10-12 00:00:00.000000000 Z
11
+ date: 2018-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml