malone 0.0.2 → 0.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/malone.rb +2 -3
- data/test/helper.rb +3 -12
- metadata +44 -68
data/lib/malone.rb
CHANGED
@@ -3,8 +3,6 @@ require "ostruct"
|
|
3
3
|
require "mailfactory"
|
4
4
|
|
5
5
|
class Malone
|
6
|
-
VERSION = "0.0.2"
|
7
|
-
|
8
6
|
attr :envelope
|
9
7
|
|
10
8
|
def self.deliver(params = {})
|
@@ -23,7 +21,8 @@ class Malone
|
|
23
21
|
@envelope = MailFactory.new
|
24
22
|
@envelope.from = params[:from]
|
25
23
|
@envelope.to = params[:to]
|
26
|
-
@envelope.text = params[:
|
24
|
+
@envelope.text = params[:text]
|
25
|
+
@envelope.html = params[:html] if params[:html]
|
27
26
|
@envelope.subject = params[:subject]
|
28
27
|
end
|
29
28
|
|
data/test/helper.rb
CHANGED
@@ -17,7 +17,7 @@ class FlexMock
|
|
17
17
|
end
|
18
18
|
|
19
19
|
class AssertionFailedError < StandardError; end
|
20
|
-
|
20
|
+
|
21
21
|
def assertion_failed_error
|
22
22
|
Cutest::AssertionFailed
|
23
23
|
end
|
@@ -39,15 +39,6 @@ end
|
|
39
39
|
class Cutest::Scope
|
40
40
|
include FlexMock::ArgumentTypes
|
41
41
|
include FlexMock::MockContainer
|
42
|
-
|
43
|
-
include Cutest::Flexmocked
|
44
|
-
end
|
45
|
-
|
46
|
-
module Kernel
|
47
|
-
def flunk(offset = 1)
|
48
|
-
exception = Cutest::AssertionFailed.new
|
49
|
-
exception.set_backtrace([caller[offset]])
|
50
42
|
|
51
|
-
|
52
|
-
|
53
|
-
end
|
43
|
+
include Cutest::Flexmocked
|
44
|
+
end
|
metadata
CHANGED
@@ -1,70 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: malone
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
version: 0.0.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0.rc1
|
5
|
+
prerelease: 6
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Cyril David
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-01-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: mailfactory
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2151851760 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 0
|
30
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
31
22
|
type: :runtime
|
32
|
-
version_requirements: *id001
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: cutest
|
35
23
|
prerelease: false
|
36
|
-
|
24
|
+
version_requirements: *2151851760
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: cutest
|
27
|
+
requirement: &2151851120 !ruby/object:Gem::Requirement
|
37
28
|
none: false
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
- 0
|
43
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
44
33
|
type: :development
|
45
|
-
version_requirements: *id002
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: flexmock
|
48
34
|
prerelease: false
|
49
|
-
|
35
|
+
version_requirements: *2151851120
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: flexmock
|
38
|
+
requirement: &2151850660 !ruby/object:Gem::Requirement
|
50
39
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
- 0
|
56
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
57
44
|
type: :development
|
58
|
-
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2151850660
|
59
47
|
description:
|
60
48
|
email: cyx@pipetodevnull.com
|
61
49
|
executables: []
|
62
|
-
|
63
50
|
extensions: []
|
64
|
-
|
65
51
|
extra_rdoc_files: []
|
66
|
-
|
67
|
-
files:
|
52
|
+
files:
|
68
53
|
- lib/malone/sandbox.rb
|
69
54
|
- lib/malone.rb
|
70
55
|
- README.markdown
|
@@ -72,37 +57,28 @@ files:
|
|
72
57
|
- test/helper.rb
|
73
58
|
- test/malone.rb
|
74
59
|
- test/sandbox.rb
|
75
|
-
has_rdoc: true
|
76
60
|
homepage: http://github.com/cyx/malone
|
77
61
|
licenses: []
|
78
|
-
|
79
62
|
post_install_message:
|
80
63
|
rdoc_options: []
|
81
|
-
|
82
|
-
require_paths:
|
64
|
+
require_paths:
|
83
65
|
- lib
|
84
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
67
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
|
90
|
-
|
91
|
-
version: "0"
|
92
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
73
|
none: false
|
94
|
-
requirements:
|
95
|
-
- -
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
|
98
|
-
- 0
|
99
|
-
version: "0"
|
74
|
+
requirements:
|
75
|
+
- - ! '>'
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.3.1
|
100
78
|
requirements: []
|
101
|
-
|
102
79
|
rubyforge_project:
|
103
|
-
rubygems_version: 1.
|
80
|
+
rubygems_version: 1.8.11
|
104
81
|
signing_key:
|
105
82
|
specification_version: 2
|
106
83
|
summary: Dead-simple Ruby mailing solution which always delivers.
|
107
84
|
test_files: []
|
108
|
-
|