yapra 0.1.0 → 0.1.1
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/History.txt +12 -0
- data/Manifest.txt +11 -2
- data/PostInstall.txt +0 -7
- data/README.txt +2 -1
- data/bin/yapra +35 -21
- data/fixtures/config/habu_like.yml +43 -0
- data/fixtures/config/mixed_type.yml +18 -0
- data/fixtures/config/pragger_like.yml +12 -0
- data/fixtures/legacy_plugin/legacy_test_plugin.rb +4 -0
- data/lib/yapra/config.rb +5 -3
- data/lib/yapra/legacy_plugin/advance_mode_registry.rb +14 -3
- data/lib/yapra/legacy_plugin/base.rb +1 -0
- data/lib/yapra/legacy_plugin/compatible_mode_registry.rb +12 -2
- data/lib/yapra/legacy_plugin/registry_factory.rb +7 -0
- data/lib/yapra/pipeline.rb +21 -0
- data/lib/yapra/plugin/base.rb +4 -0
- data/lib/yapra/plugin/erb_applier.rb +1 -1
- data/lib/yapra/plugin/mechanize_base.rb +4 -4
- data/lib/yapra/runtime.rb +16 -0
- data/lib/yapra/version.rb +1 -1
- data/lib/yapra.rb +2 -0
- data/lib-plugins/yapra/plugin/config/agent.rb +13 -13
- data/lib-plugins/yapra/plugin/config/basic_auth.rb +9 -9
- data/lib-plugins/yapra/plugin/config/web_post.rb +11 -11
- data/lib-plugins/yapra/plugin/feed/custom.rb +17 -12
- data/lib-plugins/yapra/plugin/feed/load.rb +10 -0
- data/lib-plugins/yapra/plugin/filter/apply_template.rb +52 -0
- data/lib-plugins/yapra/plugin/filter/entry_full_text.rb +16 -16
- data/lib-plugins/yapra/plugin/publish/file_download.rb +28 -77
- data/lib-plugins/yapra/plugin/publish/gmail.rb +16 -16
- data/lib-plugins/yapra/plugin/publish/imap.rb +88 -34
- data/lib-plugins/yapra/plugin/publish/on_memory_download.rb +86 -0
- data/lib-plugins/yapra/plugin/test/append_entry.rb +11 -11
- data/plugins/Filter/grep.rb +24 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/yapra/config_spec.rb +72 -0
- data/spec/yapra/legacy_plugin/base_spec.rb +33 -0
- data/spec/yapra/legacy_plugin/registry_factory_spec.rb +19 -0
- data/spec/yapra_spec.rb +7 -3
- data/website/index.txt +3 -3
- metadata +15 -13
- data/website/index.html +0 -115
data/spec/yapra_spec.rb
CHANGED
@@ -2,10 +2,14 @@ require File.dirname(__FILE__) + '/spec_helper.rb'
|
|
2
2
|
|
3
3
|
# Time to add your specs!
|
4
4
|
# http://rspec.info/
|
5
|
-
describe
|
5
|
+
describe Yapra do
|
6
6
|
|
7
|
-
it "
|
8
|
-
|
7
|
+
it "load class constant from string." do
|
8
|
+
Yapra.load_class_constant('Yapra').should == Yapra
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'can\'t load constant from invalid name.' do
|
12
|
+
Yapra.load_class_constant('_arheiuhri_333***').should be_nil
|
9
13
|
end
|
10
14
|
|
11
15
|
end
|
data/website/index.txt
CHANGED
@@ -16,13 +16,13 @@ h2. The basics
|
|
16
16
|
|
17
17
|
h2. Demonstration of usage
|
18
18
|
|
19
|
-
h3. Use command
|
19
|
+
h3. Use on command
|
20
20
|
|
21
21
|
<pre syntax="ruby">yapra -c config_file.yml</pre>
|
22
22
|
|
23
23
|
This command looks like "Pragger":http://pragger.ikejisoft.com/
|
24
24
|
|
25
|
-
h3. Use your application
|
25
|
+
h3. Use in your application
|
26
26
|
|
27
27
|
<pre syntax="ruby">require 'yapra/runtime'
|
28
28
|
require 'yapra/config'
|
@@ -43,7 +43,7 @@ h2. Forum
|
|
43
43
|
h2. Build and test instructions
|
44
44
|
|
45
45
|
<pre>cd yapra
|
46
|
-
rake
|
46
|
+
rake spec
|
47
47
|
rake install_gem</pre>
|
48
48
|
|
49
49
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yapra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuanying
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-06-
|
12
|
+
date: 2008-06-26 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -35,8 +35,13 @@ files:
|
|
35
35
|
- PostInstall.txt
|
36
36
|
- README.txt
|
37
37
|
- Rakefile
|
38
|
+
- bin/yapra
|
38
39
|
- config/hoe.rb
|
39
40
|
- config/requirements.rb
|
41
|
+
- fixtures/config/habu_like.yml
|
42
|
+
- fixtures/config/mixed_type.yml
|
43
|
+
- fixtures/config/pragger_like.yml
|
44
|
+
- fixtures/legacy_plugin/legacy_test_plugin.rb
|
40
45
|
- legacy_plugins/Download/nicovideo.rb
|
41
46
|
- legacy_plugins/Feed/custom_feed.rb
|
42
47
|
- legacy_plugins/Feed/google_calendar.rb
|
@@ -88,10 +93,12 @@ files:
|
|
88
93
|
- lib-plugins/yapra/plugin/config/web_post.rb
|
89
94
|
- lib-plugins/yapra/plugin/feed/custom.rb
|
90
95
|
- lib-plugins/yapra/plugin/feed/load.rb
|
96
|
+
- lib-plugins/yapra/plugin/filter/apply_template.rb
|
91
97
|
- lib-plugins/yapra/plugin/filter/entry_full_text.rb
|
92
98
|
- lib-plugins/yapra/plugin/publish/file_download.rb
|
93
99
|
- lib-plugins/yapra/plugin/publish/gmail.rb
|
94
100
|
- lib-plugins/yapra/plugin/publish/imap.rb
|
101
|
+
- lib-plugins/yapra/plugin/publish/on_memory_download.rb
|
95
102
|
- lib-plugins/yapra/plugin/test/append_entry.rb
|
96
103
|
- lib/yapra.rb
|
97
104
|
- lib/yapra/config.rb
|
@@ -111,9 +118,9 @@ files:
|
|
111
118
|
- lib/yapra/runtime.rb
|
112
119
|
- lib/yapra/version.rb
|
113
120
|
- plugins/Filter/deduped.rb
|
121
|
+
- plugins/Filter/grep.rb
|
114
122
|
- plugins/Filter/sort.rb
|
115
123
|
- plugins/Filter/subs.rb
|
116
|
-
- bin/yapra
|
117
124
|
- script/console
|
118
125
|
- script/destroy
|
119
126
|
- script/generate
|
@@ -121,26 +128,21 @@ files:
|
|
121
128
|
- setup.rb
|
122
129
|
- spec/spec.opts
|
123
130
|
- spec/spec_helper.rb
|
131
|
+
- spec/yapra/config_spec.rb
|
132
|
+
- spec/yapra/legacy_plugin/base_spec.rb
|
133
|
+
- spec/yapra/legacy_plugin/registry_factory_spec.rb
|
124
134
|
- spec/yapra_spec.rb
|
125
135
|
- tasks/deployment.rake
|
126
136
|
- tasks/environment.rake
|
127
137
|
- tasks/rspec.rake
|
128
138
|
- tasks/website.rake
|
129
|
-
- website/index.html
|
130
139
|
- website/index.txt
|
131
140
|
- website/javascripts/rounded_corners_lite.inc.js
|
132
141
|
- website/stylesheets/screen.css
|
133
142
|
- website/template.html.erb
|
134
143
|
has_rdoc: true
|
135
144
|
homepage: http://yapra.rubyforge.org
|
136
|
-
post_install_message:
|
137
|
-
|
138
|
-
For more information on yapra, see http://yapra.rubyforge.org
|
139
|
-
|
140
|
-
NOTE: Change this information in PostInstall.txt
|
141
|
-
You can also delete it if you don't want it.
|
142
|
-
|
143
|
-
|
145
|
+
post_install_message: ""
|
144
146
|
rdoc_options:
|
145
147
|
- --main
|
146
148
|
- README.txt
|
@@ -162,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
164
|
requirements: []
|
163
165
|
|
164
166
|
rubyforge_project: yapra
|
165
|
-
rubygems_version: 1.
|
167
|
+
rubygems_version: 1.2.0
|
166
168
|
signing_key:
|
167
169
|
specification_version: 2
|
168
170
|
summary: Yet another pragger implementation.
|
data/website/index.html
DELETED
@@ -1,115 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<title>
|
8
|
-
yapra
|
9
|
-
</title>
|
10
|
-
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
-
<style>
|
12
|
-
|
13
|
-
</style>
|
14
|
-
<script type="text/javascript">
|
15
|
-
window.onload = function() {
|
16
|
-
settings = {
|
17
|
-
tl: { radius: 10 },
|
18
|
-
tr: { radius: 10 },
|
19
|
-
bl: { radius: 10 },
|
20
|
-
br: { radius: 10 },
|
21
|
-
antiAlias: true,
|
22
|
-
autoPad: true,
|
23
|
-
validTags: ["div"]
|
24
|
-
}
|
25
|
-
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
26
|
-
versionBox.applyCornersToAll();
|
27
|
-
}
|
28
|
-
</script>
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="main">
|
32
|
-
|
33
|
-
<h1>yapra</h1>
|
34
|
-
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/yapra"; return false'>
|
35
|
-
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/yapra" class="numbers">0.1.0</a>
|
37
|
-
</div>
|
38
|
-
<h1>→ ‘yapra’</h1>
|
39
|
-
|
40
|
-
|
41
|
-
<h2>What</h2>
|
42
|
-
|
43
|
-
|
44
|
-
<p>Yet Another <a href="http://pragger.ikejisoft.com/">Pragger</a> implementation.</p>
|
45
|
-
|
46
|
-
|
47
|
-
<h2>Installing</h2>
|
48
|
-
|
49
|
-
|
50
|
-
<p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">yapra</span></pre></p>
|
51
|
-
|
52
|
-
|
53
|
-
<h2>The basics</h2>
|
54
|
-
|
55
|
-
|
56
|
-
<h2>Demonstration of usage</h2>
|
57
|
-
|
58
|
-
|
59
|
-
<h3>Use command</h3>
|
60
|
-
|
61
|
-
|
62
|
-
<p><pre class='syntax'><span class="ident">yapra</span> <span class="punct">-</span><span class="ident">c</span> <span class="ident">config_file</span><span class="punct">.</span><span class="ident">yml</span></pre></p>
|
63
|
-
|
64
|
-
|
65
|
-
<p>This command looks like <a href="http://pragger.ikejisoft.com/">Pragger</a></p>
|
66
|
-
|
67
|
-
|
68
|
-
<h3>Use your application</h3>
|
69
|
-
|
70
|
-
|
71
|
-
<p><pre class='syntax'><span class="ident">require</span> <span class="punct">'</span><span class="string">yapra/runtime</span><span class="punct">'</span>
|
72
|
-
<span class="ident">require</span> <span class="punct">'</span><span class="string">yapra/config</span><span class="punct">'</span>
|
73
|
-
|
74
|
-
<span class="ident">config</span> <span class="punct">=</span> <span class="constant">YAML</span><span class="punct">.</span><span class="ident">load</span><span class="punct">(</span><span class="ident">config_file</span><span class="punct">)</span>
|
75
|
-
<span class="ident">config</span> <span class="punct">=</span> <span class="constant">Yapra</span><span class="punct">::</span><span class="constant">Config</span><span class="punct">.</span><span class="ident">new</span><span class="punct">(</span><span class="ident">config</span><span class="punct">)</span>
|
76
|
-
|
77
|
-
<span class="constant">Yapra</span><span class="punct">::</span><span class="constant">Runtime</span><span class="punct">.</span><span class="ident">logger</span> <span class="punct">=</span> <span class="constant">Logger</span><span class="punct">.</span><span class="ident">new</span><span class="punct">(</span><span class="constant">STDOUT</span><span class="punct">)</span>
|
78
|
-
|
79
|
-
<span class="ident">yapra</span> <span class="punct">=</span> <span class="constant">Yapra</span><span class="punct">::</span><span class="constant">Runtime</span><span class="punct">.</span><span class="ident">new</span><span class="punct">(</span><span class="ident">config</span><span class="punct">.</span><span class="ident">env</span><span class="punct">)</span>
|
80
|
-
<span class="ident">yapra</span><span class="punct">.</span><span class="ident">execute</span><span class="punct">(</span><span class="ident">config</span><span class="punct">.</span><span class="ident">pipeline_commands</span><span class="punct">)</span></pre></p>
|
81
|
-
|
82
|
-
|
83
|
-
<h2>Forum</h2>
|
84
|
-
|
85
|
-
|
86
|
-
<p><a href="http://www.fraction.jp/trac/rana2/wiki/Yapra">http://www.fraction.jp/trac/rana2/wiki/Yapra</a></p>
|
87
|
-
|
88
|
-
|
89
|
-
<h2>Build and test instructions</h2>
|
90
|
-
|
91
|
-
|
92
|
-
<pre>cd yapra
|
93
|
-
rake test
|
94
|
-
rake install_gem</pre>
|
95
|
-
|
96
|
-
<h2>License</h2>
|
97
|
-
|
98
|
-
|
99
|
-
<p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
|
100
|
-
|
101
|
-
|
102
|
-
<h2>Contact</h2>
|
103
|
-
|
104
|
-
|
105
|
-
<p>Comments are welcome. Send an email to <a href="mailto:yuanyin-at-fraction-dot-jp">Yuanying</a> email via the <a href="http://groups.google.com/group/yapra">forum</a></p>
|
106
|
-
<p class="coda">
|
107
|
-
<a href="mailto:yuanying-at-fraction-jp">Yuanying Ohtsuka</a>, 20th June 2008<br>
|
108
|
-
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
109
|
-
</p>
|
110
|
-
</div>
|
111
|
-
|
112
|
-
<!-- insert site tracking codes here, like Google Urchin -->
|
113
|
-
|
114
|
-
</body>
|
115
|
-
</html>
|