rocco_rails 0.8 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -1
- data/docs/lib/rocco_rails/railtie.html +1 -1
- data/docs/lib/rocco_rails/version.html +1 -1
- data/docs/lib/rocco_rails.html +2 -2
- data/docs/lib/tasks/rails_tasks.html +1 -1
- data/docs/lib/tasks/rocco_tasks.html +2 -2
- data/lib/rocco_rails/version.rb +1 -1
- data/lib/rocco_rails.rb +1 -1
- data/lib/tasks/rocco_tasks.rake +1 -1
- metadata +10 -10
data/README.md
CHANGED
@@ -21,7 +21,7 @@ documentation generator in CoffeeScript:
|
|
21
21
|
Add this lines to your application's Gemfile:
|
22
22
|
|
23
23
|
gem 'rocco', :git => "git://github.com/rtomayko/rocco.git"
|
24
|
-
gem 'rocco_rails'
|
24
|
+
gem 'rocco_rails'
|
25
25
|
|
26
26
|
## Usage
|
27
27
|
|
@@ -62,6 +62,13 @@ And then, again
|
|
62
62
|
|
63
63
|
Rocco gem that is actualy in rubygems doesn't have the option to select a stylesheet to use. If your generated docs seems to have no style, try to use rocco's github code (see Instalation)
|
64
64
|
|
65
|
+
## Demo
|
66
|
+
|
67
|
+
You can see a demo of autogenerated gem documentation in
|
68
|
+
|
69
|
+
http://mawi.github.com/rocco_rails/
|
70
|
+
|
71
|
+
|
65
72
|
## Contributing
|
66
73
|
|
67
74
|
1. Fork it
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
5
5
|
<title>railtie.rb</title>
|
6
|
-
<link rel='stylesheet' href='/
|
6
|
+
<link rel='stylesheet' href='/rocco_rails/resources/rocco.css'>
|
7
7
|
|
8
8
|
</head>
|
9
9
|
<body>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
5
5
|
<title>version.rb</title>
|
6
|
-
<link rel='stylesheet' href='/
|
6
|
+
<link rel='stylesheet' href='/rocco_rails/resources/rocco.css'>
|
7
7
|
|
8
8
|
</head>
|
9
9
|
<body>
|
data/docs/lib/rocco_rails.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
5
5
|
<title>rocco_rails.rb</title>
|
6
|
-
<link rel='stylesheet' href='/
|
6
|
+
<link rel='stylesheet' href='/rocco_rails/resources/rocco.css'>
|
7
7
|
|
8
8
|
</head>
|
9
9
|
<body>
|
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
</td>
|
36
36
|
<td class=code>
|
37
|
-
<div class='highlight'><pre><span class="nb">require</span> <span class="no">File</span><span class="o">.</span><span class="n">expand_path</span><span class="p">(</span><span class="s1">'
|
37
|
+
<div class='highlight'><pre><span class="nb">require</span> <span class="no">File</span><span class="o">.</span><span class="n">expand_path</span><span class="p">(</span><span class="s1">'../../lib/rocco_rails/version'</span><span class="p">,</span> <span class="bp">__FILE__</span><span class="p">)</span>
|
38
38
|
<span class="nb">require</span> <span class="s2">"rocco"</span>
|
39
39
|
|
40
40
|
<span class="k">module</span> <span class="nn">RoccoRails</span>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
5
5
|
<title>rails_tasks.rake</title>
|
6
|
-
<link rel='stylesheet' href='/
|
6
|
+
<link rel='stylesheet' href='/rocco_rails/resources/rocco.css'>
|
7
7
|
|
8
8
|
</head>
|
9
9
|
<body>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
5
5
|
<title>rocco_tasks.rake</title>
|
6
|
-
<link rel='stylesheet' href='/
|
6
|
+
<link rel='stylesheet' href='/rocco_rails/resources/rocco.css'>
|
7
7
|
|
8
8
|
</head>
|
9
9
|
<body>
|
@@ -50,7 +50,7 @@
|
|
50
50
|
<span class="n">desc</span> <span class="s1">'Build rocco_rails docs'</span>
|
51
51
|
<span class="n">task</span> <span class="ss">:rocco_docs</span>
|
52
52
|
<span class="n">load_config</span>
|
53
|
-
<span class="no">Rocco</span><span class="o">::</span><span class="n">make</span><span class="p">(</span><span class="vi">@out</span><span class="p">,</span> <span class="no">Dir</span><span class="o">[</span><span class="s2">"**/*.rb"</span><span class="o">]</span> <span class="o">+</span> <span class="no">Dir</span><span class="o">[</span><span class="s2">"**/*.rake"</span><span class="o">]</span><span class="p">,</span> <span class="p">{</span><span class="ss">:template_file</span> <span class="o">=></span> <span class="vi">@template</span><span class="p">,</span> <span class="ss">:stylesheet</span> <span class="o">=></span> <span class="no">RoccoRails</span><span class="o">.</span><span class="n">generate_resources</span><span class="p">(</span><span class="vi">@resources_path</span><span class="p">,</span> <span class="
|
53
|
+
<span class="no">Rocco</span><span class="o">::</span><span class="n">make</span><span class="p">(</span><span class="vi">@out</span><span class="p">,</span> <span class="no">Dir</span><span class="o">[</span><span class="s2">"**/*.rb"</span><span class="o">]</span> <span class="o">+</span> <span class="no">Dir</span><span class="o">[</span><span class="s2">"**/*.rake"</span><span class="o">]</span><span class="p">,</span> <span class="p">{</span><span class="ss">:template_file</span> <span class="o">=></span> <span class="vi">@template</span><span class="p">,</span> <span class="ss">:stylesheet</span> <span class="o">=></span> <span class="no">RoccoRails</span><span class="o">.</span><span class="n">generate_resources</span><span class="p">(</span><span class="vi">@resources_path</span><span class="p">,</span> <span class="s2">"/rocco_rails/resources"</span><span class="p">)</span> <span class="p">})</span></pre></div>
|
54
54
|
</td>
|
55
55
|
</tr>
|
56
56
|
<tr id='section-2'>
|
data/lib/rocco_rails/version.rb
CHANGED
data/lib/rocco_rails.rb
CHANGED
data/lib/tasks/rocco_tasks.rake
CHANGED
@@ -14,7 +14,7 @@ require 'erb'
|
|
14
14
|
desc 'Build rocco_rails docs'
|
15
15
|
task :rocco_docs
|
16
16
|
load_config
|
17
|
-
Rocco::make(@out, Dir["**/*.rb"] + Dir["**/*.rake"], {:template_file => @template, :stylesheet => RoccoRails.generate_resources(@resources_path,
|
17
|
+
Rocco::make(@out, Dir["**/*.rb"] + Dir["**/*.rake"], {:template_file => @template, :stylesheet => RoccoRails.generate_resources(@resources_path, "/rocco_rails/resources") })
|
18
18
|
|
19
19
|
# Copy resources folder to out folder
|
20
20
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocco_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.8.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rocco
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156296700 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156296700
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: redcarpet
|
27
|
-
requirement: &
|
27
|
+
requirement: &2156256080 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '1.17'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156256080
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: mustache
|
38
|
-
requirement: &
|
38
|
+
requirement: &2156225960 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2156225960
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: pygmentize
|
49
|
-
requirement: &
|
49
|
+
requirement: &2152106520 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2152106520
|
58
58
|
description: Rocco gem for rails
|
59
59
|
email:
|
60
60
|
- mawitu@gmail.com
|