freya 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fc9ef92126d653689016e27f7a14ad46506e9ea
4
- data.tar.gz: 305a808c52b256a5057bb4a70e3b893dd49512a4
3
+ metadata.gz: c5b4b5265e572d4f48040c32f4574b5154e9d3f3
4
+ data.tar.gz: dc6c7ceb059acf6b63c841f9ed45b4ebc5ec888f
5
5
  SHA512:
6
- metadata.gz: 63ef481e57a9ab327484bb5eb0fe363f3738c2d1c8429d9eefe1ba2bc83bbfb90c74b3a2b938121a6f8290f12cb0f52ba10a283d4be0ca220f9a44753ca91ea4
7
- data.tar.gz: dd71c683cba499f6c26628194c81fc2e36f4dc0f07ac10468abdfc535f86516a48c4baa1166bc349a613e121eef98af58f52622d1cfbae501de62eb7b693fc3e
6
+ metadata.gz: 6a1f1ace562115e7be0029a2dd69f2848771c40fb9a60c97d5fcbf17b80192fa2a40843a246680a34c0f0a8099a78832091c9f2ef2d8a801da128078f762be86
7
+ data.tar.gz: 4bd964421cbb38696390c3b37f7e019279cb6d2744ea020e70434251f53597e70c6b051afbf0b20008dbed373ecbd6fca21481ee0fb35fdd9f9829a6bc231e58
@@ -28,7 +28,7 @@ module Freya
28
28
  def link
29
29
  URI::MailTo.build({ to: to, headers: [
30
30
  ['subject', URI.escape(subject)], ['body', URI.escape(body)], *cc.map { |email| ['cc', email] }
31
- ] }).to_s
31
+ ] }).opaque
32
32
  end
33
33
 
34
34
  def body
@@ -1,3 +1,3 @@
1
1
  module Freya
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -21,7 +21,7 @@ describe Freya::Email do
21
21
  describe '#link' do
22
22
  it 'builds a mail link with options like to, cc and the email body' do
23
23
  Freya::Email.new(name: 'test_email', subject: 'subject', to: 'test@test.com', cc: ['test1@test.com', 'test2@test.com']).link.should eq(
24
- 'mailto:test@test.com?subject=subject&body=This%20is%20the%20test%20email&cc=test1@test.com&cc=test2@test.com'
24
+ 'test@test.com?subject=subject&body=This%20is%20the%20test%20email&cc=test1@test.com&cc=test2@test.com'
25
25
  )
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Depalo