raddocs 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/raddocs/app.rb +6 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b989901e3d45fb5255c8c9222d1746879b9790b
4
- data.tar.gz: cc742b1983b7f2e1cdbad403f1e9e35f1197482e
3
+ metadata.gz: ffbd193e9c8f8b0bf7fd8e25fdee03e5b3f421c7
4
+ data.tar.gz: 02f48976120eeaedd38ad8698f7c0a26fec12d2c
5
5
  SHA512:
6
- metadata.gz: afe31bd9643682f6135d20b25f7d4155e266fd7dee9b4293d1d98c090217f90f6250935c93fb7ffbca154808bc26930c770ee56de33cba4e6c4e1245b7a9629c
7
- data.tar.gz: 85bf7c3eb4a28549bff99c8a7c5d98495a0104abcbef4b8af1fed83679dd6ac284be03250a323473d8cd869be5d2792bf3aa2ebcb0bd7f9f3230b2d1b5db0fbf
6
+ metadata.gz: 57e35b21e0e6a3f928c5e0d7325ea81225340e27fc62269fa0c77f698529917f231b6e451580273a7e14256de48c069a34e550866b31b2b87e63c2bcb6b04aab
7
+ data.tar.gz: ebaf4933fcedc78144fe7aec56b71e581428b7c508f0d6b8c7504c9fd5df8987bfb5dd402126f9822318f1ebb7e64332ea6f6e70ea0da14aeb33a4361284142f
@@ -113,11 +113,16 @@ module Raddocs
113
113
  end
114
114
 
115
115
  def guides
116
- YAML.load(File.read(File.join(guides_dir, "guides.yml"))).map do |guide_hash|
116
+ return [] unless File.exist?(guides_index)
117
+ YAML.load(File.read(guides_index)).map do |guide_hash|
117
118
  Guide.new(guide_hash)
118
119
  end
119
120
  end
120
121
 
122
+ def guides_index
123
+ File.join guides_dir, "guides.yml"
124
+ end
125
+
121
126
  def guides_dir
122
127
  Raddocs.configuration.guides_dir
123
128
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raddocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Oestrich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-18 00:00:00.000000000 Z
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra