securetrading 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +13 -0
- data/.gitignore +13 -0
- data/.rspec +2 -0
- data/.rubocop.yml +9 -0
- data/.travis.yml +13 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/Guardfile +27 -0
- data/LICENSE.md +21 -0
- data/README.md +92 -0
- data/Rakefile +6 -0
- data/bin/_guard-core +16 -0
- data/bin/console +14 -0
- data/bin/guard +16 -0
- data/bin/setup +7 -0
- data/lib/securetrading.rb +27 -0
- data/lib/securetrading/configuration.rb +21 -0
- data/lib/securetrading/connection.rb +26 -0
- data/lib/securetrading/refund.rb +51 -0
- data/lib/securetrading/version.rb +3 -0
- data/lib/securetrading/xml_doc.rb +59 -0
- data/securetrading.gemspec +32 -0
- metadata +206 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 267c87fa55b87574dfa58dea6a4da76083a27bd4
|
4
|
+
data.tar.gz: bcbf98e2f5be0cd29a71bc99e8eb87d6ae0cb994
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bbd79a4d7f3700ae3da76a66027ab92dbce3a90ecb00fe12e62262fb1024f4c4af4d5b09ceffeeea4051fc292a2bcb10e33bccd32d03bf9ef920dd296c346135
|
7
|
+
data.tar.gz: eff794acdbf6cb1be1ec7545a97512fd73573e5863469bf40e27db9d395a59ff12caa264b580e4aa7030f6767b5bedbdf3958c7037ade6791baa5f02da85e7be
|
data/.codeclimate.yml
ADDED
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
group :red_green_refactor, halt_on_fail: true do
|
2
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
3
|
+
require 'guard/rspec/dsl'
|
4
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
5
|
+
|
6
|
+
# RSpec files
|
7
|
+
rspec = dsl.rspec
|
8
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
9
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
10
|
+
watch(rspec.spec_files)
|
11
|
+
|
12
|
+
# Ruby files
|
13
|
+
ruby = dsl.ruby
|
14
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
15
|
+
|
16
|
+
# Turnip features and steps
|
17
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
18
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
19
|
+
Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
guard :rubocop, all_on_start: false, cli: ['--rails', '--auto-correct'] do
|
24
|
+
watch(/.+\.rb$/)
|
25
|
+
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
26
|
+
end
|
27
|
+
end
|
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
### The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Bitgame Labs Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
[![Code Climate](https://codeclimate.com/github/bitgaming/securetrading/badges/gpa.svg)](https://codeclimate.com/github/bitgaming/securetrading)
|
2
|
+
[![Test Coverage](https://codeclimate.com/github/bitgaming/securetrading/badges/coverage.svg)](https://codeclimate.com/github/bitgaming/securetrading/coverage)
|
3
|
+
[![Build Status](https://travis-ci.org/bitgaming/securetrading.svg)](https://travis-ci.org/bitgaming/securetrading)
|
4
|
+
|
5
|
+
# Securetrading
|
6
|
+
|
7
|
+
Ruby library for [securetrading](http://www.securetrading.com/) API integration.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'securetrading'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install securetrading
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
### Configuration
|
28
|
+
|
29
|
+
Set up configuration options in initializer like this:
|
30
|
+
|
31
|
+
```
|
32
|
+
Securetrading.configure do |c|
|
33
|
+
c.user = 'user_site1234@securetrading.com'
|
34
|
+
c.password = 'password'
|
35
|
+
c.site_reference = 'site1234'
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
### Supported Api requests
|
40
|
+
|
41
|
+
Currently supported methods:
|
42
|
+
|
43
|
+
#### REFUND
|
44
|
+
|
45
|
+
Parameters:
|
46
|
+
- amount - refunded amount in cents
|
47
|
+
- order reference - original transaction reference you want to refund. Required for Refund. Not required for CFT Refund.
|
48
|
+
- options - Hash of options.
|
49
|
+
- merchant - Check XML specification for merchant xml tags.
|
50
|
+
- account_type - default to ECOM. If you want to set different ```accounttypedescription``` xml tag you should set this option.
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
> ref = Securetrading::Refund.new(11, '1-9-1912893', { merchant: { orderreference: 'order2'}, account_type: 'CFT' })
|
54
|
+
> ref.perform
|
55
|
+
```
|
56
|
+
|
57
|
+
Will send post request with xml:
|
58
|
+
|
59
|
+
```XML
|
60
|
+
<requestblock version="3.67">
|
61
|
+
<alias>user_site1234@securetrading.com</alias>
|
62
|
+
<request type="REFUND">
|
63
|
+
<operation>
|
64
|
+
<sitereference>site1234</sitereference>
|
65
|
+
<accounttypedescription>CFT</accounttypedescription>
|
66
|
+
<parenttransactionreference>1-9-1912893</parenttransactionreference>
|
67
|
+
</operation>
|
68
|
+
<merchant>
|
69
|
+
<orderreference>order2</orderreference>
|
70
|
+
</merchant>
|
71
|
+
<billing>
|
72
|
+
<amount>11</amount>
|
73
|
+
</billing>
|
74
|
+
</request>
|
75
|
+
</requestblock>
|
76
|
+
```
|
77
|
+
|
78
|
+
## Development
|
79
|
+
|
80
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
81
|
+
|
82
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
83
|
+
|
84
|
+
## Contributing
|
85
|
+
|
86
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/bitgamelabs/securetrading. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
87
|
+
|
88
|
+
|
89
|
+
## License
|
90
|
+
|
91
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
92
|
+
|
data/Rakefile
ADDED
data/bin/_guard-core
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application '_guard-core' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('guard', '_guard-core')
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'securetrading'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/guard
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'guard' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('guard', 'guard')
|
data/bin/setup
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'securetrading/version'
|
2
|
+
require 'ox'
|
3
|
+
require 'httparty'
|
4
|
+
require 'active_support'
|
5
|
+
require 'active_support/core_ext'
|
6
|
+
require 'securetrading/configuration'
|
7
|
+
|
8
|
+
module Securetrading
|
9
|
+
class Error < StandardError; end
|
10
|
+
|
11
|
+
def self.configure
|
12
|
+
yield(config)
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.config
|
16
|
+
@config ||= Configuration.new
|
17
|
+
end
|
18
|
+
|
19
|
+
class << self
|
20
|
+
attr_writer :config
|
21
|
+
end
|
22
|
+
private_class_method 'config='
|
23
|
+
end
|
24
|
+
|
25
|
+
require 'securetrading/connection'
|
26
|
+
require 'securetrading/xml_doc'
|
27
|
+
require 'securetrading/refund'
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Securetrading
|
2
|
+
class ConfigurationError < StandardError; end
|
3
|
+
class Configuration
|
4
|
+
attr_accessor :user, :password
|
5
|
+
attr_writer :site_reference
|
6
|
+
|
7
|
+
def site_reference
|
8
|
+
return @site_reference if @site_reference.present?
|
9
|
+
fail ConfigurationError, 'Site reference is required!'
|
10
|
+
end
|
11
|
+
|
12
|
+
def auth
|
13
|
+
return @auth if @auth.present?
|
14
|
+
if user.present? && password.present?
|
15
|
+
@auth ||= Base64.encode64("#{user}:#{password}")
|
16
|
+
else
|
17
|
+
fail ConfigurationError, 'User and password or auth are required!'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Securetrading
|
2
|
+
class Connection
|
3
|
+
include HTTParty
|
4
|
+
base_uri 'https://webservices.securetrading.net/xml'
|
5
|
+
|
6
|
+
# headers after: http://www.securetrading.com/files/documentation/STPP-Web-Services-User-Guide.pdf
|
7
|
+
headers(
|
8
|
+
'Content-Type' => 'text/xml;charset=utf-8',
|
9
|
+
'Accept-Encoding' => 'gzip',
|
10
|
+
'Accept' => 'text/xml',
|
11
|
+
'User-Agent' => 'Securetrading Ruby gem; '\
|
12
|
+
"version: #{Securetrading::VERSION}",
|
13
|
+
'Connection' => 'close'
|
14
|
+
)
|
15
|
+
|
16
|
+
def post_with(xml, options = {})
|
17
|
+
self.class.post('/', options.merge(body: xml, headers: dynamic_headers))
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def dynamic_headers
|
23
|
+
{ 'Authorization' => "Basic #{Securetrading.config.auth}" }
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module Securetrading
|
2
|
+
class Refund < Connection
|
3
|
+
def initialize(amount, parent_transaction, options = {})
|
4
|
+
@amount = amount
|
5
|
+
@parent_transaction = parent_transaction
|
6
|
+
@account_type = options[:account_type].presence || 'ECOM'
|
7
|
+
@options = options
|
8
|
+
end
|
9
|
+
|
10
|
+
def perform(options = {})
|
11
|
+
post_with(to_xml, options)
|
12
|
+
end
|
13
|
+
|
14
|
+
def to_xml
|
15
|
+
Ox.dump(ox_xml)
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def ox_xml
|
21
|
+
return doc if xml_prepared?
|
22
|
+
req = doc.requestblock.request
|
23
|
+
req << merchant << billing
|
24
|
+
req.operation << transaction_reference
|
25
|
+
@xml_prepared = true
|
26
|
+
doc
|
27
|
+
end
|
28
|
+
|
29
|
+
def doc
|
30
|
+
@doc ||= XmlDoc.new('REFUND', @account_type).doc
|
31
|
+
end
|
32
|
+
|
33
|
+
def transaction_reference
|
34
|
+
return '' unless @parent_transaction.present?
|
35
|
+
XmlDoc.elements(parenttransactionreference: @parent_transaction).first
|
36
|
+
end
|
37
|
+
|
38
|
+
def billing
|
39
|
+
XmlDoc.elements(billing: { amount: @amount }).first
|
40
|
+
end
|
41
|
+
|
42
|
+
def merchant
|
43
|
+
return '' unless @options[:merchant].present?
|
44
|
+
XmlDoc.elements(merchant: @options[:merchant]).first
|
45
|
+
end
|
46
|
+
|
47
|
+
def xml_prepared?
|
48
|
+
@xml_prepared
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
module Securetrading
|
2
|
+
class XmlDoc
|
3
|
+
def initialize(request_type, account_type)
|
4
|
+
@account_type = account_type
|
5
|
+
@request_type = request_type
|
6
|
+
end
|
7
|
+
|
8
|
+
def doc
|
9
|
+
return @doc if @doc.present?
|
10
|
+
@doc = Ox::Document.new(version: '1.0')
|
11
|
+
root = new_element('requestblock')
|
12
|
+
root[:version] = '3.67'
|
13
|
+
root << alias_el << request_el
|
14
|
+
@doc << root
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.elements(hash)
|
18
|
+
return unless hash.present?
|
19
|
+
hash.map do |k, v|
|
20
|
+
el = new_element(k.to_s)
|
21
|
+
if v.is_a? Hash
|
22
|
+
elements(v).each { |e| el << e }
|
23
|
+
else
|
24
|
+
el << v.to_s
|
25
|
+
end
|
26
|
+
el
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.new_element(name)
|
31
|
+
Ox::Element.new(name)
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
|
36
|
+
def new_element(name)
|
37
|
+
self.class.new_element(name)
|
38
|
+
end
|
39
|
+
|
40
|
+
def operation
|
41
|
+
self.class.elements(
|
42
|
+
operation: {
|
43
|
+
sitereference: Securetrading.config.site_reference,
|
44
|
+
accounttypedescription: @account_type
|
45
|
+
}
|
46
|
+
).first
|
47
|
+
end
|
48
|
+
|
49
|
+
def alias_el
|
50
|
+
self.class.elements(alias: Securetrading.config.user).first
|
51
|
+
end
|
52
|
+
|
53
|
+
def request_el
|
54
|
+
el = new_element('request')
|
55
|
+
el[:type] = @request_type
|
56
|
+
el << operation
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'securetrading/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'securetrading'
|
8
|
+
spec.version = Securetrading::VERSION
|
9
|
+
spec.authors = ['Bitgamelabs']
|
10
|
+
spec.email = ['philip.chan@bitgamelabs.com']
|
11
|
+
|
12
|
+
spec.summary = 'Ruby library for securetrading.com API integration.'
|
13
|
+
spec.description = 'Ruby library for securetrading.com API integration.'
|
14
|
+
spec.homepage = 'https://github.com/bitgamelabs/securetrading'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = 'exe'
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
spec.add_dependency 'httparty'
|
23
|
+
spec.add_dependency 'ox'
|
24
|
+
spec.add_dependency 'activesupport'
|
25
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
26
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
27
|
+
spec.add_development_dependency 'rspec'
|
28
|
+
spec.add_development_dependency 'guard'
|
29
|
+
spec.add_development_dependency 'guard-rspec'
|
30
|
+
spec.add_development_dependency 'guard-rubocop'
|
31
|
+
spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,206 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: securetrading
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bitgamelabs
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ox
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.10'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.10'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: guard-rubocop
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: codeclimate-test-reporter
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.4'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.4'
|
153
|
+
description: Ruby library for securetrading.com API integration.
|
154
|
+
email:
|
155
|
+
- philip.chan@bitgamelabs.com
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".codeclimate.yml"
|
161
|
+
- ".gitignore"
|
162
|
+
- ".rspec"
|
163
|
+
- ".rubocop.yml"
|
164
|
+
- ".travis.yml"
|
165
|
+
- CODE_OF_CONDUCT.md
|
166
|
+
- Gemfile
|
167
|
+
- Guardfile
|
168
|
+
- LICENSE.md
|
169
|
+
- README.md
|
170
|
+
- Rakefile
|
171
|
+
- bin/_guard-core
|
172
|
+
- bin/console
|
173
|
+
- bin/guard
|
174
|
+
- bin/setup
|
175
|
+
- lib/securetrading.rb
|
176
|
+
- lib/securetrading/configuration.rb
|
177
|
+
- lib/securetrading/connection.rb
|
178
|
+
- lib/securetrading/refund.rb
|
179
|
+
- lib/securetrading/version.rb
|
180
|
+
- lib/securetrading/xml_doc.rb
|
181
|
+
- securetrading.gemspec
|
182
|
+
homepage: https://github.com/bitgamelabs/securetrading
|
183
|
+
licenses:
|
184
|
+
- MIT
|
185
|
+
metadata: {}
|
186
|
+
post_install_message:
|
187
|
+
rdoc_options: []
|
188
|
+
require_paths:
|
189
|
+
- lib
|
190
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - ">="
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0'
|
200
|
+
requirements: []
|
201
|
+
rubyforge_project:
|
202
|
+
rubygems_version: 2.4.6
|
203
|
+
signing_key:
|
204
|
+
specification_version: 4
|
205
|
+
summary: Ruby library for securetrading.com API integration.
|
206
|
+
test_files: []
|