freya 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/freya.rb +6 -6
- data/lib/freya/version.rb +1 -1
- data/spec/freya_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee0cf741505e141c70e5588398c6485f55cb91fe
|
4
|
+
data.tar.gz: fa10cc2a0e74e6fa7d5f72a129e5c5b6e0b76afd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5449860e7dbb32aba3b5bced7fea1dbfc0c1ae9265d2581f681c068600b9b4f521e62692c84e76238f56f4e890b1ea442e958e7a3f2fc5dd798274b77641aa2
|
7
|
+
data.tar.gz: 8337a019c39a586bb10b4b1afa1111738fb0a962030cfe5d6f97d0804b52f5c49b6bc3d8331cce1ff81d19a4aa499ecbabef34c6713b5689141774b5af4c0a68
|
data/lib/freya.rb
CHANGED
@@ -26,12 +26,12 @@ module Freya
|
|
26
26
|
class Email
|
27
27
|
attr_accessor :name, :to, :subject, :cc, :bcc
|
28
28
|
|
29
|
-
def initialize(
|
30
|
-
@name = name
|
31
|
-
@to = to
|
32
|
-
@subject = subject
|
33
|
-
@cc = cc
|
34
|
-
@bcc = bcc
|
29
|
+
def initialize(options = {})
|
30
|
+
@name = options[:name]
|
31
|
+
@to = options[:to]
|
32
|
+
@subject = options[:subject]
|
33
|
+
@cc = options[:cc] || []
|
34
|
+
@bcc = options[:bcc] || []
|
35
35
|
end
|
36
36
|
|
37
37
|
def link
|
data/lib/freya/version.rb
CHANGED
data/spec/freya_spec.rb
CHANGED
@@ -57,7 +57,7 @@ describe Freya::Email do
|
|
57
57
|
|
58
58
|
describe '#bcc' do
|
59
59
|
it "doesn't contain #to email" do
|
60
|
-
Freya::Email.new(name: 'test_email', to: 'test@test.com',
|
60
|
+
Freya::Email.new(name: 'test_email', to: 'test@test.com', bcc: ['test@test.com', 'test1@test.com']).bcc.should eq(['test1@test.com'])
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|