sendhub 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/sendhub.rb CHANGED
@@ -8,7 +8,11 @@ require 'json'
8
8
  module Sendhub
9
9
  end
10
10
 
11
- require 'sendhub/rails'
11
+ if ENV['RAILS_ENV']
12
+ require 'action_mailer'
13
+ require 'sendhub/rails'
14
+ end
15
+
12
16
  require 'sendhub/http'
13
17
  require 'sendhub/response'
14
18
  require 'sendhub/client'
data/lib/sendhub/http.rb CHANGED
@@ -20,8 +20,6 @@ module Sendhub
20
20
  options.merge!(:unique => Time.now.utc.to_i)
21
21
  options.merge!(:secret => securely_hash_data(options[:unique]))
22
22
 
23
- puts "Path: #{path}"
24
-
25
23
  #if ssl?
26
24
  #connection.use_ssl = true
27
25
  #connection.verify_mode = OpenSSL::SSL::VERIFY_PEER
data/lib/sendhub/rails.rb CHANGED
@@ -1,5 +1,3 @@
1
- require 'action_mailer'
2
-
3
1
  module SendhubMethods
4
2
  def perform_delivery_sendhub(message)
5
3
  client = Sendhub::Client.new(
@@ -12,8 +10,6 @@ module SendhubMethods
12
10
  :subject => message.subject,
13
11
  :body => message.body
14
12
  )
15
-
16
- puts res.inspect
17
13
  end
18
14
 
19
15
  def tag(value)
@@ -45,6 +41,5 @@ module SendhubMethods
45
41
  end
46
42
 
47
43
  class ActionMailer::Base
48
- puts "***** MOOOOO *****"
49
44
  include SendhubMethods
50
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendhub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Taylor
@@ -9,10 +9,19 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-08-09 00:00:00 +01:00
12
+ date: 2010-08-10 00:00:00 +01:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: json
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.1.9
24
+ version:
16
25
  description: sendhub is a Ruby client library for SendHub.net.
17
26
  email: moomerman@gmail.com
18
27
  executables: []
@@ -56,7 +65,7 @@ requirements: []
56
65
  rubyforge_project: sendhub
57
66
  rubygems_version: 1.3.5
58
67
  signing_key:
59
- specification_version: 3
68
+ specification_version: 2
60
69
  summary: sendhub is a Ruby client library for SendHub.net.
61
70
  test_files: []
62
71