webapidoc 0.0.3 → 0.0.4

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.
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ *.gem
2
+ public/
3
+ .sass-cache/
data/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # WebApiDoc
2
+
3
+ ## Installation
4
+
5
+ gem install webapidoc
6
+
7
+ ## Sample Rake Task
8
+
9
+ require 'webapidoc'
10
+
11
+ namespace :webapidoc do
12
+
13
+ task :build do
14
+ WebApiDoc.build({:title => "WebApiDoc"})
15
+ end
16
+
17
+ end
data/lib/webapidoc.rb CHANGED
@@ -18,9 +18,7 @@ require 'fileutils'
18
18
  require 'erb'
19
19
  require 'sass'
20
20
 
21
- Dir["lib/tasks/**/*.rake"].each { |ext| load ext } if defined?(Rake)
22
-
23
- class WebApiDoc
21
+ module WebApiDoc
24
22
 
25
23
  def self.build(data=nil)
26
24
 
data/webapidoc.gemspec ADDED
@@ -0,0 +1,21 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'webapidoc'
5
+ s.version = '0.0.4'
6
+ s.date = '2012-12-03'
7
+
8
+ s.summary = "Static HTML Documentation for JSON Web APIs."
9
+ s.description = "Create a static HTML Documentation for your JSON Web API."
10
+ s.authors = ["Adrian Fuhrmann"]
11
+ s.email = 'aliasng@gmail.com'
12
+
13
+ s.files = `git ls-files`.split("\n")
14
+
15
+ s.require_paths = ["lib"]
16
+
17
+ s.add_dependency('maruku', '>= 0.6.1')
18
+ s.add_dependency('sass', '>= 3.1.19')
19
+
20
+ s.homepage = 'http://rubygems.org/gems/webapidoc'
21
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webapidoc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adrian Fuhrmann
@@ -23,7 +23,7 @@ dependencies:
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
- - - ~>
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  hash: 5
29
29
  segments:
@@ -39,7 +39,7 @@ dependencies:
39
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
- - - ~>
42
+ - - ">="
43
43
  - !ruby/object:Gem::Version
44
44
  hash: 37
45
45
  segments:
@@ -58,16 +58,18 @@ extensions: []
58
58
  extra_rdoc_files: []
59
59
 
60
60
  files:
61
+ - .gitignore
62
+ - README.md
63
+ - app/documentation/sample.md.erb
64
+ - config/webapidoc.yml
61
65
  - lib/webapidoc.rb
62
66
  - lib/webapidoc/css/webapidoc.scss
67
+ - lib/webapidoc/index.md.erb
63
68
  - lib/webapidoc/js/highlight.js
64
69
  - lib/webapidoc/js/html5.js
65
70
  - lib/webapidoc/js/jquery.js
66
- - lib/webapidoc/index.md.erb
67
71
  - lib/webapidoc/template.html.erb
68
- - app/documentation/sample.md.erb
69
- - config/webapidoc.yml
70
- - lib/tasks/webapidoc.rake
72
+ - webapidoc.gemspec
71
73
  homepage: http://rubygems.org/gems/webapidoc
72
74
  licenses: []
73
75
 
@@ -1,9 +0,0 @@
1
- require 'webapidoc'
2
-
3
- namespace :webapidoc do
4
-
5
- task :build do
6
- WebApiDoc.build({:title => "WebApiDoc"})
7
- end
8
-
9
- end