ez-email 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.2 - 31-Aug-2011
2
+ * Refactored the Rakefile. Removed the old install task, added a clean
3
+ task, added a default task, and reorganized the gem tasks.
4
+
1
5
  == 0.1.1 - 27-Sep-2009
2
6
  * Changed license to Artistic 2.0.
3
7
  * The mail host now defaults to localhost if the mailhost cannot be resolved.
data/README CHANGED
@@ -1,6 +1,9 @@
1
1
  = Description
2
2
  A very easy interface for sending simple text based emails.
3
3
 
4
+ = Installation
5
+ gem install ez-email
6
+
4
7
  = Synopsis
5
8
  require 'ez/email'
6
9
 
@@ -10,10 +13,6 @@
10
13
  :subject => 'Hello',
11
14
  :body => 'How are you?'
12
15
  )
13
-
14
- = Installation
15
- gem install ez-email (rubygems)
16
- rake install (manual installation)
17
16
 
18
17
  = Rationale
19
18
  The present batch of email handling libraries are either not designed
@@ -28,10 +27,10 @@
28
27
  http://www.rubyforge.org/projects/shards.
29
28
 
30
29
  = License
31
- Ruby's
30
+ Artistic 2.0
32
31
 
33
32
  = Copyright
34
- (C) 2009, Daniel J. Berger, All Rights Reserved
33
+ (C) 2009-2011, Daniel J. Berger, All Rights Reserved
35
34
 
36
35
  = Author
37
- Daniel Berger
36
+ Daniel Berger
data/Rakefile CHANGED
@@ -1,39 +1,26 @@
1
1
  require 'rake'
2
+ require 'rake/clean'
2
3
  require 'rake/testtask'
3
4
 
4
- desc "Cleanup .test-result files if present"
5
- task :clean do
6
- rm_rf '.test-result' if File.exists?('.test-result')
5
+ CLEAN.include("**/*.gem", "**/*.rbc")
7
6
 
8
- Dir.foreach(Dir.pwd){ |file|
9
- if File.directory?(file)
10
- Dir.chdir(file){
11
- rm_rf '.test-result' if File.exists?('.test-result')
12
- }
13
- end
14
- }
15
- end
16
-
17
- desc "Install the ez-email library (non-gem)"
18
- task :install do
19
- dest = File.join(Config::CONFIG['sitelibdir'], 'file')
20
- Dir.mkdir(dest) unless File.exists? dest
21
- cp 'lib/file/find.rb', dest, :verbose => true
22
- end
7
+ namespace :gem do
8
+ desc 'Build the ez-email gem'
9
+ task :create => [:clean] do
10
+ spec = eval(IO.read('ez-email.gemspec'))
11
+ Gem::Builder.new(spec).build
12
+ end
23
13
 
24
- desc 'Build the ez-email gem'
25
- task :gem do
26
- spec = eval(IO.read('ez-email.gemspec'))
27
- Gem::Builder.new(spec).build
28
- end
29
-
30
- desc "Install the ez-email package as a gem"
31
- task :install_gem => [:gem] do
32
- file = Dir["*.gem"].first
33
- sh "gem install #{file}"
14
+ desc "Install the ez-email package as a gem"
15
+ task :install => [:create] do
16
+ file = Dir["*.gem"].first
17
+ sh "gem install #{file}"
18
+ end
34
19
  end
35
20
 
36
21
  Rake::TestTask.new do |t|
37
- t.warning = true
38
- t.verbose = true
22
+ t.warning = true
23
+ t.verbose = true
39
24
  end
25
+
26
+ task :default => :test
data/ez-email.gemspec CHANGED
@@ -1,18 +1,17 @@
1
1
  require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = 'ez-email'
5
- s.version = '0.1.1'
6
- s.license = 'Artistic 2.0'
7
- s.summary = 'Really easy emails'
8
- s.description = 'A very simple interface for sending email'
9
- s.author = 'Daniel Berger'
10
- s.email = 'djberg96@gmail.com'
11
- s.homepage = 'http://www.rubyforge.org/projects/shards'
12
- s.files = Dir['**/*'].reject{ |f| f.include?('CVS') }
13
- s.test_file = 'test/test_ez_email.rb'
14
- s.has_rdoc = true
15
-
16
- s.rubyforge_project = 'shards'
17
- s.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
4
+ s.name = 'ez-email'
5
+ s.version = '0.1.2'
6
+ s.license = 'Artistic 2.0'
7
+ s.summary = 'Really easy emails'
8
+ s.description = 'A very simple interface for sending email'
9
+ s.author = 'Daniel Berger'
10
+ s.email = 'djberg96@gmail.com'
11
+ s.homepage = 'http://www.rubyforge.org/projects/shards'
12
+ s.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
+ s.test_file = 'test/test_ez_email.rb'
14
+
15
+ s.rubyforge_project = 'shards'
16
+ s.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
18
17
  end
data/lib/ez/email.rb CHANGED
@@ -10,7 +10,7 @@ module EZ
10
10
  # used to send simple emails.
11
11
  class Email
12
12
  # The version of the ez-email library
13
- VERSION = '0.1.1'
13
+ VERSION = '0.1.2'
14
14
 
15
15
  begin
16
16
  @@mail_host = Resolv.getaddress('mailhost')
@@ -18,7 +18,7 @@ class TC_EZ_Email < Test::Unit::TestCase
18
18
  end
19
19
 
20
20
  def test_version
21
- assert_equal('0.1.1', EZ::Email::VERSION)
21
+ assert_equal('0.1.2', EZ::Email::VERSION)
22
22
  end
23
23
 
24
24
  def test_to
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ez-email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ hash: 31
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 2
10
+ version: 0.1.2
5
11
  platform: ruby
6
12
  authors:
7
13
  - Daniel Berger
@@ -9,8 +15,7 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-09-27 00:00:00 -06:00
13
- default_executable:
18
+ date: 2011-09-01 00:00:00 Z
14
19
  dependencies: []
15
20
 
16
21
  description: A very simple interface for sending email
@@ -31,7 +36,6 @@ files:
31
36
  - Rakefile
32
37
  - README
33
38
  - test/test_ez_email.rb
34
- has_rdoc: true
35
39
  homepage: http://www.rubyforge.org/projects/shards
36
40
  licenses:
37
41
  - Artistic 2.0
@@ -41,21 +45,27 @@ rdoc_options: []
41
45
  require_paths:
42
46
  - lib
43
47
  required_ruby_version: !ruby/object:Gem::Requirement
48
+ none: false
44
49
  requirements:
45
50
  - - ">="
46
51
  - !ruby/object:Gem::Version
52
+ hash: 3
53
+ segments:
54
+ - 0
47
55
  version: "0"
48
- version:
49
56
  required_rubygems_version: !ruby/object:Gem::Requirement
57
+ none: false
50
58
  requirements:
51
59
  - - ">="
52
60
  - !ruby/object:Gem::Version
61
+ hash: 3
62
+ segments:
63
+ - 0
53
64
  version: "0"
54
- version:
55
65
  requirements: []
56
66
 
57
67
  rubyforge_project: shards
58
- rubygems_version: 1.3.5
68
+ rubygems_version: 1.8.10
59
69
  signing_key:
60
70
  specification_version: 3
61
71
  summary: Really easy emails