fitting 2.9.1 → 2.10.0

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: 3434f295129747bcf09ef0086f4db92f9841ab56
4
- data.tar.gz: 958efdb10898402d6eb47fa3f36a0b03ee815ef4
3
+ metadata.gz: f8a58b7be52158cd26f8ae3fd7454cbc89512610
4
+ data.tar.gz: cb6bb15b054e2ec15e6262d16e3c697932d81640
5
5
  SHA512:
6
- metadata.gz: 2cca66c6af2f3b323000c1eccfaadbf5d67685088a922869dd84ae51c7af847c5edb85e4d60a07336c3ee434779b2e05710d07bb8c2a4c93cb9f75652096cd26
7
- data.tar.gz: 32eaec26bf1bb70eb6b2029fcace976c99a51a671b9939914ab0286b2fbdd5343a4fbc397a247c45ebd4b26bfeeb0ad774084dd15864dfa93ac7c97a19ad2dd6
6
+ metadata.gz: ffb5323b7ab335ad9f2ad966c7bfd2249b9388dcc9d434f35eff2f7626ba97ce3a5ac5f6bf386041840f7db397fe8c596ae52c95406e584120558865340a8742
7
+ data.tar.gz: 8db3c993339889701401ec962e0576f31ea746cbec06e3c5f326fe07487527cec79d36a20a7de0c5949418ebf2e2aaee5b9c269e03446a740530a0006535d51e
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /tmp/
10
10
  .idea/
11
11
  .byebug_history
12
+ .tool-versions
@@ -1,5 +1,9 @@
1
1
  # Change log
2
2
 
3
+ ### 2.10.0 - 2019-09-05
4
+
5
+ * features
6
+ * add crafter_yaml_path
3
7
 
4
8
  ### 2.9.1 - 2019-07-15
5
9
 
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 ||= Tomograph::Tomogram.new(
24
- prefix: @prefix,
25
- apib_path: @apib_path,
26
- drafter_yaml_path: @drafter_yaml_path
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 ||= Tomograph::Tomogram.new(
35
- prefix: @prefix,
36
- apib_path: @apib_path,
37
- drafter_yaml_path: @drafter_yaml_path,
38
- tomogram_json_path: @tomogram_json_path
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
@@ -1,3 +1,3 @@
1
1
  module Fitting
2
- VERSION = '2.9.1'.freeze
2
+ VERSION = '2.10.0'.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.9.1
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-07-15 00:00:00.000000000 Z
11
+ date: 2019-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema