sendhub 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/sendhub.rb +6 -5
  2. data/lib/sendhub/client.rb +1 -1
  3. metadata +3 -3
data/lib/sendhub.rb CHANGED
@@ -8,14 +8,15 @@ require 'json'
8
8
  module Sendhub
9
9
  end
10
10
 
11
+ require 'sendhub/http'
12
+ require 'sendhub/response'
13
+ require 'sendhub/client'
14
+
11
15
  if defined? Rails
12
16
  if Rails.version =~ /^2./
17
+ require 'action_mailer'
13
18
  require 'sendhub/rails2'
14
19
  elsif Rails.version =~ /^3./
15
20
  require 'sendhub/rails3'
16
21
  end
17
- end
18
-
19
- require 'sendhub/http'
20
- require 'sendhub/response'
21
- require 'sendhub/client'
22
+ end
@@ -1,7 +1,7 @@
1
1
  module Sendhub
2
2
  class Client
3
3
 
4
- VERSION = '0.1.6'
4
+ VERSION = '0.1.7'
5
5
 
6
6
  def initialize(config=nil)
7
7
  config[:host] ||= 'api.sendhub.net'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendhub
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Taylor