Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
------------

Expand Down Expand Up @@ -57,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
Expand Down
11 changes: 11 additions & 0 deletions lib/rev-api/models/order_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/rev-api/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Rev
VERSION = '2.5.0'
VERSION = '2.5.1'
end
2 changes: 1 addition & 1 deletion rev-api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down