cupid 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Send love, not war. This version of cupid can only work with ET SOAP API with s4.
4
4
 
5
+ Sponsored by Evil Martians <http://evilmartians.com>
6
+
5
7
  ## Usage
6
8
 
7
9
 
@@ -11,13 +13,13 @@ Send love, not war. This version of cupid can only work with ET SOAP API with s4
11
13
  Puts this line into `Gemfile` then run `$ bundle`:
12
14
 
13
15
  ``` ruby
14
- gem 'cupid', '0.0.1'
16
+ gem 'cupid', '0.0.2'
15
17
  ```
16
18
 
17
19
  Or if you are old-school Rails 2 developer put this into `config/environment.rb` and run `$ rake gems:install`:
18
20
 
19
21
  ``` ruby
20
- config.gem 'cupid', :version => '0.0.1'
22
+ config.gem 'cupid', :version => '0.0.2'
21
23
  ```
22
24
 
23
25
  Or manually install cupid gem: `$ gem install cupid`
@@ -30,7 +32,7 @@ Or manually install cupid gem: `$ gem install cupid`
30
32
 
31
33
  The MIT License
32
34
 
33
- Copyright (c) 2011 gazay
35
+ Copyright (c) 2011 Alexey Gaziev <gazay@evilmartians.com>
34
36
 
35
37
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
36
38
 
data/cupid.gemspec CHANGED
@@ -14,6 +14,10 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = "cupid"
16
16
 
17
+ s.add_dependency("builder", ">= 2.1.2")
18
+ s.add_dependency("nokogiri", ">= 1.4.1")
19
+ s.add_dependency("savon", ">= 0.9.0")
20
+
17
21
  s.files = `git ls-files`.split("\n")
18
22
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
23
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
@@ -1,9 +1,7 @@
1
1
  require 'erb'
2
2
  require 'uri'
3
3
  require 'savon'
4
- require 'logger'
5
4
  require 'builder'
6
- require 'net/https'
7
5
  require 'nokogiri'
8
6
  require 'cupid/session'
9
7
 
@@ -1,6 +1,6 @@
1
1
  module Cupid
2
2
  class Session
3
- def retreive_email_folders(account)
3
+ def retrieve_email_folders(account)
4
4
  soap_body = '<RetrieveRequest>
5
5
  <ClientIDs>
6
6
  <ID>' + account.to_s + '</ID>
@@ -24,7 +24,7 @@ module Cupid
24
24
 
25
25
  def create_email(subject, body, *args)
26
26
  options = args.extract_options!
27
- options[:subject] = subject.to_s
27
+ options[:subject] = CGI.escapeHTML subject.to_s
28
28
  options[:body] = CGI.escapeHTML body.to_s
29
29
 
30
30
  options[:email_type] = 'HTML'
data/lib/cupid/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cupid
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cupid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - gazay
@@ -16,8 +16,55 @@ bindir: bin
16
16
  cert_chain: []
17
17
 
18
18
  date: 2011-08-01 00:00:00 Z
19
- dependencies: []
20
-
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: builder
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 15
29
+ segments:
30
+ - 2
31
+ - 1
32
+ - 2
33
+ version: 2.1.2
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: nokogiri
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 5
45
+ segments:
46
+ - 1
47
+ - 4
48
+ - 1
49
+ version: 1.4.1
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: savon
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 59
61
+ segments:
62
+ - 0
63
+ - 9
64
+ - 0
65
+ version: 0.9.0
66
+ type: :runtime
67
+ version_requirements: *id003
21
68
  description: Send love, not war. This version of cupid can only work with ET SOAP API with s4.
22
69
  email:
23
70
  - gazay@evilmartians.com