smtpapi 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cfadad7d143f8bd4779dbaa69ca7984e94b96c5
4
- data.tar.gz: a3ab66492b1e4eef04366ef63aeb6ee198e54425
3
+ metadata.gz: a0043c8ac0083fe2af73989b278f8d35437204b8
4
+ data.tar.gz: 7d31d3e34e64a8dcac7fcb8925f7034e718127ee
5
5
  SHA512:
6
- metadata.gz: 443de226c3d26e8c5eb402dc1d3f8b5e1af49833f10c48ff40d4ef6dd9feb1235c6b438f9fccc1458df14db963f336a82e9078d4932295c6417772caa8385ec1
7
- data.tar.gz: 65ea72d92c5a802e346323f8ab8d0daae5fc1f1aa523cecefa29e8e4ded7a4cc4474b8af5b7b22716c656a28fd532e7ea4df50e255d92e3bb7040d5bec9f4a63
6
+ metadata.gz: bef30f02b5936961dadb844ea916320cfc318dde0133da4001214925cb295d2dbda1974df7d03c2365477b0691711692c2700f09ee86e3acecec9e4a263c8a45
7
+ data.tar.gz: 2068c1b27e55032e2bdae4664b8648ca31041a338bc976a5915b47c61e1e01080f5e41b3cb2ade497002f5bcd30a09e307f80982c21043f747475597b3d33d99
data/.travis.yml CHANGED
@@ -8,8 +8,3 @@ before_script:
8
8
  - bundle install
9
9
  script:
10
10
  - rake test
11
- notifications:
12
- emails:
13
- - awwa500@gmail.com
14
- on_success: always
15
- on_failure: always
data/lib/smtpapi.rb CHANGED
@@ -96,6 +96,7 @@ module Smtpapi
96
96
  def json_string
97
97
  escape_unicode(self.to_array.to_json)
98
98
  end
99
+ alias_method :to_json, :json_string
99
100
 
100
101
  def escape_unicode(str)
101
102
  str.unpack('U*').map{|i| i > 127 ? "\\u#{i.to_s(16)}" : i.chr("UTF-8")}.join
@@ -1,3 +1,3 @@
1
1
  module Smtpapi
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/test/test.rb CHANGED
@@ -5,7 +5,7 @@ require "./lib/smtpapi"
5
5
  class SmtpapiTest < Test::Unit::TestCase
6
6
 
7
7
  def test_version
8
- assert_equal("0.0.2", Smtpapi::VERSION)
8
+ assert_equal("0.0.3", Smtpapi::VERSION)
9
9
  end
10
10
 
11
11
  def test_empty
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smtpapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wataru Sato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-22 00:00:00.000000000 Z
11
+ date: 2014-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,10 +75,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.2.1
78
+ rubygems_version: 2.2.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Smtpapi library for SendGrid.
82
82
  test_files:
83
83
  - test/test.rb
84
- has_rdoc: