yapra 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/{History.txt → ChangeLog} +8 -0
- data/LICENCE +1 -1
- data/README.mdown +70 -0
- data/Rakefile +119 -13
- data/bin/yapra +3 -1
- data/lib/yapra/pipeline.rb +6 -52
- data/lib/yapra/pipeline_base.rb +64 -0
- data/lib/yapra/plugin/mechanize_base.rb +1 -1
- data/lib/yapra/rb_pipeline.rb +7 -0
- data/lib/yapra/version.rb +1 -1
- data/lib/yapra.rb +1 -1
- data/lib-plugins/yapra/plugin/feed/custom.rb +25 -12
- data/lib-plugins/yapra/plugin/filter/entry_full_text.rb +1 -1
- data/lib-plugins/yapra/plugin/publish/gmail.rb +6 -3
- data/lib-plugins/yapra/plugin/publish/imap.rb +23 -106
- data/lib-plugins/yapra/plugin/publish/mail.rb +112 -0
- data/lib-plugins/yapra/plugin/publish/smtp.rb +80 -0
- metadata +68 -63
- data/License.txt +0 -22
- data/Manifest.txt +0 -117
- data/PostInstall.txt +0 -0
- data/README.txt +0 -67
- data/config/hoe.rb +0 -75
- data/config/requirements.rb +0 -15
- data/setup.rb +0 -1585
data/config/hoe.rb
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
require 'yapra/version'
|
2
|
-
|
3
|
-
AUTHOR = 'Yuanying' # can also be an array of Authors
|
4
|
-
EMAIL = "yuanying at fraction dot jp"
|
5
|
-
DESCRIPTION = "Yet another pragger implementation."
|
6
|
-
GEM_NAME = 'yapra' # what ppl will type to install your gem
|
7
|
-
RUBYFORGE_PROJECT = 'yapra' # The unix name for your project
|
8
|
-
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
9
|
-
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
10
|
-
EXTRA_DEPENDENCIES = [
|
11
|
-
['mechanize', '>= 0.7.6']
|
12
|
-
] # An array of rubygem dependencies [name, version]
|
13
|
-
|
14
|
-
@config_file = "~/.rubyforge/user-config.yml"
|
15
|
-
@config = nil
|
16
|
-
RUBYFORGE_USERNAME = "unknown"
|
17
|
-
def rubyforge_username
|
18
|
-
unless @config
|
19
|
-
begin
|
20
|
-
@config = YAML.load(File.read(File.expand_path(@config_file)))
|
21
|
-
rescue
|
22
|
-
puts <<-EOS
|
23
|
-
ERROR: No rubyforge config file found: #{@config_file}
|
24
|
-
Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
25
|
-
- See http://newgem.rubyforge.org/rubyforge.html for more details
|
26
|
-
EOS
|
27
|
-
exit
|
28
|
-
end
|
29
|
-
end
|
30
|
-
RUBYFORGE_USERNAME.replace @config["username"]
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
REV = nil
|
35
|
-
# UNCOMMENT IF REQUIRED:
|
36
|
-
# REV = YAML.load(`svn info`)['Revision']
|
37
|
-
VERS = Yapra::VERSION::STRING + (REV ? ".#{REV}" : "")
|
38
|
-
RDOC_OPTS = ['--quiet', '--title', 'yapra documentation',
|
39
|
-
"--opname", "index.html",
|
40
|
-
"--line-numbers",
|
41
|
-
"--main", "README",
|
42
|
-
"--inline-source"]
|
43
|
-
|
44
|
-
class Hoe
|
45
|
-
def extra_deps
|
46
|
-
@extra_deps.reject! { |x| Array(x).first == 'hoe' }
|
47
|
-
@extra_deps
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# Generate all the Rake tasks
|
52
|
-
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
53
|
-
$hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
54
|
-
p.developer(AUTHOR, EMAIL)
|
55
|
-
p.description = DESCRIPTION
|
56
|
-
p.summary = DESCRIPTION
|
57
|
-
p.url = HOMEPATH
|
58
|
-
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
59
|
-
p.test_globs = ["test/**/test_*.rb"]
|
60
|
-
p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
|
61
|
-
|
62
|
-
# == Optional
|
63
|
-
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
64
|
-
#p.extra_deps = EXTRA_DEPENDENCIES
|
65
|
-
|
66
|
-
p.spec_extras = {
|
67
|
-
'require_paths' => ['lib', 'lib-plugins']
|
68
|
-
}
|
69
|
-
end
|
70
|
-
|
71
|
-
CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
|
72
|
-
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
|
73
|
-
$hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
|
74
|
-
$hoe.rsync_args = '-av --delete --ignore-errors'
|
75
|
-
$hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
|
data/config/requirements.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
include FileUtils
|
3
|
-
|
4
|
-
require 'rubygems'
|
5
|
-
%w[rake hoe newgem rubigen].each do |req_gem|
|
6
|
-
begin
|
7
|
-
require req_gem
|
8
|
-
rescue LoadError
|
9
|
-
puts "This Rakefile requires the '#{req_gem}' RubyGem."
|
10
|
-
puts "Installation: gem install #{req_gem} -y"
|
11
|
-
exit
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
$:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
|