connfu-client 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. data/.rspec +3 -0
  2. data/.rvmrc +2 -0
  3. data/Gemfile +5 -0
  4. data/Gemfile.lock +120 -0
  5. data/LICENSE.txt +661 -0
  6. data/README.rdoc +398 -0
  7. data/Rakefile +38 -0
  8. data/bin/.DS_Store +0 -0
  9. data/bin/connfu-client +94 -0
  10. data/connfu-client.gemspec +41 -0
  11. data/examples/conference/application.rb +68 -0
  12. data/examples/conference/conference.rb +33 -0
  13. data/examples/conference/conference_app.rb +25 -0
  14. data/examples/conference/connfu.log +5 -0
  15. data/examples/conference/wall.rb +11 -0
  16. data/examples/provisioning/app/get.rb +29 -0
  17. data/examples/provisioning/channels/get.rb +34 -0
  18. data/examples/provisioning/rss/create.rb +28 -0
  19. data/examples/provisioning/rss/delete.rb +27 -0
  20. data/examples/provisioning/rss/get.rb +32 -0
  21. data/examples/provisioning/rss/put.rb +29 -0
  22. data/examples/provisioning/setup.rb +2 -0
  23. data/examples/provisioning/twitter/create.rb +31 -0
  24. data/examples/provisioning/twitter/delete.rb +27 -0
  25. data/examples/provisioning/twitter/get.rb +32 -0
  26. data/examples/provisioning/twitter/put.rb +29 -0
  27. data/examples/provisioning/voice/create.rb +26 -0
  28. data/examples/provisioning/voice/delete.rb +27 -0
  29. data/examples/provisioning/voice/get.rb +36 -0
  30. data/examples/provisioning/voice/phones/create.rb +26 -0
  31. data/examples/provisioning/voice/phones/delete.rb +28 -0
  32. data/examples/provisioning/voice/phones/get.rb +38 -0
  33. data/examples/provisioning/voice/put.rb +38 -0
  34. data/examples/provisioning/voice/whitelist/create.rb +26 -0
  35. data/examples/provisioning/voice/whitelist/delete.rb +27 -0
  36. data/examples/provisioning/voice/whitelist/get.rb +36 -0
  37. data/examples/provisioning/voice/whitelist/put.rb +27 -0
  38. data/lib/connfu.rb +134 -0
  39. data/lib/connfu/cli/generator.rb +71 -0
  40. data/lib/connfu/connfu_logger.rb +88 -0
  41. data/lib/connfu/connfu_message_formatter.rb +134 -0
  42. data/lib/connfu/connfu_stream.rb +182 -0
  43. data/lib/connfu/dispatcher.rb +164 -0
  44. data/lib/connfu/dsl.rb +84 -0
  45. data/lib/connfu/events.rb +32 -0
  46. data/lib/connfu/listener.rb +85 -0
  47. data/lib/connfu/listener_channel.rb +100 -0
  48. data/lib/connfu/message.rb +74 -0
  49. data/lib/connfu/provisioning.rb +12 -0
  50. data/lib/connfu/provisioning/application.rb +374 -0
  51. data/lib/connfu/provisioning/base.rb +95 -0
  52. data/lib/connfu/provisioning/channel.rb +79 -0
  53. data/lib/connfu/provisioning/phone.rb +55 -0
  54. data/lib/connfu/provisioning/rss.rb +21 -0
  55. data/lib/connfu/provisioning/twitter.rb +28 -0
  56. data/lib/connfu/provisioning/voice.rb +89 -0
  57. data/lib/connfu/provisioning/whitelist.rb +62 -0
  58. data/lib/connfu/version.rb +6 -0
  59. data/lib/rdoc/generator/template/connfu/_context.rhtml +209 -0
  60. data/lib/rdoc/generator/template/connfu/_head.rhtml +7 -0
  61. data/lib/rdoc/generator/template/connfu/class.rhtml +38 -0
  62. data/lib/rdoc/generator/template/connfu/file.rhtml +36 -0
  63. data/lib/rdoc/generator/template/connfu/index.rhtml +13 -0
  64. data/lib/rdoc/generator/template/connfu/resources/apple-touch-icon.png +0 -0
  65. data/lib/rdoc/generator/template/connfu/resources/css/github.css +129 -0
  66. data/lib/rdoc/generator/template/connfu/resources/css/main.css +339 -0
  67. data/lib/rdoc/generator/template/connfu/resources/css/panel.css +389 -0
  68. data/lib/rdoc/generator/template/connfu/resources/css/reset.css +53 -0
  69. data/lib/rdoc/generator/template/connfu/resources/favicon.ico +0 -0
  70. data/lib/rdoc/generator/template/connfu/resources/i/arrows.png +0 -0
  71. data/lib/rdoc/generator/template/connfu/resources/i/results_bg.png +0 -0
  72. data/lib/rdoc/generator/template/connfu/resources/i/tree_bg.png +0 -0
  73. data/lib/rdoc/generator/template/connfu/resources/js/highlight.pack.js +1 -0
  74. data/lib/rdoc/generator/template/connfu/resources/js/jquery-1.3.2.min.js +19 -0
  75. data/lib/rdoc/generator/template/connfu/resources/js/jquery-effect.js +593 -0
  76. data/lib/rdoc/generator/template/connfu/resources/js/main.js +20 -0
  77. data/lib/rdoc/generator/template/connfu/resources/js/searchdoc.js +628 -0
  78. data/lib/rdoc/generator/template/connfu/resources/panel/index.html +72 -0
  79. data/lib/rdoc/generator/template/connfu/se_index.rhtml +8 -0
  80. data/spec/connfu_message_formatter_spec.rb +88 -0
  81. data/spec/connfu_spec.rb +51 -0
  82. data/spec/connfu_stream_spec.rb +84 -0
  83. data/spec/dispatcher_spec.rb +227 -0
  84. data/spec/dsl_spec.rb +159 -0
  85. data/spec/listener_channel_spec.rb +130 -0
  86. data/spec/listener_spec.rb +67 -0
  87. data/spec/provisioning/application_spec.rb +47 -0
  88. data/spec/provisioning/channel_shared_examples.rb +52 -0
  89. data/spec/provisioning/channel_spec.rb +13 -0
  90. data/spec/provisioning/phone_spec.rb +88 -0
  91. data/spec/provisioning/voice_spec.rb +138 -0
  92. data/spec/provisioning_spec.rb +500 -0
  93. data/spec/spec_helper.rb +51 -0
  94. metadata +298 -0
@@ -0,0 +1,209 @@
1
+ <div id="content">
2
+ <% unless (description = context.description).empty? %>
3
+ <div class="description">
4
+ <%= description %>
5
+ </div>
6
+ <% end %>
7
+
8
+
9
+ <% unless context.requires.empty? %>
10
+ <!-- File only: requires -->
11
+ <div class="sectiontitle">Required Files</div>
12
+ <ul>
13
+ <% context.requires.each do |req| %>
14
+ <li><%= h req.name %></li>
15
+ <% end %>
16
+ </ul>
17
+ <% end %>
18
+
19
+
20
+ <% sections = context.sections.select { |s| s.title }.sort_by{ |s| s.title.to_s } %>
21
+ <% unless sections.empty? then %>
22
+ <!-- Sections -->
23
+ <div class="sectiontitle">Sections</div>
24
+ <ul>
25
+ <% sections.each do |section| %>
26
+ <li><a href="#<%= section.aref %>"><%= h section.title %></a></li>
27
+ <% end %>
28
+ </ul>
29
+ <% end %>
30
+
31
+
32
+ <% unless context.classes_and_modules.empty? %>
33
+ <!-- Namespace -->
34
+ <div class="sectiontitle">Namespace</div>
35
+ <ul>
36
+ <% (context.modules.sort + context.classes.sort).each do |mod| %>
37
+ <li>
38
+ <span class="type"><%= mod.type.upcase %></span>
39
+ <a href="<%= context.aref_to mod.path %>"><%= mod.full_name %></a>
40
+ </li>
41
+ <% end %>
42
+ </ul>
43
+ <% end %>
44
+
45
+
46
+ <% unless context.method_list.empty? %>
47
+ <!-- Method ref -->
48
+ <div class="sectiontitle">Methods</div>
49
+ <dl class="methods">
50
+ <% each_letter_group(context.method_list) do |group| %>
51
+ <dt><%= group[:name] %></dt>
52
+ <dd>
53
+ <ul>
54
+ <% group[:methods].each_with_index do |method, i| %>
55
+ <%
56
+ comma = group[:methods].size == i+1 ? '' : ','
57
+ %>
58
+ <li>
59
+ <a href="#<%= method.aref %>"><%= h method.name %></a><%= comma %>
60
+ </li>
61
+ <% end %>
62
+ </ul>
63
+ </dd>
64
+ <% end %>
65
+ </dl>
66
+ <% end %>
67
+
68
+ <% unless context.includes.empty? %>
69
+ <!-- Includes -->
70
+ <div class="sectiontitle">Included Modules</div>
71
+ <ul>
72
+ <% context.includes.each do |inc| %>
73
+ <li>
74
+ <% unless String === inc.module %>
75
+ <a href="<%= context.aref_to inc.module.path %>">
76
+ <%= h inc.module.full_name %>
77
+ </a>
78
+ <% else %>
79
+ <%= h inc.name %>
80
+ <% end %>
81
+ </li>
82
+ <% end %>
83
+ </ul>
84
+ <% end %>
85
+
86
+
87
+
88
+ <% context.each_section do |section, constants, attributes| %>
89
+
90
+ <% if section.title then %>
91
+ <div class="contenttitle" id="<%= h section.aref %>">
92
+ <%= h section.title %>
93
+ </div>
94
+ <% end %>
95
+
96
+ <% if section.comment then %>
97
+ <div class="description">
98
+ <%= section.description %>
99
+ </div>
100
+ <% end %>
101
+
102
+ <% unless constants.empty? %>
103
+ <!-- Section constants -->
104
+ <div class="sectiontitle">Constants</div>
105
+ <table border='0' cellpadding='5'>
106
+ <% context.each_constant do |const| %>
107
+ <tr valign='top'>
108
+ <td class="attr-name"><%= h const.name %></td>
109
+ <td>=</td>
110
+ <td class="attr-value"><%= h const.value %></td>
111
+ </tr>
112
+ <% if const.comment %>
113
+ <tr valign='top'>
114
+ <td>&nbsp;</td>
115
+ <td colspan="2" class="attr-desc"><%= const.description.strip %></td>
116
+ </tr>
117
+ <% end %>
118
+ <% end %>
119
+ </table>
120
+ <% end %>
121
+
122
+
123
+ <% unless attributes.empty? %>
124
+ <!-- Section attributes -->
125
+ <div class="sectiontitle">Attributes</div>
126
+ <table border='0' cellpadding='5'>
127
+ <% attributes.each do |attrib| %>
128
+ <tr valign='top'>
129
+ <td class='attr-rw'>
130
+ [<%= attrib.rw %>]
131
+ </td>
132
+ <td class='attr-name'><%= h attrib.name %></td>
133
+ <td class='attr-desc'><%= attrib.description.strip %></td>
134
+ </tr>
135
+ <% end %>
136
+ </table>
137
+ <% end %>
138
+
139
+
140
+ <!-- Methods -->
141
+ <%
142
+ context.methods_by_type(section).each do |type, visibilities|
143
+ next if visibilities.empty?
144
+
145
+ visibilities.each do |visibility, methods|
146
+ next if methods.empty?
147
+ %>
148
+ <div class="sectiontitle"><%= type.capitalize %> <%= visibility.to_s.capitalize %> methods</div>
149
+ <% methods.each do |method| %>
150
+ <div class="method">
151
+ <div class="title method-title" id="<%= method.aref %>">
152
+ <% if method.call_seq %>
153
+ <a name="<%= method.aref %>"></a><b><%= method.call_seq.gsub(/->/, '&rarr;') %></b>
154
+ <% else %>
155
+ <a name="<%= method.aref %>"></a><b><%= h method.name %></b><%= h method.params %>
156
+ <% end %>
157
+ </div>
158
+
159
+ <% if method.comment %>
160
+ <div class="description">
161
+ <%= method.description.strip %>
162
+ </div>
163
+ <% end %>
164
+
165
+ <% unless method.aliases.empty? %>
166
+ <div class="aka">
167
+ Also aliased as: <%= method.aliases.map do |aka|
168
+ if aka.parent then # HACK lib/rexml/encodings
169
+ %{<a href="#{context.aref_to aka.path}">#{h aka.name}</a>}
170
+ else
171
+ h aka.name
172
+ end
173
+ end.join ", " %>
174
+ </div>
175
+ <% end %>
176
+
177
+ <% if method.token_stream %>
178
+ <% markup = method.sdoc_markup_code %>
179
+ <div class="sourcecode">
180
+ <%
181
+ # generate github link
182
+ github = if options.github
183
+ if markup =~ /File\s(\S+), line (\d+)/
184
+ path = $1
185
+ line = $2.to_i
186
+ end
187
+ path && github_url(path)
188
+ else
189
+ false
190
+ end
191
+ %>
192
+ <p class="source-link">
193
+ Source:
194
+ <a href="javascript:toggleSource('<%= method.aref %>_source')" id="l_<%= method.aref %>_source">show</a>
195
+ <% if github %>
196
+ | <a href="<%= "#{github}#L#{line}" %>" target="_blank" class="github_url">on GitHub</a>
197
+ <% end %>
198
+ </p>
199
+ <div id="<%= method.aref %>_source" class="dyn-source">
200
+ <pre><%= markup %></pre>
201
+ </div>
202
+ </div>
203
+ <% end %>
204
+ </div>
205
+ <% end #methods.each %>
206
+ <% end #visibilities.each %>
207
+ <% end #context.methods_by_type %>
208
+ <% end #context.each_section %>
209
+ </div>
@@ -0,0 +1,7 @@
1
+ <link rel="stylesheet" href="<%= "#{rel_prefix}/css/reset.css" %>" type="text/css" media="screen" />
2
+ <link rel="stylesheet" href="<%= "#{rel_prefix}/css/main.css" %>" type="text/css" media="screen" />
3
+ <link rel="stylesheet" href="<%= "#{rel_prefix}/css/github.css" %>" type="text/css" media="screen" />
4
+ <script src="<%= "#{rel_prefix}/js/jquery-1.3.2.min.js" %>" type="text/javascript" charset="utf-8"></script>
5
+ <script src="<%= "#{rel_prefix}/js/jquery-effect.js" %>" type="text/javascript" charset="utf-8"></script>
6
+ <script src="<%= "#{rel_prefix}/js/main.js" %>" type="text/javascript" charset="utf-8"></script>
7
+ <script src="<%= "#{rel_prefix}/js/highlight.pack.js" %>" type="text/javascript" charset="utf-8"></script>
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title><%= h klass.full_name %></title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=<%= @options.charset %>" />
8
+ <%= include_template '_head.rhtml', {:rel_prefix => rel_prefix} %>
9
+ </head>
10
+
11
+ <body>
12
+ <div class="banner">
13
+ <% project_name = "connFu DSL"; project_version = "1.0"%>
14
+ <span><%= ERB::Util.html_escape(project_name) %> <%= ERB::Util.html_escape(project_version)%></span><br />
15
+ <h1>
16
+ <span class="type"><%= klass.module? ? 'Module' : 'Class' %></span>
17
+ <%= h klass.full_name %>
18
+ <% if klass.type == 'class' %>
19
+ <span class="parent">&lt;
20
+ <% if String === klass.superclass %>
21
+ <%= klass.superclass %>
22
+ <% elsif !klass.superclass.nil? %>
23
+ <a href="<%= klass.aref_to klass.superclass.path %>"><%= h klass.superclass.full_name %></a>
24
+ <% end %>
25
+ </span>
26
+ <% end %>
27
+ </h1>
28
+ <ul class="files">
29
+ <% klass.in_files.each do |file| %>
30
+ <li><a href="<%= "#{rel_prefix}/#{h file.path}" %>"><%= h file.absolute_name %></a></li>
31
+ <% end %>
32
+ </ul>
33
+ </div>
34
+ <div id="bodyContent">
35
+ <%= include_template '_context.rhtml', {:context => klass, :rel_prefix => rel_prefix} %>
36
+ </div>
37
+ </body>
38
+ </html>
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title><%= h file.name %></title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=<%= @options.charset %>" />
8
+ <%= include_template '_head.rhtml', {:rel_prefix => rel_prefix} %>
9
+ </head>
10
+
11
+ <body>
12
+ <div class="banner">
13
+ <% project_name = "connFu DSL"; project_version = "1.0"%>
14
+ <span><%= ERB::Util.html_escape(project_name) %> <%= ERB::Util.html_escape(project_version)%></span><br />
15
+ <h1>
16
+ <%= h file.name %>
17
+ </h1>
18
+ <ul class="files">
19
+ <%
20
+ github = github_url(file.relative_name) if options.github
21
+ %>
22
+ <li>
23
+ <%= h file.relative_name %>
24
+ <% if github %>
25
+ <a href="<%= github %>" target="_blank" class="github_url">on GitHub</a>
26
+ <% end %>
27
+ </li>
28
+ <li>Last modified: <%= file.file_stat.mtime %></li>
29
+ </ul>
30
+ </div>
31
+
32
+ <div id="bodyContent">
33
+ <%= include_template '_context.rhtml', {:context => file, :rel_prefix => rel_prefix} %>
34
+ </div>
35
+ </body>
36
+ </html>
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html
2
+ PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=<%= @options.charset %>" />
7
+ <title><%= @options.title %></title>
8
+ </head>
9
+ <frameset cols="300,*" frameborder="1" border="1" bordercolor="#999999" framespacing="1">
10
+ <frame src="panel/index.html" title="Search" name="panel" />
11
+ <frame src="<%= index_path %>" name="docwin" />
12
+ </frameset>
13
+ </html>
@@ -0,0 +1,129 @@
1
+ /*
2
+
3
+ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ color: #000;
10
+ background: #f8f8ff
11
+ }
12
+
13
+ pre .comment,
14
+ pre .template_comment,
15
+ pre .diff .header,
16
+ pre .javadoc {
17
+ color: #998;
18
+ font-style: italic
19
+ }
20
+
21
+ pre .keyword,
22
+ pre .css .rule .keyword,
23
+ pre .winutils,
24
+ pre .javascript .title,
25
+ pre .lisp .title,
26
+ pre .subst {
27
+ color: #000;
28
+ font-weight: bold
29
+ }
30
+
31
+ pre .number,
32
+ pre .hexcolor {
33
+ color: #40a070
34
+ }
35
+
36
+ pre .string,
37
+ pre .tag .value,
38
+ pre .phpdoc,
39
+ pre .tex .formula {
40
+ color: #d14
41
+ }
42
+
43
+ pre .title,
44
+ pre .id {
45
+ color: #900;
46
+ font-weight: bold
47
+ }
48
+
49
+ pre .javascript .title,
50
+ pre .lisp .title,
51
+ pre .subst {
52
+ font-weight: normal
53
+ }
54
+
55
+ pre .class .title,
56
+ pre .haskell .label,
57
+ pre .tex .command {
58
+ color: #458;
59
+ font-weight: bold
60
+ }
61
+
62
+ pre .tag,
63
+ pre .tag .title,
64
+ pre .rules .property,
65
+ pre .django .tag .keyword {
66
+ color: #000080;
67
+ font-weight: normal
68
+ }
69
+
70
+ pre .attribute,
71
+ pre .variable,
72
+ pre .instancevar,
73
+ pre .lisp .body {
74
+ color: #008080
75
+ }
76
+
77
+ pre .regexp {
78
+ color: #009926
79
+ }
80
+
81
+ pre .class {
82
+ color: #458;
83
+ font-weight: bold
84
+ }
85
+
86
+ pre .symbol,
87
+ pre .ruby .symbol .string,
88
+ pre .ruby .symbol .keyword,
89
+ pre .ruby .symbol .keymethods,
90
+ pre .lisp .keyword,
91
+ pre .tex .special,
92
+ pre .input_number {
93
+ color: #990073
94
+ }
95
+
96
+ pre .builtin,
97
+ pre .built_in,
98
+ pre .lisp .title {
99
+ color: #0086b3
100
+ }
101
+
102
+ pre .preprocessor,
103
+ pre .pi,
104
+ pre .doctype,
105
+ pre .shebang,
106
+ pre .cdata {
107
+ color: #999;
108
+ font-weight: bold
109
+ }
110
+
111
+ pre .deletion {
112
+ background: #fdd
113
+ }
114
+
115
+ pre .addition {
116
+ background: #dfd
117
+ }
118
+
119
+ pre .diff .change {
120
+ background: #0086b3
121
+ }
122
+
123
+ pre .chunk {
124
+ color: #aaa
125
+ }
126
+
127
+ pre .tex .formula {
128
+ opacity: 0.5;
129
+ }
@@ -0,0 +1,339 @@
1
+ body {
2
+ font-family: "Helvetica Neue", Arial, sans-serif;
3
+ background: #FFF;
4
+ color: #000;
5
+ margin: 0px;
6
+ font-size: 14px;
7
+ line-height: 1.25em;
8
+ }
9
+
10
+ a:link, a:active, a:visited, a:hover {
11
+ color: #980905;
12
+ text-decoration: none;
13
+ }
14
+
15
+ a:hover, .banner a:hover {
16
+ color: #333;
17
+ background: #FE8;
18
+ }
19
+
20
+ h1 a, h2 a, .banner a {
21
+ color: #fff;
22
+ }
23
+
24
+ h1 a:hover, h2 a:hover {
25
+ color: #fff;
26
+ }
27
+
28
+ p {
29
+ margin-bottom: 1em;
30
+ }
31
+
32
+ h1 {
33
+ font-size: 2.1em;
34
+ font-weight: normal;
35
+ line-height: 1.2em;
36
+ margin: 1.4em 0 0.7em 0;
37
+ }
38
+
39
+ h2 {
40
+ font-size: 1.6em;
41
+ margin: 1.8em 0 0.8em 0;
42
+ font-weight: normal;
43
+ line-height: 1.2em;
44
+ }
45
+
46
+ h3 {
47
+ font-size: 1.4em;
48
+ color:#555;
49
+ margin: 1.4em 0 0.7em 0;
50
+ font-weight: normal;
51
+ }
52
+
53
+ h4 {
54
+ margin: 1.4em 0 0.5em 0;
55
+ font-size: 1em;
56
+ }
57
+
58
+ table
59
+ {
60
+ margin-bottom: 1em;
61
+ }
62
+
63
+ td, th
64
+ {
65
+ padding: 0 0.7em 0.3em 0;
66
+ }
67
+
68
+ th
69
+ {
70
+ font-weight: bold;
71
+ }
72
+
73
+ .clear
74
+ {
75
+ clear: both;
76
+ width: 0; height: 0;
77
+ }
78
+
79
+ dt
80
+ {
81
+ margin-bottom: 0.3em;
82
+ font-weight: bold;
83
+ }
84
+
85
+ dd
86
+ {
87
+ margin-left: 2em;
88
+ margin-bottom: 1em;
89
+ }
90
+
91
+ dd p
92
+ {
93
+ margin-top: 0.6em;
94
+ }
95
+
96
+ li
97
+ {
98
+ margin: 0 0 0.5em 2em;
99
+ }
100
+
101
+ ul li
102
+ {
103
+ list-style: disc;
104
+ }
105
+
106
+ ol li
107
+ {
108
+ list-style: decimal;
109
+ }
110
+
111
+ .banner
112
+ {
113
+ background: #D11E27;
114
+ color: #FFF;
115
+ border: 1px solid #980905;
116
+ padding: 1em;
117
+ }
118
+ .banner h1
119
+ {
120
+ font-size: 1.2em;
121
+ margin: 0;
122
+ }
123
+
124
+ .banner h1 .type
125
+ {
126
+ font-size: 0.833em;
127
+ display:block;
128
+ }
129
+
130
+ .banner h1 .type,
131
+ .banner h1 .parent
132
+ {
133
+ color: #CCC;
134
+ }
135
+
136
+ .banner ul
137
+ {
138
+ margin-top: 0.3em;
139
+ margin-bottom: 0;
140
+ font-size: 0.85em;
141
+ }
142
+
143
+ .banner li
144
+ {
145
+ list-style: none;
146
+ margin-left: 0;
147
+ margin-bottom: 0;
148
+ }
149
+
150
+ .banner .github_url {
151
+ color: #CCC;
152
+ }
153
+
154
+ pre
155
+ {
156
+ margin-bottom: 1em;
157
+ }
158
+
159
+ .methods dt
160
+ {
161
+ width: 1em;
162
+ font-size: 1.5em;
163
+ color:#AAA;
164
+ position: absolute;
165
+ font-weight: normal;
166
+ margin: 0;
167
+ }
168
+
169
+ .methods dd
170
+ {
171
+ margin-left: 2.5em;
172
+ min-height: 1.8em;
173
+ -height: 1.8em;
174
+ padding-bottom: 0.8em;
175
+ }
176
+
177
+
178
+ .methods ul li
179
+ {
180
+ margin-right: 0.7em;
181
+ margin-left: 0;
182
+ list-style: none;
183
+ display: inline;
184
+ }
185
+
186
+ #content {
187
+ margin: 2em;
188
+ margin-left: 3.5em;
189
+ margin-right: 3.5em;
190
+ }
191
+
192
+
193
+ .sectiontitle {
194
+ margin-top: 2em;
195
+ margin-bottom: 1.3em;
196
+ margin-left: -1.2em;
197
+ font-size: 1.2em;
198
+ padding: 0 0 0.25em 0;
199
+ font-weight: bold;
200
+ border-bottom: 1px solid #000;
201
+ }
202
+
203
+ .contenttitle {
204
+ margin-top: 4em;
205
+ margin-bottom: 1.3em;
206
+ margin-left: -0.9em;
207
+ font-size: 1.6em;
208
+ padding: 0 0 0.25em 0;
209
+ font-weight: bold;
210
+ }
211
+
212
+ .attr-rw {
213
+ padding-right: 1em;
214
+ text-align: center;
215
+ color: #055;
216
+ }
217
+
218
+ .attr-name {
219
+ font-weight: bold;
220
+ padding-right: 1em;
221
+ }
222
+
223
+ .attr-desc {
224
+ }
225
+
226
+ tt {
227
+ font-size: 1.15em;
228
+ }
229
+
230
+ .attr-value {
231
+ font-family: monospace;
232
+ padding-left: 1em;
233
+ font-size: 1.15em;
234
+ }
235
+
236
+ .dyn-source {
237
+ display: none;
238
+ background: #fffde8;
239
+ color: #000;
240
+ border: #ffe0bb dotted 1px;
241
+ margin: 0.5em 2em 0.5em 0;
242
+ padding: 0.5em;
243
+ }
244
+
245
+ .dyn-source .cmt {
246
+ color: #00F;
247
+ font-style: italic;
248
+ }
249
+
250
+ .dyn-source .kw {
251
+ color: #070;
252
+ font-weight: bold;
253
+ }
254
+
255
+ .description pre {
256
+ padding: 0.5em;
257
+ border: #ffe0bb dotted 1px;
258
+ background: #fffde8;
259
+ }
260
+
261
+ .method {
262
+ margin-bottom: 2em;
263
+ }
264
+ .method .description,
265
+ .method .sourcecode
266
+ {
267
+ margin-left: 1.2em;
268
+ }
269
+ .method h4
270
+ {
271
+ border-bottom: 1px dotted #999;
272
+ padding: 0 0 0.2em 0;
273
+ margin-bottom: 0.8em;
274
+ font-size: 1.1em;
275
+ color:#333;
276
+ }
277
+ .method .method-title {
278
+ border-bottom: 1px dotted #666;
279
+ padding: 0 0 0.15em 0;
280
+ margin: 0 0 0.5em 0;
281
+ font-size: 1.2em;
282
+ line-height: 1.25em;
283
+ }
284
+
285
+ .method .sourcecode p.source-link {
286
+ text-indent: 0em;
287
+ margin-top: 0.5em;
288
+ }
289
+
290
+ .method .aka {
291
+ margin-top: 0.3em;
292
+ margin-left: 1em;
293
+ font-style: italic;
294
+ text-indent: 2em;
295
+ }
296
+
297
+ .method .source-link
298
+ {
299
+ font-size: 0.85em;
300
+ }
301
+
302
+ .ruby-constant {
303
+ color: teal;
304
+ }
305
+ .ruby-keyword {
306
+ color: #000;
307
+ font-weight: bold
308
+ }
309
+ .ruby-title {
310
+ color: #900;
311
+ font-weight: bold;
312
+ }
313
+ .ruby-ivar {
314
+ color: teal;
315
+ }
316
+ .ruby-operator {
317
+ color: #000;
318
+ font-weight: bold
319
+ }
320
+ .ruby-identifier {
321
+ color: #000;
322
+ }
323
+ .ruby-string,
324
+ .ruby-node {
325
+ color: #D14;
326
+ }
327
+ .ruby-comment {
328
+ color: #998;
329
+ font-style: italic;
330
+ }
331
+ .ruby-regexp {
332
+ color: #009926;
333
+ }
334
+ .ruby-value {
335
+ color: #990073;
336
+ }
337
+ .ruby-number {
338
+ color: #40A070;
339
+ }