httpdoc 0.2.0 → 0.3.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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/httpdoc/generator.rb +3 -3
  3. metadata +6 -8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
@@ -10,10 +10,10 @@ module Httpdoc
10
10
  def generate!
11
11
  file_names = @input_paths.map { |path|
12
12
  path = path.gsub(/\/$/, '')
13
- if File.file?(path)
14
- path
13
+ if File.directory?(path)
14
+ Dir.glob("#{path}/**/*.rb")
15
15
  else
16
- Dir.glob("#{path}/**/*_controller.rb")
16
+ Dir.glob(path)
17
17
  end
18
18
  }.flatten
19
19
  file_names.each do |file_name|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpdoc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
4
+ hash: 19
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alexander Staubo
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-23 00:00:00 +01:00
19
- default_executable: httpdoc
18
+ date: 2011-10-25 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: RedCloth
@@ -51,7 +50,6 @@ files:
51
50
  - lib/httpdoc/parser.rb
52
51
  - lib/httpdoc/rendering.rb
53
52
  - bin/httpdoc
54
- has_rdoc: false
55
53
  homepage: http://github.com/origo/httpdoc
56
54
  licenses: []
57
55
 
@@ -81,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
79
  requirements: []
82
80
 
83
81
  rubyforge_project:
84
- rubygems_version: 1.3.7
82
+ rubygems_version: 1.8.6
85
83
  signing_key:
86
84
  specification_version: 3
87
85
  summary: Simple documentation generator for publishing APIs from Rails applications.