autodoc 0.0.9 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdeb98bb0bc65d7abc00655a32a474ab23af32f9
4
- data.tar.gz: 45e48e4ebd0ed4b3e55d04f10666166de41ae4a4
3
+ metadata.gz: 5c9fe5187c39c827ab6be62b63806e00ac493ded
4
+ data.tar.gz: 7a818753de51a40957017592b3d4eae69b07ad77
5
5
  SHA512:
6
- metadata.gz: 76d573ac9105026f4e173253bab8673159e7d36facdda51efe69767cb1c7c1f765dc32528d6b6f5832f465dc6c33d4df26578b812acd3745bbc3fa8c956e86a0
7
- data.tar.gz: 1324e3f4f451247e4aee9577f407547d1554e09e2ccfb430f47d453f8908f2e440765c4e8593a93fe2f9fc3ab421d9a2ce57c2f5b76cb24266d84eb28567f2ef
6
+ metadata.gz: 804a15e5737d47de9b21d636b95973dcc489be4ea92f4c640b7a6349406d955d94cfbb7eb1259b77d48fc1fd762c85fe07115737933efc67adef931d40d3d8b7
7
+ data.tar.gz: 8e026ef386e3c3c255264965f8ebb7f215a437e1082e004472bf34a380dc6054f6c2bbc292dc79b579d461776e22bf05c0051da0269a686a3868cab5a0066d71
data/lib/autodoc.rb CHANGED
@@ -26,7 +26,9 @@ if ENV["AUTODOC"] && defined?(RSpec)
26
26
  config.after(:suite) do
27
27
  Autodoc.collector.documents.each do |filepath, documents|
28
28
  filepath = filepath.gsub("./spec/requests/", "").gsub("_spec.rb", ".md")
29
- pathname = Rails.root + "doc/#{filepath}"
29
+ pathname = Rails.root.join("doc")
30
+ pathname += ENV["AUTODOC"] if ENV["AUTODOC"] != "1"
31
+ pathname += filepath
30
32
  pathname.parent.mkpath
31
33
  pathname.open("w") {|file| file << documents.join("\n") }
32
34
  end
@@ -1,3 +1,3 @@
1
1
  module Autodoc
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-08 00:00:00.000000000 Z
11
+ date: 2013-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print