podgraph 0.0.1 → 0.0.2
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/NEWS +6 -0
- data/Rakefile +2 -2
- data/TODO +1 -1
- data/bin/podgraph +1 -1
- data/lib/podgraph/posterous.rb +4 -2
- metadata +5 -4
data/NEWS
ADDED
data/Rakefile
CHANGED
|
@@ -9,7 +9,7 @@ require 'rake/testtask'
|
|
|
9
9
|
spec = Gem::Specification.new do |s|
|
|
10
10
|
s.name = "podgraph"
|
|
11
11
|
s.summary = 'Creates a MIME mail from a XHTML source and delivers it to Posterous.com.'
|
|
12
|
-
s.version = '0.0.
|
|
12
|
+
s.version = '0.0.2'
|
|
13
13
|
s.author = 'Alexander Gromnitsky'
|
|
14
14
|
s.email = 'alexander.gromnitsky@gmail.com'
|
|
15
15
|
s.platform = Gem::Platform::RUBY
|
|
@@ -20,7 +20,7 @@ spec = Gem::Specification.new do |s|
|
|
|
20
20
|
s.test_files = FileList['test/ts_*.rb'].to_a
|
|
21
21
|
s.rdoc_options << '-m' << 'Podgraph'
|
|
22
22
|
end
|
|
23
|
-
spec.add_dependency('mail', '
|
|
23
|
+
spec.add_dependency('mail', '= 2.1.3')
|
|
24
24
|
|
|
25
25
|
Rake::GemPackageTask.new(spec).define
|
|
26
26
|
|
data/TODO
CHANGED
data/bin/podgraph
CHANGED
data/lib/podgraph/posterous.rb
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# $Id: posterous.rb 104 2010-03-10 18:46:53Z alex $
|
|
2
2
|
|
|
3
|
+
gem 'mail', '= 2.1.3'
|
|
3
4
|
require 'mail'
|
|
5
|
+
|
|
4
6
|
require 'rexml/document'
|
|
5
7
|
require 'yaml'
|
|
6
8
|
require 'optparse'
|
|
@@ -8,6 +10,7 @@ require 'optparse'
|
|
|
8
10
|
# :include: ../../README.rdoc
|
|
9
11
|
module Podgraph
|
|
10
12
|
|
|
13
|
+
VERSION = '0.0.2'
|
|
11
14
|
mattr_accessor :cfg
|
|
12
15
|
|
|
13
16
|
self.cfg = Hash.new()
|
|
@@ -29,8 +32,7 @@ module Podgraph
|
|
|
29
32
|
# _mode_ is 1 of 'related' or 'mixed' string.
|
|
30
33
|
def initialize(filename, to, from, mode)
|
|
31
34
|
@o = Hash.new()
|
|
32
|
-
@o[:
|
|
33
|
-
@o[:user_agent] = 'podgraph/' + @o[:lib_ver]
|
|
35
|
+
@o[:user_agent] = 'podgraph/' + VERSION
|
|
34
36
|
@o[:subject] = ''
|
|
35
37
|
@o[:body] = []
|
|
36
38
|
@o[:attachment] = []
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.0.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Alexander Gromnitsky
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-
|
|
17
|
+
date: 2010-04-24 00:00:00 +03:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -22,7 +22,7 @@ dependencies:
|
|
|
22
22
|
prerelease: false
|
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
|
-
- - "
|
|
25
|
+
- - "="
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
27
|
segments:
|
|
28
28
|
- 2
|
|
@@ -46,6 +46,7 @@ files:
|
|
|
46
46
|
- Rakefile
|
|
47
47
|
- README.rdoc
|
|
48
48
|
- TODO
|
|
49
|
+
- NEWS
|
|
49
50
|
- test/mechanical-turk/1.html
|
|
50
51
|
- test/mechanical-turk/2.html
|
|
51
52
|
- test/mechanical-turk/sun.jpg
|