net-fs-gmail 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/Rakefile +16 -1
- data/lib/net/fs/gmail.rb +7 -2
- metadata +3 -3
data/History.txt
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
|
2
|
+
== 0.0.2 / 2007-11-10
|
3
|
+
|
4
|
+
* Require +gmailer+ 0.1.9 to address Gmail AuthN issues.
|
5
|
+
* Began adding Rspec-based tests
|
6
|
+
* Added +examples+ and +examples_with_rcov+ Rake targets.
|
7
|
+
|
1
8
|
== 0.0.1 / 2007-09-04
|
2
9
|
|
3
10
|
* First release of +Net::FS::Gmail+, a port of the Perl module of the same name.
|
data/Rakefile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
|
3
|
+
require 'spec/rake/spectask'
|
3
4
|
require 'rubygems'
|
4
5
|
require 'hoe'
|
5
6
|
require './lib/net/fs/gmail.rb'
|
@@ -12,7 +13,21 @@ Hoe.new('net-fs-gmail', Net::FS::Gmail::VERSION) do |p|
|
|
12
13
|
p.description = p.paragraphs_of('README.txt', 2..2).join("\n\n")
|
13
14
|
p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[2..-1]
|
14
15
|
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
|
15
|
-
p.extra_deps << [ 'gmailer', '>= 0.1.
|
16
|
+
p.extra_deps << [ 'gmailer', '>= 0.1.9' ]
|
16
17
|
end
|
17
18
|
|
19
|
+
desc "Run all examples"
|
20
|
+
Spec::Rake::SpecTask.new('examples') do |t|
|
21
|
+
t.spec_files = FileList['spec/*_spec.rb']
|
22
|
+
t.spec_opts = [ '--format', 'specdoc' ]
|
23
|
+
end
|
24
|
+
|
25
|
+
desc "Run all examples with RCov"
|
26
|
+
Spec::Rake::SpecTask.new('examples_with_rcov') do |t|
|
27
|
+
t.spec_files = FileList['spec/*_spec.rb']
|
28
|
+
t.spec_opts = [ '--format', 'specdoc' ]
|
29
|
+
t.rcov = true
|
30
|
+
t.rcov_opts = [ '--exclude', 'spec' ]
|
31
|
+
end
|
32
|
+
|
18
33
|
# vim: syntax=Ruby
|
data/lib/net/fs/gmail.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
|
-
gem 'gmailer', '>= 0.1.
|
4
|
+
gem 'gmailer', '>= 0.1.9'
|
5
5
|
require 'gmailer'
|
6
6
|
|
7
7
|
module Net # :nodoc:
|
@@ -37,16 +37,21 @@ module Net # :nodoc:
|
|
37
37
|
# Files are versioned from newest-to-oldest, starting from this number.
|
38
38
|
MOST_RECENT_VERSION = 1
|
39
39
|
# Net::FS::Gmail version
|
40
|
-
VERSION = '0.0.
|
40
|
+
VERSION = '0.0.2'
|
41
41
|
|
42
42
|
#
|
43
43
|
# Create connection to Gmail. Returns Net::FS::Gmail object.
|
44
44
|
#
|
45
|
+
# Raises +RuntimeError+ when +user+ or +password+ is nil.
|
46
|
+
#
|
45
47
|
# Example:
|
46
48
|
# require 'net/fs/gmail'
|
47
49
|
# fs = Net::FS::Gmail.new('your.gmail.account', 'your password')
|
48
50
|
#
|
49
51
|
def initialize(user, password)
|
52
|
+
# Handle nil verification myself since gmailer currently does not do any verification
|
53
|
+
user.nil? && raise('nil user')
|
54
|
+
password.nil? && raise('nil password')
|
50
55
|
@gmail = GMailer.connect(user, password)
|
51
56
|
@user = user
|
52
57
|
end # def initialize(user, password)
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: net-fs-gmail
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.0.2
|
7
|
+
date: 2007-11-10 00:00:00 -06:00
|
8
8
|
summary: Store files on Gmail
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.1.
|
63
|
+
version: 0.1.9
|
64
64
|
version:
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
66
|
name: hoe
|