messagebus-sdk 4.1.0 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![MB icon](https://www.messagebus.com/wp-content/themes/msg/images/Message-Bus_LOGO.png)
1
+ ![MB icon](https://www.messagebus.com/img/logo.png)
2
2
 
3
3
  ###Message Bus Ruby SDK
4
4
 
@@ -67,6 +67,7 @@ module MessagebusSDK
67
67
  endpoint_url = URI.parse(target_server)
68
68
  @http = Net::HTTP.new(endpoint_url.host, endpoint_url.port)
69
69
  @http.use_ssl = true
70
+ @http.read_timeout = 300
70
71
  @http
71
72
  end
72
73
 
@@ -13,7 +13,7 @@
13
13
  # under the License.
14
14
 
15
15
  module MessagebusSDK
16
- VERSION = "4.1.0"
16
+ VERSION = "4.1.1"
17
17
 
18
18
  class Info
19
19
  @@ClientVersion = MessagebusSDK::VERSION
@@ -51,29 +51,28 @@ class MessagebusTemplateClient < MessagebusSDK::MessagebusBase
51
51
  path = "#{@rest_endpoints[:templates]}"
52
52
  make_api_request(path)
53
53
  end
54
- end
55
54
 
56
- private
57
- def define_rest_endpoints
58
- {
59
- :template_version => "/api/v4/templates/version",
60
- :template => "/api/v4/template/%TEMPLATE_KEY%",
61
- :templates => "/api/v4/templates",
62
- :templates_send => "/api/v4/templates/email/send"
63
- }
64
- end
55
+ private
56
+ def define_rest_endpoints
57
+ {
58
+ :template_version => "/api/v4/templates/version",
59
+ :template => "/api/v4/template/%TEMPLATE_KEY%",
60
+ :templates => "/api/v4/templates",
61
+ :templates_send => "/api/v4/templates/email/send"
62
+ }
63
+ end
65
64
 
66
- def base_template_params
67
- {:toEmail => '',
68
- :fromEmail => '',
69
- :subject => '',
70
- :toName => '',
71
- :fromName => '',
72
- :returnPath => '',
73
- :plaintextBody => '',
74
- :htmlBody => '',
75
- :sessionKey => DEFAULT,
76
- :options => {},
77
- :customHeaders => {} }
65
+ def base_template_params
66
+ {:toEmail => '',
67
+ :fromEmail => '',
68
+ :subject => '',
69
+ :toName => '',
70
+ :fromName => '',
71
+ :returnPath => '',
72
+ :plaintextBody => '',
73
+ :htmlBody => '',
74
+ :sessionKey => DEFAULT,
75
+ :options => {},
76
+ :customHeaders => {} }
77
+ end
78
78
  end
79
-
data/spec/spec_helper.rb CHANGED
@@ -248,7 +248,6 @@ class MessageBusActionMailerTest < ActionMailer::Base
248
248
 
249
249
  def new_message(to_email, session_key, bcc = "", x_headers = {})
250
250
  headers[MessagebusSDK::MessagebusBase::HEADER_SESSION_KEY] = session_key
251
-
252
251
  x_headers.each do |key, value|
253
252
  headers[key] = value
254
253
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messagebus-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,9 +9,9 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-03 00:00:00.000000000 Z
12
+ date: 2013-07-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: SDK for Message Bus platform
14
+ description: SDK for Message Bus service
15
15
  email:
16
16
  - support@messagebus.com
17
17
  executables: []