pesamoni_ruby 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +304 -0
- data/Rakefile +8 -0
- data/docs/DefaultApi.md +98 -0
- data/docs/InlineResponse200.md +13 -0
- data/git_push.sh +55 -0
- data/lib/pesamoni_ruby/api/default_api.rb +174 -0
- data/lib/pesamoni_ruby/api_client.rb +387 -0
- data/lib/pesamoni_ruby/api_error.rb +36 -0
- data/lib/pesamoni_ruby/configuration.rb +213 -0
- data/lib/pesamoni_ruby/models/inline_response_200.rb +226 -0
- data/lib/pesamoni_ruby/version.rb +12 -0
- data/lib/pesamoni_ruby.rb +39 -0
- data/pesamoni_ruby.gemspec +40 -0
- data/spec/api/default_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +224 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/inline_response_200_spec.rb +68 -0
- data/spec/spec_helper.rb +111 -0
- metadata +247 -0
@@ -0,0 +1,224 @@
|
|
1
|
+
=begin
|
2
|
+
#Pesaway Pesamoni API Documentation
|
3
|
+
|
4
|
+
#Automate mobile money payments, bank transfers and more..
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.3
|
7
|
+
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'spec_helper'
|
12
|
+
|
13
|
+
describe Pesamoni::ApiClient do
|
14
|
+
context 'initialization' do
|
15
|
+
context 'URL stuff' do
|
16
|
+
context 'host' do
|
17
|
+
it 'removes http from host' do
|
18
|
+
Pesamoni.configure { |c| c.host = 'http://example.com' }
|
19
|
+
expect(Pesamoni::Configuration.default.host).to eq('example.com')
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'removes https from host' do
|
23
|
+
Pesamoni.configure { |c| c.host = 'https://wookiee.com' }
|
24
|
+
expect(Pesamoni::ApiClient.default.config.host).to eq('wookiee.com')
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'removes trailing path from host' do
|
28
|
+
Pesamoni.configure { |c| c.host = 'hobo.com/v4' }
|
29
|
+
expect(Pesamoni::Configuration.default.host).to eq('hobo.com')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
context 'base_path' do
|
34
|
+
it "prepends a slash to base_path" do
|
35
|
+
Pesamoni.configure { |c| c.base_path = 'v4/dog' }
|
36
|
+
expect(Pesamoni::Configuration.default.base_path).to eq('/v4/dog')
|
37
|
+
end
|
38
|
+
|
39
|
+
it "doesn't prepend a slash if one is already there" do
|
40
|
+
Pesamoni.configure { |c| c.base_path = '/v4/dog' }
|
41
|
+
expect(Pesamoni::Configuration.default.base_path).to eq('/v4/dog')
|
42
|
+
end
|
43
|
+
|
44
|
+
it "ends up as a blank string if nil" do
|
45
|
+
Pesamoni.configure { |c| c.base_path = nil }
|
46
|
+
expect(Pesamoni::Configuration.default.base_path).to eq('')
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'params_encoding in #build_request' do
|
53
|
+
let(:config) { Pesamoni::Configuration.new }
|
54
|
+
let(:api_client) { Pesamoni::ApiClient.new(config) }
|
55
|
+
|
56
|
+
it 'defaults to nil' do
|
57
|
+
expect(Pesamoni::Configuration.default.params_encoding).to eq(nil)
|
58
|
+
expect(config.params_encoding).to eq(nil)
|
59
|
+
|
60
|
+
request = api_client.build_request(:get, '/test')
|
61
|
+
expect(request.options[:params_encoding]).to eq(nil)
|
62
|
+
end
|
63
|
+
|
64
|
+
it 'can be customized' do
|
65
|
+
config.params_encoding = :multi
|
66
|
+
request = api_client.build_request(:get, '/test')
|
67
|
+
expect(request.options[:params_encoding]).to eq(:multi)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'timeout in #build_request' do
|
72
|
+
let(:config) { Pesamoni::Configuration.new }
|
73
|
+
let(:api_client) { Pesamoni::ApiClient.new(config) }
|
74
|
+
|
75
|
+
it 'defaults to 0' do
|
76
|
+
expect(Pesamoni::Configuration.default.timeout).to eq(0)
|
77
|
+
expect(config.timeout).to eq(0)
|
78
|
+
|
79
|
+
request = api_client.build_request(:get, '/test')
|
80
|
+
expect(request.options[:timeout]).to eq(0)
|
81
|
+
end
|
82
|
+
|
83
|
+
it 'can be customized' do
|
84
|
+
config.timeout = 100
|
85
|
+
request = api_client.build_request(:get, '/test')
|
86
|
+
expect(request.options[:timeout]).to eq(100)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe '#deserialize' do
|
91
|
+
it "handles Array<Integer>" do
|
92
|
+
api_client = Pesamoni::ApiClient.new
|
93
|
+
headers = { 'Content-Type' => 'application/json' }
|
94
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
95
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
96
|
+
expect(data).to be_instance_of(Array)
|
97
|
+
expect(data).to eq([12, 34])
|
98
|
+
end
|
99
|
+
|
100
|
+
it 'handles Array<Array<Integer>>' do
|
101
|
+
api_client = Pesamoni::ApiClient.new
|
102
|
+
headers = { 'Content-Type' => 'application/json' }
|
103
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
104
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
105
|
+
expect(data).to be_instance_of(Array)
|
106
|
+
expect(data).to eq([[12, 34], [56]])
|
107
|
+
end
|
108
|
+
|
109
|
+
it 'handles Hash<String, String>' do
|
110
|
+
api_client = Pesamoni::ApiClient.new
|
111
|
+
headers = { 'Content-Type' => 'application/json' }
|
112
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
113
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
114
|
+
expect(data).to be_instance_of(Hash)
|
115
|
+
expect(data).to eq(:message => 'Hello')
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
describe "#object_to_hash" do
|
120
|
+
it 'ignores nils and includes empty arrays' do
|
121
|
+
# uncomment below to test object_to_hash for model
|
122
|
+
# api_client = Pesamoni::ApiClient.new
|
123
|
+
# _model = Pesamoni::ModelName.new
|
124
|
+
# update the model attribute below
|
125
|
+
# _model.id = 1
|
126
|
+
# update the expected value (hash) below
|
127
|
+
# expected = {id: 1, name: '', tags: []}
|
128
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
describe '#build_collection_param' do
|
133
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
134
|
+
let(:api_client) { Pesamoni::ApiClient.new }
|
135
|
+
|
136
|
+
it 'works for csv' do
|
137
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
138
|
+
end
|
139
|
+
|
140
|
+
it 'works for ssv' do
|
141
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
142
|
+
end
|
143
|
+
|
144
|
+
it 'works for tsv' do
|
145
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
146
|
+
end
|
147
|
+
|
148
|
+
it 'works for pipes' do
|
149
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
150
|
+
end
|
151
|
+
|
152
|
+
it 'works for multi' do
|
153
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
154
|
+
end
|
155
|
+
|
156
|
+
it 'fails for invalid collection format' do
|
157
|
+
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
describe '#json_mime?' do
|
162
|
+
let(:api_client) { Pesamoni::ApiClient.new }
|
163
|
+
|
164
|
+
it 'works' do
|
165
|
+
expect(api_client.json_mime?(nil)).to eq false
|
166
|
+
expect(api_client.json_mime?('')).to eq false
|
167
|
+
|
168
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
169
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
170
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
171
|
+
|
172
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
173
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
174
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
describe '#select_header_accept' do
|
179
|
+
let(:api_client) { Pesamoni::ApiClient.new }
|
180
|
+
|
181
|
+
it 'works' do
|
182
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
183
|
+
expect(api_client.select_header_accept([])).to be_nil
|
184
|
+
|
185
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
186
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
187
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
188
|
+
|
189
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
190
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
describe '#select_header_content_type' do
|
195
|
+
let(:api_client) { Pesamoni::ApiClient.new }
|
196
|
+
|
197
|
+
it 'works' do
|
198
|
+
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
199
|
+
expect(api_client.select_header_content_type([])).to eq('application/json')
|
200
|
+
|
201
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
202
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
203
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
204
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
205
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
describe '#sanitize_filename' do
|
210
|
+
let(:api_client) { Pesamoni::ApiClient.new }
|
211
|
+
|
212
|
+
it 'works' do
|
213
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
214
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
215
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
216
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
217
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
218
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
219
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
220
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
221
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
=begin
|
2
|
+
#Pesaway Pesamoni API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.3
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
|
15
|
+
describe Pesamoni::Configuration do
|
16
|
+
let(:config) { Pesamoni::Configuration.default }
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
# uncomment below to setup host and base_path
|
20
|
+
# require 'URI'
|
21
|
+
# uri = URI.parse("https://pesamoni.com/api/live/v1")
|
22
|
+
# Pesamoni.configure do |c|
|
23
|
+
# c.host = uri.host
|
24
|
+
# c.base_path = uri.path
|
25
|
+
# end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe '#base_url' do
|
29
|
+
it 'should have the default value' do
|
30
|
+
# uncomment below to test default value of the base path
|
31
|
+
# expect(config.base_url).to eq("https://pesamoni.com/api/live/v1")
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should remove trailing slashes' do
|
35
|
+
[nil, '', '/', '//'].each do |base_path|
|
36
|
+
config.base_path = base_path
|
37
|
+
# uncomment below to test trailing slashes
|
38
|
+
# expect(config.base_url).to eq("https://pesamoni.com/api/live/v1")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
=begin
|
2
|
+
#Pesaway Pesamoni API Documentation
|
3
|
+
|
4
|
+
#Automate mobile money payments, bank transfers and more..
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.3
|
7
|
+
|
8
|
+
=end
|
9
|
+
|
10
|
+
require 'spec_helper'
|
11
|
+
require 'json'
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
# Unit tests for Pesamoni::InlineResponse200
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'InlineResponse200' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = Pesamoni::InlineResponse200.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of InlineResponse200' do
|
28
|
+
it 'should create an instance of InlineResponse200' do
|
29
|
+
expect(@instance).to be_instance_of(Pesamoni::InlineResponse200)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "status"' do
|
33
|
+
it 'should work' do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "token"' do
|
39
|
+
it 'should work' do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "description"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "mobile"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "statuscode"' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'test attribute "transaction_type"' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
=begin
|
2
|
+
#Pesaway Pesamoni API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.3
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# load the gem
|
14
|
+
require 'pesamoni_ruby'
|
15
|
+
|
16
|
+
# The following was generated by the `rspec --init` command. Conventionally, all
|
17
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
18
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
19
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
20
|
+
# files.
|
21
|
+
#
|
22
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
23
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
24
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
25
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
26
|
+
# a separate helper file that requires the additional dependencies and performs
|
27
|
+
# the additional setup, and require it from the spec files that actually need
|
28
|
+
# it.
|
29
|
+
#
|
30
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
31
|
+
# users commonly want.
|
32
|
+
#
|
33
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
34
|
+
RSpec.configure do |config|
|
35
|
+
# rspec-expectations config goes here. You can use an alternate
|
36
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
37
|
+
# assertions if you prefer.
|
38
|
+
config.expect_with :rspec do |expectations|
|
39
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
40
|
+
# and `failure_message` of custom matchers include text for helper methods
|
41
|
+
# defined using `chain`, e.g.:
|
42
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
43
|
+
# # => "be bigger than 2 and smaller than 4"
|
44
|
+
# ...rather than:
|
45
|
+
# # => "be bigger than 2"
|
46
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
47
|
+
end
|
48
|
+
|
49
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
50
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
51
|
+
config.mock_with :rspec do |mocks|
|
52
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
53
|
+
# a real object. This is generally recommended, and will default to
|
54
|
+
# `true` in RSpec 4.
|
55
|
+
mocks.verify_partial_doubles = true
|
56
|
+
end
|
57
|
+
|
58
|
+
# The settings below are suggested to provide a good initial experience
|
59
|
+
# with RSpec, but feel free to customize to your heart's content.
|
60
|
+
=begin
|
61
|
+
# These two settings work together to allow you to limit a spec run
|
62
|
+
# to individual examples or groups you care about by tagging them with
|
63
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
64
|
+
# get run.
|
65
|
+
config.filter_run :focus
|
66
|
+
config.run_all_when_everything_filtered = true
|
67
|
+
|
68
|
+
# Allows RSpec to persist some state between runs in order to support
|
69
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
70
|
+
# you configure your source control system to ignore this file.
|
71
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
72
|
+
|
73
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
74
|
+
# recommended. For more details, see:
|
75
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
76
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
77
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
78
|
+
config.disable_monkey_patching!
|
79
|
+
|
80
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
81
|
+
# be too noisy due to issues in dependencies.
|
82
|
+
config.warnings = true
|
83
|
+
|
84
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
85
|
+
# file, and it's useful to allow more verbose output when running an
|
86
|
+
# individual spec file.
|
87
|
+
if config.files_to_run.one?
|
88
|
+
# Use the documentation formatter for detailed output,
|
89
|
+
# unless a formatter has already been configured
|
90
|
+
# (e.g. via a command-line flag).
|
91
|
+
config.default_formatter = 'doc'
|
92
|
+
end
|
93
|
+
|
94
|
+
# Print the 10 slowest examples and example groups at the
|
95
|
+
# end of the spec run, to help surface which specs are running
|
96
|
+
# particularly slow.
|
97
|
+
config.profile_examples = 10
|
98
|
+
|
99
|
+
# Run specs in random order to surface order dependencies. If you find an
|
100
|
+
# order dependency and want to debug it, you can fix the order by providing
|
101
|
+
# the seed, which is printed after each run.
|
102
|
+
# --seed 1234
|
103
|
+
config.order = :random
|
104
|
+
|
105
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
106
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
107
|
+
# test failures related to randomization by passing the same `--seed` value
|
108
|
+
# as the one that triggered the failure.
|
109
|
+
Kernel.srand config.seed
|
110
|
+
=end
|
111
|
+
end
|
metadata
ADDED
@@ -0,0 +1,247 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pesamoni_ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Pesamoni Limited
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-01-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: typhoeus
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.0.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.0.1
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: json
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 2.1.0
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '2.1'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 2.1.0
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '2.1'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: rspec
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 3.6.0
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.6'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 3.6.0
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '3.6'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: vcr
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '3.0'
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.0.1
|
83
|
+
type: :development
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 3.0.1
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: webmock
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '1.24'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.24.3
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.24'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 1.24.3
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: autotest
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '4.4'
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 4.4.6
|
123
|
+
type: :development
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '4.4'
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 4.4.6
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: autotest-rails-pure
|
135
|
+
requirement: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '4.1'
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 4.1.2
|
143
|
+
type: :development
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '4.1'
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 4.1.2
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: autotest-growl
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.2'
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 0.2.16
|
163
|
+
type: :development
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0.2'
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 0.2.16
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: autotest-fsevent
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0.2'
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 0.2.12
|
183
|
+
type: :development
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0.2'
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 0.2.12
|
193
|
+
description: This gem maps to the Pesamoni API
|
194
|
+
email:
|
195
|
+
- ''
|
196
|
+
executables: []
|
197
|
+
extensions: []
|
198
|
+
extra_rdoc_files: []
|
199
|
+
files:
|
200
|
+
- Gemfile
|
201
|
+
- README.md
|
202
|
+
- Rakefile
|
203
|
+
- docs/DefaultApi.md
|
204
|
+
- docs/InlineResponse200.md
|
205
|
+
- git_push.sh
|
206
|
+
- lib/pesamoni_ruby.rb
|
207
|
+
- lib/pesamoni_ruby/api/default_api.rb
|
208
|
+
- lib/pesamoni_ruby/api_client.rb
|
209
|
+
- lib/pesamoni_ruby/api_error.rb
|
210
|
+
- lib/pesamoni_ruby/configuration.rb
|
211
|
+
- lib/pesamoni_ruby/models/inline_response_200.rb
|
212
|
+
- lib/pesamoni_ruby/version.rb
|
213
|
+
- pesamoni_ruby.gemspec
|
214
|
+
- spec/api/default_api_spec.rb
|
215
|
+
- spec/api_client_spec.rb
|
216
|
+
- spec/configuration_spec.rb
|
217
|
+
- spec/models/inline_response_200_spec.rb
|
218
|
+
- spec/spec_helper.rb
|
219
|
+
homepage: https://rubygems.org/gems/pesamoni_ruby
|
220
|
+
licenses:
|
221
|
+
- Apache 2.0
|
222
|
+
metadata: {}
|
223
|
+
post_install_message:
|
224
|
+
rdoc_options: []
|
225
|
+
require_paths:
|
226
|
+
- lib
|
227
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
228
|
+
requirements:
|
229
|
+
- - ">="
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: '1.9'
|
232
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
requirements: []
|
238
|
+
rubygems_version: 3.0.2
|
239
|
+
signing_key:
|
240
|
+
specification_version: 4
|
241
|
+
summary: Pesaway Pesamoni API Documentation Ruby Gem
|
242
|
+
test_files:
|
243
|
+
- spec/api/default_api_spec.rb
|
244
|
+
- spec/api_client_spec.rb
|
245
|
+
- spec/configuration_spec.rb
|
246
|
+
- spec/models/inline_response_200_spec.rb
|
247
|
+
- spec/spec_helper.rb
|