flyapi 0.1.1 → 0.1.3
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/README.rdoc +6 -0
- data/flyapi.gemspec +11 -28
- data/tasks/flyapi_tasks.rake +2 -2
- metadata +8 -19
- data/Manifest +0 -7
- data/Rakefile +0 -14
- data/assets/api.css +0 -217
- data/lib/flyapi.rb +0 -2
data/README.rdoc
CHANGED
data/flyapi.gemspec
CHANGED
@@ -1,30 +1,13 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
1
|
Gem::Specification.new do |s|
|
4
|
-
s.name =
|
5
|
-
s.version = "0.1.
|
6
|
-
|
7
|
-
s.
|
8
|
-
s.
|
9
|
-
s.
|
10
|
-
s.description =
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
|
14
|
-
|
15
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Flyapi", "--main", "README.rdoc"]
|
16
|
-
s.require_paths = ["lib"]
|
17
|
-
s.rubyforge_project = %q{flyapi}
|
18
|
-
s.rubygems_version = %q{1.3.5}
|
19
|
-
s.summary = %q{Generate API documentation for a REST-styled Rails application.}
|
20
|
-
|
21
|
-
if s.respond_to? :specification_version then
|
22
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
|
-
s.specification_version = 3
|
24
|
-
|
25
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
26
|
-
else
|
27
|
-
end
|
28
|
-
else
|
29
|
-
end
|
2
|
+
s.name = "flyapi"
|
3
|
+
s.version = "0.1.3"
|
4
|
+
s.date = "2009-12-28"
|
5
|
+
s.summary = "Generate API documentation for a REST-styled Rails application."
|
6
|
+
s.email = "liammonahan@gmail.com"
|
7
|
+
s.homepage = "http://github.com/liammonahan/flyapi"
|
8
|
+
s.description = "Generate API documentation for a REST-styled Rails application."
|
9
|
+
s.author = "Liam Monahan"
|
10
|
+
s.files = ["README.rdoc",
|
11
|
+
"flyapi.gemspec",
|
12
|
+
"tasks/flyapi_tasks.rake"]
|
30
13
|
end
|
data/tasks/flyapi_tasks.rake
CHANGED
@@ -3,7 +3,7 @@ namespace :api do
|
|
3
3
|
task :generate => :environment do
|
4
4
|
puts "Generating folder structures..."
|
5
5
|
`mkdir #{RAILS_ROOT}/doc/api` if File.exist?("#{RAILS_ROOT}/doc/api") == false
|
6
|
-
`cp
|
6
|
+
`cp #../assets/api.css #{RAILS_ROOT}/doc/api/api.css`
|
7
7
|
puts "Extracting models..."
|
8
8
|
models = `ls #{RAILS_ROOT}/app/models`.split("\n")
|
9
9
|
models.collect! { |x| x.chomp(".rb").camelize }
|
@@ -28,7 +28,7 @@ namespace :api do
|
|
28
28
|
end
|
29
29
|
file.puts '</body></html>'
|
30
30
|
end
|
31
|
-
puts "Done!"
|
31
|
+
puts "Done! Look for the files in doc/api/"
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flyapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liam Monahan
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-28 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -19,30 +19,19 @@ executables: []
|
|
19
19
|
|
20
20
|
extensions: []
|
21
21
|
|
22
|
-
extra_rdoc_files:
|
23
|
-
|
24
|
-
- lib/flyapi.rb
|
25
|
-
- tasks/flyapi_tasks.rake
|
22
|
+
extra_rdoc_files: []
|
23
|
+
|
26
24
|
files:
|
27
|
-
- Manifest
|
28
25
|
- README.rdoc
|
29
|
-
- Rakefile
|
30
|
-
- assets/api.css
|
31
26
|
- flyapi.gemspec
|
32
|
-
- lib/flyapi.rb
|
33
27
|
- tasks/flyapi_tasks.rake
|
34
28
|
has_rdoc: true
|
35
29
|
homepage: http://github.com/liammonahan/flyapi
|
36
30
|
licenses: []
|
37
31
|
|
38
32
|
post_install_message:
|
39
|
-
rdoc_options:
|
40
|
-
|
41
|
-
- --inline-source
|
42
|
-
- --title
|
43
|
-
- Flyapi
|
44
|
-
- --main
|
45
|
-
- README.rdoc
|
33
|
+
rdoc_options: []
|
34
|
+
|
46
35
|
require_paths:
|
47
36
|
- lib
|
48
37
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -55,11 +44,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
44
|
requirements:
|
56
45
|
- - ">="
|
57
46
|
- !ruby/object:Gem::Version
|
58
|
-
version: "
|
47
|
+
version: "0"
|
59
48
|
version:
|
60
49
|
requirements: []
|
61
50
|
|
62
|
-
rubyforge_project:
|
51
|
+
rubyforge_project:
|
63
52
|
rubygems_version: 1.3.5
|
64
53
|
signing_key:
|
65
54
|
specification_version: 3
|
data/Manifest
DELETED
data/Rakefile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
require 'echoe'
|
4
|
-
|
5
|
-
Echoe.new('flyapi', '0.1.1') do |p|
|
6
|
-
p.description = "Generate API documentation for a REST-styled Rails application."
|
7
|
-
p.url = "http://github.com/liammonahan/flyapi"
|
8
|
-
p.author = "Liam Monahan"
|
9
|
-
p.email = "liammonahan@gmail.com"
|
10
|
-
p.ignore_pattern = ["tmp/*", "script/*"]
|
11
|
-
p.development_dependencies = []
|
12
|
-
end
|
13
|
-
|
14
|
-
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
|
data/assets/api.css
DELETED
@@ -1,217 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
margin: 0px;
|
3
|
-
font-family: "Helvetica Neue", Helvetica, sans-serif;
|
4
|
-
font-size: 14px;
|
5
|
-
background-color: #EBEBEB;
|
6
|
-
}
|
7
|
-
|
8
|
-
img { border: none; }
|
9
|
-
|
10
|
-
#sidebar {
|
11
|
-
width: 140px;
|
12
|
-
height: 100%;
|
13
|
-
margin: 0 29px 0 20px;
|
14
|
-
position: fixed;
|
15
|
-
}
|
16
|
-
|
17
|
-
h1 {
|
18
|
-
font-size: 27px;
|
19
|
-
font-weight: 900;
|
20
|
-
color: #3F3F3F;
|
21
|
-
}
|
22
|
-
|
23
|
-
.highlight {
|
24
|
-
margin: -25px 0 0px 0;
|
25
|
-
padding: 1px 0 0px 15px;
|
26
|
-
background: #ede7d1;
|
27
|
-
border-bottom: 1px solid #CCCCCC;
|
28
|
-
}
|
29
|
-
|
30
|
-
.highlight img{
|
31
|
-
position: relative;
|
32
|
-
top: 4px;
|
33
|
-
}
|
34
|
-
|
35
|
-
.highlight_bottom {
|
36
|
-
height: 20px;
|
37
|
-
width: 100%;
|
38
|
-
margin-top: -6px;
|
39
|
-
background: url("/images/header-shadow.gif") no-repeat bottom center;
|
40
|
-
}
|
41
|
-
|
42
|
-
.message {
|
43
|
-
margin-top: 10px;
|
44
|
-
background: #ede7d1;
|
45
|
-
border-top: 1px solid #CCCCCC;
|
46
|
-
border-bottom: 1px solid #CCCCCC;
|
47
|
-
font-size: 20px;
|
48
|
-
text-align: center;
|
49
|
-
}
|
50
|
-
|
51
|
-
#header {
|
52
|
-
margin-left: auto;
|
53
|
-
margin-right: auto;
|
54
|
-
width: 100%;
|
55
|
-
height: 55px;
|
56
|
-
padding: 0;
|
57
|
-
font-family: Helvetica;
|
58
|
-
text-decoration: none;
|
59
|
-
font-size: 15px;
|
60
|
-
background: #3f3f3f;
|
61
|
-
position: relative;
|
62
|
-
border-bottom: 1px solid #4a4a4a;
|
63
|
-
}
|
64
|
-
|
65
|
-
#header .separator {
|
66
|
-
color: #666666;
|
67
|
-
}
|
68
|
-
|
69
|
-
#header_links {
|
70
|
-
margin-left: 20px;
|
71
|
-
}
|
72
|
-
|
73
|
-
#header p{
|
74
|
-
float: left;
|
75
|
-
margin: 18px 0 0 6px;
|
76
|
-
}
|
77
|
-
|
78
|
-
#header a {
|
79
|
-
color: white;
|
80
|
-
text-decoration: none;
|
81
|
-
}
|
82
|
-
|
83
|
-
#header a:hover {
|
84
|
-
color: #CCCCCC;
|
85
|
-
}
|
86
|
-
|
87
|
-
#header a img {
|
88
|
-
align: right;
|
89
|
-
margin: 9px 20px 0 0;
|
90
|
-
}
|
91
|
-
|
92
|
-
a {
|
93
|
-
color: black;
|
94
|
-
}
|
95
|
-
|
96
|
-
#skinny_line {
|
97
|
-
height: 1px;
|
98
|
-
background-color: #202020;
|
99
|
-
}
|
100
|
-
|
101
|
-
hr#header_stripe {
|
102
|
-
height: 12px;
|
103
|
-
width: 100%;
|
104
|
-
position: relative;
|
105
|
-
top: -8px;
|
106
|
-
background-color: #191919;
|
107
|
-
border: none;
|
108
|
-
color: #191919;
|
109
|
-
}
|
110
|
-
|
111
|
-
hr.help {
|
112
|
-
margin-top: 20px;
|
113
|
-
}
|
114
|
-
|
115
|
-
#wrapper {
|
116
|
-
margin-left: auto;
|
117
|
-
margin-right: auto;
|
118
|
-
width: 910px;
|
119
|
-
text-align: left;
|
120
|
-
}
|
121
|
-
|
122
|
-
th {
|
123
|
-
text-align: center;
|
124
|
-
font-size: 17px;
|
125
|
-
color: #ACACD7;
|
126
|
-
}
|
127
|
-
|
128
|
-
td {
|
129
|
-
vertical-align: top;
|
130
|
-
text-align: left;
|
131
|
-
font-size: 13px;
|
132
|
-
line-height: 1.5
|
133
|
-
}
|
134
|
-
|
135
|
-
#top_of_footer {
|
136
|
-
width: 100%;
|
137
|
-
height: 10px;
|
138
|
-
background: url("/images/header-shadow-flipped.gif") no-repeat bottom center;
|
139
|
-
}
|
140
|
-
|
141
|
-
#footer {
|
142
|
-
padding: 0 0 15px 0;
|
143
|
-
text-align: center;
|
144
|
-
background: #1F1D1D; /* what about #111? */
|
145
|
-
}
|
146
|
-
|
147
|
-
#footer img {
|
148
|
-
margin: 20px 0 0 0;
|
149
|
-
}
|
150
|
-
|
151
|
-
#footer p {
|
152
|
-
color: white;
|
153
|
-
font-size: 13px;
|
154
|
-
}
|
155
|
-
|
156
|
-
#footer a {
|
157
|
-
margin: 0 10px 0 0;
|
158
|
-
color: white;
|
159
|
-
}
|
160
|
-
|
161
|
-
#tour {
|
162
|
-
margin-left: -120px;
|
163
|
-
}
|
164
|
-
|
165
|
-
.right { float:right; }
|
166
|
-
.center { margin: 0 auto; }
|
167
|
-
|
168
|
-
#content {
|
169
|
-
margin-left: auto;
|
170
|
-
margin-right: auto;
|
171
|
-
font-size: 13px;
|
172
|
-
text-align: left;
|
173
|
-
width: 650px;
|
174
|
-
border: 1px solid #e3e3e3;
|
175
|
-
background-color: white;
|
176
|
-
padding: 15px;
|
177
|
-
}
|
178
|
-
|
179
|
-
#sidebar ul {
|
180
|
-
list-style-type: none;
|
181
|
-
text-indent: -3em;
|
182
|
-
list-style-position: outside;
|
183
|
-
}
|
184
|
-
|
185
|
-
#sidebar li {
|
186
|
-
margin: 6px 0 0 0;
|
187
|
-
}
|
188
|
-
|
189
|
-
#content .highlight h1{
|
190
|
-
margin: 5px 0 10px 0;
|
191
|
-
}
|
192
|
-
|
193
|
-
.api pre {
|
194
|
-
background: #363131;
|
195
|
-
padding: 5px;
|
196
|
-
margin: 0 0 10px 0;
|
197
|
-
}
|
198
|
-
|
199
|
-
h3 { margin-bottom: 0; }
|
200
|
-
|
201
|
-
.api code, .api code a {
|
202
|
-
font-size: 10px;
|
203
|
-
color: #fff;
|
204
|
-
margin: 0;
|
205
|
-
}
|
206
|
-
|
207
|
-
.api ul code {
|
208
|
-
color: black;
|
209
|
-
}
|
210
|
-
|
211
|
-
.api code a {
|
212
|
-
color: #cf9;
|
213
|
-
}
|
214
|
-
|
215
|
-
.api code span {
|
216
|
-
color: #cf9;
|
217
|
-
}
|
data/lib/flyapi.rb
DELETED