fitting 2.9.1 → 2.10.0
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/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/README.md +4 -0
- data/lib/fitting/configuration/legacy.rb +12 -5
- data/lib/fitting/configuration/yaml.rb +17 -6
- 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: f8a58b7be52158cd26f8ae3fd7454cbc89512610
|
|
4
|
+
data.tar.gz: cb6bb15b054e2ec15e6262d16e3c697932d81640
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ffb5323b7ab335ad9f2ad966c7bfd2249b9388dcc9d434f35eff2f7626ba97ce3a5ac5f6bf386041840f7db397fe8c596ae52c95406e584120558865340a8742
|
|
7
|
+
data.tar.gz: 8db3c993339889701401ec962e0576f31ea746cbec06e3c5f326fe07487527cec79d36a20a7de0c5949418ebf2e2aaee5b9c269e03446a740530a0006535d51e
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -173,6 +173,10 @@ Path to API Blueprint documentation. There must be an installed [drafter](https:
|
|
|
173
173
|
|
|
174
174
|
Path to API Blueprint documentation pre-parsed with `drafter` and saved to a YAML file.
|
|
175
175
|
|
|
176
|
+
### crafter_yaml_path
|
|
177
|
+
|
|
178
|
+
Path to API Blueprint documentation pre-parsed with `crafter` and saved to a YAML file.
|
|
179
|
+
|
|
176
180
|
### tomogram_json_path
|
|
177
181
|
|
|
178
182
|
Path to Tomogram documentation pre-parsed with [tomograph](https://github.com/funbox/tomograph) and saved to a JSON file.
|
|
@@ -20,11 +20,18 @@ module Fitting
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def tomogram
|
|
23
|
-
@tomogram ||=
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
@tomogram ||= if @crafter_yaml_path
|
|
24
|
+
Tomograph::Tomogram.new(
|
|
25
|
+
prefix: @prefix,
|
|
26
|
+
apib_path: @apib_path,
|
|
27
|
+
crafter_yaml_path: @crafter_yaml_path
|
|
28
|
+
)
|
|
29
|
+
else Tomograph::Tomogram.new(
|
|
30
|
+
prefix: @prefix,
|
|
31
|
+
apib_path: @apib_path,
|
|
32
|
+
drafter_yaml_path: @drafter_yaml_path
|
|
33
|
+
)
|
|
34
|
+
end
|
|
28
35
|
end
|
|
29
36
|
|
|
30
37
|
def title
|
|
@@ -6,6 +6,7 @@ module Fitting
|
|
|
6
6
|
attr_reader :title
|
|
7
7
|
attr_accessor :apib_path,
|
|
8
8
|
:drafter_yaml_path,
|
|
9
|
+
:crafter_yaml_path,
|
|
9
10
|
:tomogram_json_path,
|
|
10
11
|
:strict,
|
|
11
12
|
:prefix,
|
|
@@ -18,6 +19,7 @@ module Fitting
|
|
|
18
19
|
def initialize(yaml, title = 'fitting')
|
|
19
20
|
@apib_path = yaml['apib_path']
|
|
20
21
|
@drafter_yaml_path = yaml['drafter_yaml_path']
|
|
22
|
+
@crafter_yaml_path = yaml['crafter_yaml_path']
|
|
21
23
|
@tomogram_json_path = yaml['tomogram_json_path']
|
|
22
24
|
@strict = yaml['strict']
|
|
23
25
|
@prefix = yaml['prefix']
|
|
@@ -31,12 +33,21 @@ module Fitting
|
|
|
31
33
|
end
|
|
32
34
|
|
|
33
35
|
def tomogram
|
|
34
|
-
@tomogram ||=
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
@tomogram ||= if @crafter_yaml_path
|
|
37
|
+
Tomograph::Tomogram.new(
|
|
38
|
+
prefix: @prefix,
|
|
39
|
+
apib_path: @apib_path,
|
|
40
|
+
crafter_yaml_path: @crafter_yaml_path,
|
|
41
|
+
tomogram_json_path: @tomogram_json_path
|
|
42
|
+
)
|
|
43
|
+
else
|
|
44
|
+
Tomograph::Tomogram.new(
|
|
45
|
+
prefix: @prefix,
|
|
46
|
+
apib_path: @apib_path,
|
|
47
|
+
drafter_yaml_path: @drafter_yaml_path,
|
|
48
|
+
tomogram_json_path: @tomogram_json_path
|
|
49
|
+
)
|
|
50
|
+
end
|
|
40
51
|
end
|
|
41
52
|
|
|
42
53
|
def stats_path
|
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.
|
|
4
|
+
version: 2.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- d.efimov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-09-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json-schema
|