tomograph 0.3.0 → 0.4.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: 3289dd90efeda55988bc7c5093fb73ba35171351
4
- data.tar.gz: 641dabca21ac092725565aa355602127ec5a3ada
3
+ metadata.gz: 3228f341aa3435287604e817404f80f26eec5b71
4
+ data.tar.gz: c6db2eb21936aa5523e1c3506cb1fca18d795a70
5
5
  SHA512:
6
- metadata.gz: a674bf19dfd0b1bcf1ba41fc0e0334ddda23caf5584d34127668e888776358dcc9d600c3cc1b475fa9992047ef6b228218acead51c196080995b6e4fcb67cc8b
7
- data.tar.gz: 76707e3867da3284168c040a8985d476b2760f1a410f24fbc6de0c31d008c668d1d3c3e385f8f75de68404e59741c3b535a2bb1ae98db41ecc595925efffdd2e
6
+ metadata.gz: c82ba6aa0a2137a3f63884f327cdca1ae0f731f455bb8b888f5e99afeddb3d17702144880e1b90d322043e13d81543578aa9f72afa15c6fc3407524e5bf106da
7
+ data.tar.gz: a815f9f5c0e800e20929dbf9c83734e1bdb743754dcd08ffeb61813517c174ef431cbc9c238a38863599ee0d288887720dbf324b2f5de335afeb997da4d8d7cf
@@ -1,7 +1,8 @@
1
1
  module Tomograph
2
2
  class Configuration
3
3
  attr_accessor :documentation,
4
- :prefix
4
+ :prefix,
5
+ :drafter_yaml
5
6
 
6
7
  def initialize
7
8
  @prefix = ''
@@ -63,7 +63,11 @@ module Tomograph
63
63
  end
64
64
 
65
65
  def documentation
66
- YAML.load(File.read("#{Rails.root}/#{Tomograph.configuration.documentation}"))
66
+ if Tomograph.configuration.drafter_yaml
67
+ YAML.load(Tomograph.configuration.drafter_yaml)
68
+ else
69
+ YAML.load(File.read("#{Rails.root}/#{Tomograph.configuration.documentation}"))
70
+ end
67
71
  end
68
72
 
69
73
  def delete_till_the_end(path, beginning_with)
@@ -1,3 +1,3 @@
1
1
  module Tomograph
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomograph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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: 2017-02-07 00:00:00.000000000 Z
11
+ date: 2017-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json