yunhe 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/Gemfile +1 -0
  4. data/README.md +1 -0
  5. data/Rakefile +15 -0
  6. data/doc/Gemfile.html +87 -0
  7. data/doc/README_md.html +85 -0
  8. data/doc/Yunhe/Consumer.html +194 -0
  9. data/doc/Yunhe/Core.html +396 -0
  10. data/doc/Yunhe/Producer.html +194 -0
  11. data/doc/Yunhe.html +164 -0
  12. data/doc/created.rid +9 -0
  13. data/doc/css/fonts.css +167 -0
  14. data/doc/css/rdoc.css +590 -0
  15. data/doc/fonts/Lato-Light.ttf +0 -0
  16. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  17. data/doc/fonts/Lato-Regular.ttf +0 -0
  18. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  19. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  20. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  21. data/doc/images/add.png +0 -0
  22. data/doc/images/arrow_up.png +0 -0
  23. data/doc/images/brick.png +0 -0
  24. data/doc/images/brick_link.png +0 -0
  25. data/doc/images/bug.png +0 -0
  26. data/doc/images/bullet_black.png +0 -0
  27. data/doc/images/bullet_toggle_minus.png +0 -0
  28. data/doc/images/bullet_toggle_plus.png +0 -0
  29. data/doc/images/date.png +0 -0
  30. data/doc/images/delete.png +0 -0
  31. data/doc/images/find.png +0 -0
  32. data/doc/images/loadingAnimation.gif +0 -0
  33. data/doc/images/macFFBgHack.png +0 -0
  34. data/doc/images/package.png +0 -0
  35. data/doc/images/page_green.png +0 -0
  36. data/doc/images/page_white_text.png +0 -0
  37. data/doc/images/page_white_width.png +0 -0
  38. data/doc/images/plugin.png +0 -0
  39. data/doc/images/ruby.png +0 -0
  40. data/doc/images/tag_blue.png +0 -0
  41. data/doc/images/tag_green.png +0 -0
  42. data/doc/images/transparent.png +0 -0
  43. data/doc/images/wrench.png +0 -0
  44. data/doc/images/wrench_orange.png +0 -0
  45. data/doc/images/zoom.png +0 -0
  46. data/doc/index.html +101 -0
  47. data/doc/js/darkfish.js +161 -0
  48. data/doc/js/jquery.js +4 -0
  49. data/doc/js/navigation.js +142 -0
  50. data/doc/js/navigation.js.gz +0 -0
  51. data/doc/js/search.js +109 -0
  52. data/doc/js/search_index.js +1 -0
  53. data/doc/js/search_index.js.gz +0 -0
  54. data/doc/js/searcher.js +228 -0
  55. data/doc/js/searcher.js.gz +0 -0
  56. data/doc/table_of_contents.html +101 -0
  57. data/doc/yunhe_gemspec.html +105 -0
  58. data/lib/yunhe/consumer.rb +24 -0
  59. data/lib/yunhe/core.rb +111 -0
  60. data/lib/yunhe/producer.rb +21 -0
  61. data/lib/yunhe/version.rb +3 -0
  62. data/lib/yunhe.rb +20 -0
  63. data/yunhe.gemspec +18 -0
  64. metadata +107 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b836128b64b47e8da0cf9f6f1c021f809c18379e
4
+ data.tar.gz: ecf23559f6d277d0a8f43c63101ab274b2a3c444
5
+ SHA512:
6
+ metadata.gz: e08d680882d06c9e9a946cdf7b330f6ccaff4c4c19874ee2a8d9a97a84eb22b55855d76d74f9398b03059138978ad6e360fbb15a0b391bf536f0d21e2f6e125c
7
+ data.tar.gz: c34b18a154297c0fab78a0cfb448630381f49df1cd34a08a951cf1e201b83bda224d1e568c6df3b67f81d0697410f2f4de20b1d93e6b19be9824d87de6e068b2
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ # ignore generated gem
2
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1 @@
1
+ source 'https://ruby.taobao.org'
data/README.md ADDED
@@ -0,0 +1 @@
1
+ # Yunhe
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ task :build do
2
+ IO.popen "gem build ./yunhe.gemspec" do |f|
3
+ while line = f.gets do
4
+ puts line
5
+ end
6
+ end
7
+ end
8
+
9
+ task :install do
10
+ IO.popen "gem install ./*.gem" do |f|
11
+ while line = f.gets do
12
+ puts line
13
+ end
14
+ end
15
+ end
data/doc/Gemfile.html ADDED
@@ -0,0 +1,87 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>Gemfile - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="file">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="project-metadata">
56
+ <div id="fileindex-section" class="nav-section">
57
+ <h3>Pages</h3>
58
+
59
+ <ul class="link-list">
60
+
61
+ <li><a href="./Gemfile.html">Gemfile</a>
62
+
63
+ <li><a href="./README_md.html">README</a>
64
+
65
+ <li><a href="./yunhe_gemspec.html">yunhe.gemspec</a>
66
+
67
+ </ul>
68
+ </div>
69
+
70
+ </div>
71
+ </nav>
72
+
73
+ <main role="main" aria-label="Page Gemfile">
74
+
75
+ <p>source &#39;<a href="https://ruby.taobao.org">ruby.taobao.org</a>&#39;</p>
76
+
77
+ <p>gem &#39;minitest&#39;, :group =&gt; :test</p>
78
+ </main>
79
+
80
+
81
+
82
+ <footer id="validator-badges" role="contentinfo">
83
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
84
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
85
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
86
+ </footer>
87
+
@@ -0,0 +1,85 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>README - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="file">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="project-metadata">
56
+ <div id="fileindex-section" class="nav-section">
57
+ <h3>Pages</h3>
58
+
59
+ <ul class="link-list">
60
+
61
+ <li><a href="./Gemfile.html">Gemfile</a>
62
+
63
+ <li><a href="./README_md.html">README</a>
64
+
65
+ <li><a href="./yunhe_gemspec.html">yunhe.gemspec</a>
66
+
67
+ </ul>
68
+ </div>
69
+
70
+ </div>
71
+ </nav>
72
+
73
+ <main role="main" aria-label="Page README.md">
74
+
75
+ <p><a href="Yunhe.html">Yunhe</a></p>
76
+ </main>
77
+
78
+
79
+
80
+ <footer id="validator-badges" role="contentinfo">
81
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
82
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
83
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
84
+ </footer>
85
+
@@ -0,0 +1,194 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Yunhe::Consumer - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ </script>
12
+
13
+ <script src="../js/jquery.js"></script>
14
+ <script src="../js/darkfish.js"></script>
15
+
16
+ <link href="../css/fonts.css" rel="stylesheet">
17
+ <link href="../css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="class">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="../index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="../table_of_contents.html#pages">Pages</a>
31
+ <a href="../table_of_contents.html#classes">Classes</a>
32
+ <a href="../table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="class-metadata">
56
+
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
60
+
61
+ <p class="link">Thread
62
+
63
+ </div>
64
+
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
70
+
71
+ <ul class="link-list" role="directory">
72
+
73
+ <li class="calls-super" ><a href="#method-c-new">::new</a>
74
+
75
+ </ul>
76
+ </div>
77
+
78
+ </div>
79
+ </nav>
80
+
81
+ <main role="main" aria-labelledby="class-Yunhe::Consumer">
82
+ <h1 id="class-Yunhe::Consumer" class="class">
83
+ class Yunhe::Consumer
84
+ </h1>
85
+
86
+ <section class="description">
87
+
88
+ </section>
89
+
90
+
91
+
92
+
93
+ <section id="5Buntitled-5D" class="documentation-section">
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+ <section class="attribute-method-details" class="method-section">
102
+ <header>
103
+ <h3>Attributes</h3>
104
+ </header>
105
+
106
+
107
+ <div id="attribute-i-block" class="method-detail">
108
+ <div class="method-heading attribute-method-heading">
109
+ <span class="method-name">block</span><span
110
+ class="attribute-access-type">[RW]</span>
111
+ </div>
112
+
113
+ <div class="method-description">
114
+
115
+
116
+
117
+ </div>
118
+ </div>
119
+
120
+ <div id="attribute-i-queue" class="method-detail">
121
+ <div class="method-heading attribute-method-heading">
122
+ <span class="method-name">queue</span><span
123
+ class="attribute-access-type">[RW]</span>
124
+ </div>
125
+
126
+ <div class="method-description">
127
+
128
+
129
+
130
+ </div>
131
+ </div>
132
+
133
+ </section>
134
+
135
+
136
+
137
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
138
+ <header>
139
+ <h3>Public Class Methods</h3>
140
+ </header>
141
+
142
+
143
+ <div id="method-c-new" class="method-detail ">
144
+
145
+ <div class="method-heading">
146
+ <span class="method-name">new</span><span
147
+ class="method-args">(queue, block)</span>
148
+
149
+ <span class="method-click-advice">click to toggle source</span>
150
+
151
+ </div>
152
+
153
+
154
+ <div class="method-description">
155
+
156
+
157
+
158
+
159
+ <div class="method-calls-super">
160
+ Calls superclass method
161
+
162
+ </div>
163
+
164
+
165
+
166
+ <div class="method-source-code" id="new-source">
167
+ <pre><span class="ruby-comment"># File lib/yunhe/consumer.rb, line 6</span>
168
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">queue</span>, <span class="ruby-identifier">block</span>)
169
+ <span class="ruby-keyword">super</span> <span class="ruby-operator">&amp;</span>(<span class="ruby-identifier">method</span>(<span class="ruby-value">:job</span>).<span class="ruby-identifier">to_proc</span>)
170
+ <span class="ruby-ivar">@block</span> = <span class="ruby-identifier">block</span>
171
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">queue</span> = <span class="ruby-identifier">queue</span>
172
+ <span class="ruby-keyword">end</span></pre>
173
+ </div>
174
+
175
+ </div>
176
+
177
+
178
+
179
+
180
+ </div>
181
+
182
+
183
+ </section>
184
+
185
+ </section>
186
+ </main>
187
+
188
+
189
+ <footer id="validator-badges" role="contentinfo">
190
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
191
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
192
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
193
+ </footer>
194
+