sendgrid-ruby 4.1.1 → 4.2.0

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: f39be2b634f5fb0d460ff9f75ff5058708cde4bf
4
- data.tar.gz: 1142a07cbd221f64fc6c05f078ce56bc4cb60ca3
3
+ metadata.gz: 65e1e76da22c9fe7be7a03f415d7bd8664fc2618
4
+ data.tar.gz: 5179dd042fba64eced6f9e70abdfc542eb827e0f
5
5
  SHA512:
6
- metadata.gz: 0cda122625beed1d8d35d40ca59cd523138130e2196989af473dbefb607fe43eab95eb718049ca8c0c126f81363f9ccd307dd7d7ea3076eea8c6062d62d0986c
7
- data.tar.gz: de3e1ec0dd7eb55b32a25ed2d04f2965415e4a16f90d2329693b65b430db1aff92684a3c6396f9e8a22f68c98ada1bccd7f06ae685989ac10a48d2b8eab2d567
6
+ metadata.gz: aab1b549e49661d83aff0a81489fce379ef2f1587979cab7c31f103edf77a208c93237308837acdda882205d55b68f288c313e7b19d9bf687e363605d02f083f
7
+ data.tar.gz: 5ae32bc2057d8941b9c8e3e3118ad254e4297dedabc9be80f9cc6aa5452e8c1daf4c7bcea3914e6cdfa2533c8dfeafc4efd76d05a5294a9dc2ddf836a8539764
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [4.2.0] - 2016-4-10 ##
5
+ ### Added
6
+ - #148: Set api_key to empty string
7
+ - This makes creating an API key for a SendGrid subuser who does not have an API key easier. See #146 for details
8
+ - Thanks to [Adam Beck](https://github.com/Gwash3189) for the pull request!
9
+
4
10
  ## [4.1.1] - 2016-4-6 ##
5
11
  ### Fixed
6
12
  - #115 #134: Fix typos in initialize methods
data/README.md CHANGED
@@ -30,7 +30,7 @@ We appreciate your continued support, thank you!
30
30
 
31
31
  ## Prerequisites
32
32
 
33
- - Ruby version 2.1+
33
+ - Ruby version 2.2+
34
34
  - The SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-ruby)
35
35
 
36
36
  ## Setup Environment Variables
@@ -14,7 +14,7 @@ module SendGrid
14
14
  # - +version+ -> the version of the API you wish to access,
15
15
  # currently only "v3" is supported
16
16
  #
17
- def initialize(api_key: nil, host: nil, request_headers: nil, version: nil)
17
+ def initialize(api_key: '', host: nil, request_headers: nil, version: nil)
18
18
  @api_key = api_key
19
19
  @host = host ? host : 'https://api.sendgrid.com'
20
20
  @version = version ? version : 'v3'
@@ -1,3 +1,3 @@
1
1
  module SendGrid
2
- VERSION = '4.1.1'
2
+ VERSION = '4.2.0'
3
3
  end
@@ -13,7 +13,7 @@ class TestAPI < MiniTest::Test
13
13
  IO.popen(['curl', '-s', 'https://raw.githubusercontent.com/stoplightio/prism/master/install.sh']) do |io|
14
14
  out = io.read
15
15
  unless system(out)
16
- puts "Error downloading the prism binary, you can try downloading directly here (https://github.com/stoplightio/prism/releases) and place in your /user/local/bin directory, #{out}"
16
+ puts "Error downloading the prism binary, you can try downloading directly here (https://github.com/stoplightio/prism/releases) and place in your /usr/local/bin directory, #{out}"
17
17
  exit
18
18
  end
19
19
  end
@@ -55,7 +55,7 @@ class TestAPI < MiniTest::Test
55
55
  ')
56
56
  assert_equal(test_headers, sg.request_headers)
57
57
  assert_equal("v3", sg.version)
58
- assert_equal("4.1.1", SendGrid::VERSION)
58
+ assert_equal("4.2.0", SendGrid::VERSION)
59
59
  assert_instance_of(SendGrid::Client, sg.client)
60
60
  end
61
61
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendgrid-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elmer Thomas
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-04-06 00:00:00.000000000 Z
13
+ date: 2017-04-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ruby_http_client