From 92ee94778de29a8a290d2a3ad489711ebd46a122 Mon Sep 17 00:00:00 2001 From: farther Date: Tue, 5 Apr 2022 17:28:15 +0300 Subject: [PATCH 1/4] added sandbox_mode --- lib/rev-api/models/order_request.rb | 11 +++++++++++ rev-api.gemspec | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/rev-api/models/order_request.rb b/lib/rev-api/models/order_request.rb index 32f435b..193c739 100644 --- a/lib/rev-api/models/order_request.rb +++ b/lib/rev-api/models/order_request.rb @@ -13,6 +13,9 @@ module Rev SPEAKER_ENTRY_LENGTH_LIMIT = 15 class OrderRequest < ApiSerializable + # see {Rev::SandboxMode} + attr_reader :sandbox_mode + # see {Rev::Payment} attr_reader :payment @@ -48,6 +51,14 @@ def initialize(fields = {}) end end + class SandboxMode + attr_reader :sandbox_mode + + def initialize(sandbox_mode = false) + @sandbox_mode = sandbox_mode + end + end + # Payment Info. Payment can only be done by debiting the user's account balance. # @deprecated setting the payment is no longer necessary. All orders now default to :account_balance class Payment < ApiSerializable diff --git a/rev-api.gemspec b/rev-api.gemspec index 9ad0b52..593b7a7 100644 --- a/rev-api.gemspec +++ b/rev-api.gemspec @@ -19,7 +19,7 @@ Gem::Specification.new do |s| s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = [ "lib", "spec" ] - s.add_runtime_dependency('httparty', '~> 0.11', '~> 0.11.0') + s.add_runtime_dependency('httparty', '>= 0.11', '~> 0.11.0') s.add_development_dependency('webmock', '~> 1.11', '~> 1.11.0') s.add_development_dependency('vcr', '~> 2.6', '~> 2.6.0') From cdb7e9477337f982d2bf550539d415c51de2dd60 Mon Sep 17 00:00:00 2001 From: farther Date: Tue, 5 Apr 2022 17:29:30 +0300 Subject: [PATCH 2/4] added sandbox_mode --- lib/rev-api/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rev-api/version.rb b/lib/rev-api/version.rb index 6ee31df..2d9f114 100644 --- a/lib/rev-api/version.rb +++ b/lib/rev-api/version.rb @@ -1,3 +1,3 @@ module Rev - VERSION = '2.5.0' + VERSION = '2.5.1' end From 5143d26ab46a3b21cc55c2f69a3327825fa51c29 Mon Sep 17 00:00:00 2001 From: farther Date: Tue, 5 Apr 2022 17:35:13 +0300 Subject: [PATCH 3/4] ver --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 5ea5af2..f7dc094 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,4 @@ -[![Gem Version](https://badge.fury.io/rb/rev-api.png)](http://badge.fury.io/rb/rev-api) -[![Build Status](https://secure.travis-ci.org/revdotcom/rev-ruby-sdk.png?branch=master)](https://secure.travis-ci.org/revdotcom/rev-ruby-sdk) -[![Dependency Status](https://gemnasium.com/revdotcom/rev-ruby-sdk.png?travis)](https://gemnasium.com/revdotcom/rev-ruby-sdk) -[![Code Climate](https://codeclimate.com/github/revdotcom/rev-ruby-sdk.png)](https://codeclimate.com/github/revdotcom/rev-ruby-sdk) - -[Reference](https://www.rev.com/api/docs) | [RDocs](http://rubydoc.info/github/revdotcom/rev-ruby-sdk/master/frames) - +ver 2.5.1 rev-ruby-sdk ------------ From 36167a0da338759a023af765971dcb877de08177 Mon Sep 17 00:00:00 2001 From: farther Date: Tue, 5 Apr 2022 17:41:58 +0300 Subject: [PATCH 4/4] PRODUCTION_HOST --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f7dc094..f8cb3c1 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ initialize the client this way: ```ruby require 'rev-api' -rev_client = Rev.new('your_client_key', 'your_user_key', Rev::Api::SANDBOX_HOST) +rev_client = Rev.new('your_client_key', 'your_user_key', Rev::Api::PRODUCTION_HOST) ``` ### Usage