quickmail 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quickmail.rb +1 -1
- data/lib/quickmail/authentication.rb +5 -5
- data/lib/quickmail/inventory.rb +1 -1
- data/lib/quickmail/order.rb +1 -1
- data/lib/quickmail/tracking.rb +1 -1
- data/lib/quickmail/version.rb +1 -1
- data/test/dummy/bin/spring +1 -1
- data/test/test_helper.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d48c9432f16fc04fa14d4c866e65bddfb3c5e554b6dd3ffb667c151253558243
|
4
|
+
data.tar.gz: 7257bf315c3f83936b17e33b1667a57894e066e25e1652ccd08f66769af5a04a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92b26f443a69706cd4224f267a384b685792051277ffa8d2f444f9650ae96b9cc5d033bc2fcf5d6a074f84704fa54a1ccbf9c0462c7e2d5f69adeaaef08bb91f
|
7
|
+
data.tar.gz: 3a137bbe5a1ecb07018a13590d2e18d521594721a15ac84b7d9e203e60e313aa04a3d7857ac6ac2f7bc4916f385647cc29d9df87d413a73ac3017b9e2b793d2d
|
data/lib/quickmail.rb
CHANGED
@@ -50,7 +50,7 @@ module Quickmail
|
|
50
50
|
Quickmail.test_mode ? "https://quickmailonline.com.au/api/test/" : "https://quickmailonline.com.au/api/"
|
51
51
|
end
|
52
52
|
|
53
|
-
def request(method, resource, params = {}, access_token=nil)
|
53
|
+
def request(method, resource, params = {}, access_token = nil)
|
54
54
|
ss_access_token = access_token || Quickmail.access_token
|
55
55
|
ss_api_version = Quickmail.api_version
|
56
56
|
|
@@ -6,11 +6,11 @@ module Quickmail
|
|
6
6
|
class << self
|
7
7
|
def oauth(payload = {})
|
8
8
|
RestClient::Request.new({
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
method: :post,
|
10
|
+
url: Quickmail.api_base + '/token',
|
11
|
+
payload: payload,
|
12
|
+
headers: {content_type: "application/x-www-form-urlencoded"}
|
13
|
+
}).execute do |response, request, result|
|
14
14
|
if response.code != 200
|
15
15
|
raise ApiRequestError.new(
|
16
16
|
response_code: response.code,
|
data/lib/quickmail/inventory.rb
CHANGED
data/lib/quickmail/order.rb
CHANGED
data/lib/quickmail/tracking.rb
CHANGED
data/lib/quickmail/version.rb
CHANGED
data/test/dummy/bin/spring
CHANGED
@@ -8,7 +8,7 @@ unless defined?(Spring)
|
|
8
8
|
require 'bundler'
|
9
9
|
|
10
10
|
lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
|
11
|
-
spring = lockfile.specs.detect {|spec| spec.name == "spring"}
|
11
|
+
spring = lockfile.specs.detect { |spec| spec.name == "spring" }
|
12
12
|
if spring
|
13
13
|
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
|
14
14
|
gem 'spring', spring.version
|
data/test/test_helper.rb
CHANGED
@@ -10,7 +10,7 @@ require "rails/test_help"
|
|
10
10
|
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
11
11
|
|
12
12
|
# Load support files
|
13
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
13
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
14
14
|
|
15
15
|
# Load fixtures from the engine
|
16
16
|
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|