summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Rakefile2
-rw-r--r--lib/feed2imap/feed2imap.rb2
-rw-r--r--lib/feed2imap/httpfetcher.rb5
-rwxr-xr-xtest/tc_cache.rb16
-rwxr-xr-xtest/tc_mail.rb1
6 files changed, 17 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index e291544..9333bfe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,11 @@
-Feed2Imap 0.6 (XX/01/2006)
+Feed2Imap 0.6 (11/01/2006)
============================
* Moved the RSS/Atom parser to a separate library (ruby-feedparser).
* Locks the Cache file to avoid concurrent instances of feed2imap.
* Issue a warning if the config file is world readable.
-* Fixed a small bug in Atom feeds parsing. And found a bug in Dotclear.
+* Fixed a small bug in Atom feeds parsing.
* Fix another bug related to escaped HTML.
+* Minor fixes.
Feed2Imap 0.5 (19/09/2005)
============================
diff --git a/Rakefile b/Rakefile
index dd1c10f..25559c2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -16,7 +16,7 @@ Rake::RDocTask.new do |rd|
rd.rdoc_dir = 'rdoc'
end
-Rake::PackageTask.new('feed2imap', '0.5') do |p|
+Rake::PackageTask.new('feed2imap', '0.6') do |p|
p.need_tar = true
p.package_files.include('ChangeLog', 'README', 'COPYING', 'setup.rb',
'Rakefile', 'data/doc/feed2imap/*/*', 'data/man/*/*', 'bin/feed2imap*',
diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb
index 78a443c..b0eff19 100644
--- a/lib/feed2imap/feed2imap.rb
+++ b/lib/feed2imap/feed2imap.rb
@@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
=end
# Feed2Imap version
-F2I_VERSION = '0.5.1'
+F2I_VERSION = '0.6'
require 'feed2imap/config'
require 'feed2imap/cache'
diff --git a/lib/feed2imap/httpfetcher.rb b/lib/feed2imap/httpfetcher.rb
index c72fc32..c7a92c7 100644
--- a/lib/feed2imap/httpfetcher.rb
+++ b/lib/feed2imap/httpfetcher.rb
@@ -33,7 +33,10 @@ MAXREDIR = 5
class HTTPFetcher
def HTTPFetcher::fetcher(baseuri, uri, lastcheck, recursion)
http = Net::HTTP::new(uri.host, uri.port)
- http.use_ssl = true if uri.scheme == 'https'
+ if uri.scheme == 'https'
+ http.use_ssl = true
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
+ end
if defined?(Feed2Imap)
useragent = "Feed2Imap v#{Feed2Imap.version} http://home.gna.org/feed2imap/"
else
diff --git a/test/tc_cache.rb b/test/tc_cache.rb
index e03d81f..9877941 100755
--- a/test/tc_cache.rb
+++ b/test/tc_cache.rb
@@ -4,7 +4,7 @@ $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'test/unit'
require 'feed2imap/cache'
-require 'feed2imap/channel'
+require 'feedparser'
require 'pp'
class ItemCacheTest < Test::Unit::TestCase
@@ -25,15 +25,15 @@ class ItemCacheTest < Test::Unit::TestCase
c = ItemCache::new
assert_equal(0, c.nbchannels)
assert_equal(0, c.nbitems)
- i1 = Item::new
+ i1 = FeedParser::FeedItem::new
i1.title = 'title1'
i1.link = 'link1'
i1.content = 'content1'
- i2 = Item::new
+ i2 = FeedParser::FeedItem::new
i2.title = 'title2'
i2.link = 'link2'
i2.content = 'content2'
- i3 = Item::new
+ i3 = FeedParser::FeedItem::new
i3.title = 'title3'
i3.link = 'link3'
i3.content = 'content3'
@@ -47,11 +47,11 @@ class ItemCacheTest < Test::Unit::TestCase
c = ItemCache::new
assert_equal(0, c.nbchannels)
assert_equal(0, c.nbitems)
- i1 = Item::new
+ i1 = FeedParser::FeedItem::new
i1.title = 'title1'
i1.link = 'link1'
i1.content = 'content1'
- i2 = Item::new
+ i2 = FeedParser::FeedItem::new
i2.title = 'title2'
i2.link = 'link2'
i2.content = 'content2'
@@ -62,7 +62,7 @@ class ItemCacheTest < Test::Unit::TestCase
idx2 = i2.cacheditem.index
assert_equal(1, idx2)
c.commit_cache('id')
- i3 = Item::new
+ i3 = FeedParser::FeedItem::new
i3.title = 'title 1 - updated'
i3.link = 'link1'
i3.content = 'content1'
@@ -70,7 +70,7 @@ class ItemCacheTest < Test::Unit::TestCase
assert_equal([], news)
assert_equal([i3], updated)
assert_equal(idx1, i3.cacheditem.index)
- i4 = Item::new
+ i4 = FeedParser::FeedItem::new
i4.title = 'title 1 - updated'
i4.link = 'link1'
i4.content = 'content1 - modified'
diff --git a/test/tc_mail.rb b/test/tc_mail.rb
index 3b700df..de80f9c 100755
--- a/test/tc_mail.rb
+++ b/test/tc_mail.rb
@@ -3,7 +3,6 @@
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'test/unit'
-require 'feed2imap/channel'
require 'rmail'
class MailTest < Test::Unit::TestCase
23:28:26 +0200'>2014-04-20Use sort -u instead of uniqJason A. Donenfeld1-2/+2 2014-04-20Don't use subshells for reading from find.Jason A. Donenfeld1-4/+4 2014-04-19bash-completion: fix completion-file's name in uninstallschalox1-1/+1 2014-04-19platform: Auto-detect local platform fileJason A. Donenfeld2-3/+3 In fact, if we're running from the source directory, just auto-detect the platform file in the first place. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2014-04-19platform: Allow custom platform file before installJason A. Donenfeld2-3/+5 The new environment variable, PASSWORD_STORE_PLATFORM_FILE is now used for loading custom platform files while pass lives as src/password-store.sh. After it is installed using 'make install', this environment variable is no longer used, and either no platform file is loaded (if the default platform is acceptable), or a hardcoded also-installed platform file is referenced. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2014-04-18reencrypt: cleaner temp file declarationJason A. Donenfeld1-4/+4 2014-04-18Remove unneeded semicolon.Jason A. Donenfeld1-14/+14 2014-04-18Check sneaky paths.Jason A. Donenfeld1-0/+15 2014-04-18Pruning: turns out rmdir does it for us with -p.Jason A. Donenfeld1-9/+3 2014-04-18Abstract remove empty directories into function.Jason A. Donenfeld1-14/+11 2014-04-18Remember to prune empty folders.Jason A. Donenfeld1-0/+8 2014-04-18init: allow deinitializationJason A. Donenfeld2-2/+18 2014-04-18bash-completion: filter dot files from resultsJason A. Donenfeld1-3/+8 2014-04-18reencrypt: remove option, do automaticallyJason A. Donenfeld5-39/+25 2014-04-18reencryption: add to completion filesJason A. Donenfeld3-1/+5 2014-04-18Specify variable gpg.Jason A. Donenfeld1-1/+1 2014-04-18style: don't escape new line on &&Jason A. Donenfeld1-2/+2 2014-04-18reencryption: remove temporary file on failureJason A. Donenfeld1-1/+1 2014-04-18reencryption: only reencrypt files when requiredJason A. Donenfeld2-16/+37 2014-04-17cp: typo as cvJason A. Donenfeld1-1/+1 2014-04-17bash: gpg_id is localJason A. Donenfeld1-0/+1 2014-04-17move/copy: always reencrypt passwords at destinationJason A. Donenfeld5-25/+56 2014-04-17makefile: allow platform files with gnu sedJason A. Donenfeld1-7/+8 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2014-04-17mv: Add pass mv/rename supportJason A. Donenfeld5-3/+78 Based-on-work-by: Matthieu Weber <mweber@free.fr> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2014-04-17revelation2pass: add plain XML importJavali1-11/+15 I found that revelatio2pass.py script doesn't work. It can not decrypt my password file. I got following error message: raceback (most recent call last): File "git/password-store/contrib/importers/revelation2pass.py", line 159, in <module> main(args.FILE, verbose=args.verbose, xml=args.xml) File "git/password-store/contrib/importers/revelation2pass.py", line 140, in main cleardata_gz = decrypt_gz(password, data) File "git/password-store/contrib/importers/revelation2pass.py", line 117, in decrypt_gz ct = c.decrypt(cipher_text[28:]) File "/usr/lib/python2.7/site-packages/Crypto/Cipher/blockalgo.py", line 295, in decrypt return self._cipher.decrypt(ciphertext) I was unable to fix the problem, but I created a workaround, that add plain XML import option to the revelation2pass.py script. Revelation can export its password file as plain XML format. 2014-04-17platform: add cygwin supportJason A. Donenfeld2-1/+17 According to Brandon Jones, all we need to do is adjust /dev/clipboard from xclip. So we add a platform specific file to do so. http://www.relaytheurgency.com/2014/04/pass-in-cygwin-relatively-simple.html Suggested-by: Brandon Jones <jones.brandon.lee@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>