postmark 1.7.0 → 1.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55e9f7a191eaed08f4f65b7291d679dbba6665bf
4
- data.tar.gz: 04cba05dd0d1f5a872a4b408d9ffb0d10511e782
3
+ metadata.gz: 8b6ee89865d8cde0823c77c487163bf21dfabb05
4
+ data.tar.gz: 44a1f152f892ca15636246681afa18f2c17790ab
5
5
  SHA512:
6
- metadata.gz: ff849c87686ddf3eae5af58661de0c43888d1e82910081b1c07ac4bc6d8f44a29a18b9e6938c5db020c46145d36dbd35b71bec24383ead16e991757f99829868
7
- data.tar.gz: 77eaa67674a06887f47584485cfa2e6666d5c6d1f3dd75f969d5af97c38cccbe7109c303cc56aba21d90fc4adc641aaef606e2cb27d014f04012e4f471d5e24d
6
+ metadata.gz: debf5072fefde22657302ea4bf137d33f8648d651e9ed07d8549fcb0b0663926ea7615b2dd109679945c0345e905a06a233bf39aebda4cafa28ec355aefa4263
7
+ data.tar.gz: 56a4e7a8721f3771f248f5b2152b6d403eaa58ceb7a0fb9c9506c170652ca9dfcf450334b247e4ea62fdeba1ea4f41f4ebb524f26942114078e44b3d70965567
@@ -11,4 +11,7 @@ rvm:
11
11
  - 2.1.6
12
12
  - 2.2.2
13
13
  - jruby-19mode
14
- script: bundle exec rake spec
14
+ script: bundle exec rake spec
15
+ before_install:
16
+ - gem update --system
17
+ - gem install bundler
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 1.7.1
4
+
5
+ * Explicitly set TLS version used by the client.
6
+
3
7
  == 1.7.0
4
8
 
5
9
  * Add methods to access stats API endpoints.
data/README.md CHANGED
@@ -566,7 +566,7 @@ If you ever need to access your messages or their metadata (i.e. open tracking i
566
566
 
567
567
  ## The Stats API Support
568
568
 
569
- [The Stats API](https://github.com/wildbit/postmark-gem/wiki/) can be used to access statistics on your emails sent by date and tag.
569
+ [The Stats API](https://github.com/wildbit/postmark-gem/wiki/The-Stats-API-support) can be used to access statistics on your emails sent by date and tag.
570
570
 
571
571
 
572
572
  ## ActiveModel-like Interface For Bounces
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 1.7.1
@@ -105,6 +105,7 @@ module Postmark
105
105
  http.read_timeout = self.http_read_timeout
106
106
  http.open_timeout = self.http_open_timeout
107
107
  http.use_ssl = !!self.secure
108
+ http.ssl_version = :TLSv1 if http.respond_to?(:ssl_version=)
108
109
  http
109
110
  end
110
111
 
@@ -1,3 +1,3 @@
1
1
  module Postmark
2
- VERSION = '1.7.0'
2
+ VERSION = '1.7.1'
3
3
  end
@@ -40,6 +40,11 @@ describe Postmark::HttpClient do
40
40
  its(:path_prefix) { should eq '/' }
41
41
  its(:http_read_timeout) { should eq 15 }
42
42
  its(:http_open_timeout) { should eq 5 }
43
+
44
+ it 'uses TLS encryption', :skip_ruby_version => ['1.8.7'] do
45
+ http_client = subject.http
46
+ http_client.ssl_version.should == :TLSv1
47
+ end
43
48
  end
44
49
 
45
50
  context "when it is created with options" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petyo Ivanov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-09-18 00:00:00.000000000 Z
13
+ date: 2016-02-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -141,31 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: 1.3.7
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.4.6
144
+ rubygems_version: 2.4.5
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Official Postmark API wrapper.
148
- test_files:
149
- - spec/data/empty.gif
150
- - spec/integration/account_api_client_spec.rb
151
- - spec/integration/api_client_hashes_spec.rb
152
- - spec/integration/api_client_messages_spec.rb
153
- - spec/integration/api_client_resources_spec.rb
154
- - spec/integration/mail_delivery_method_spec.rb
155
- - spec/spec_helper.rb
156
- - spec/support/helpers.rb
157
- - spec/support/shared_examples.rb
158
- - spec/unit/postmark/account_api_client_spec.rb
159
- - spec/unit/postmark/api_client_spec.rb
160
- - spec/unit/postmark/bounce_spec.rb
161
- - spec/unit/postmark/client_spec.rb
162
- - spec/unit/postmark/handlers/mail_spec.rb
163
- - spec/unit/postmark/helpers/hash_helper_spec.rb
164
- - spec/unit/postmark/helpers/message_helper_spec.rb
165
- - spec/unit/postmark/http_client_spec.rb
166
- - spec/unit/postmark/inbound_spec.rb
167
- - spec/unit/postmark/inflector_spec.rb
168
- - spec/unit/postmark/json_spec.rb
169
- - spec/unit/postmark/mail_message_converter_spec.rb
170
- - spec/unit/postmark/message_extensions/mail_spec.rb
171
- - spec/unit/postmark_spec.rb
148
+ test_files: []