SelfPay 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/.gitignore +11 -0
- data/.rake_tasks~ +7 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/SelfPay.gemspec +44 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/SelfPay/api.rb +15 -0
- data/lib/SelfPay/auth/basic.rb +16 -0
- data/lib/SelfPay/billet_api.rb +17 -0
- data/lib/SelfPay/client.rb +120 -0
- data/lib/SelfPay/connect_client.rb +11 -0
- data/lib/SelfPay/exceptions/invalid_enviroment_error.rb +4 -0
- data/lib/SelfPay/resource/billet.rb +9 -0
- data/lib/SelfPay/response.rb +19 -0
- data/lib/SelfPay/util/filters_encoder.rb +28 -0
- data/lib/SelfPay/version.rb +3 -0
- data/lib/SelfPay.rb +51 -0
- metadata +136 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7ae65cb477c2ba18109535cc4cd3d0feecd988f68ed47a54447a9547dc923518
|
4
|
+
data.tar.gz: 76b01356966518cb16617d9d9b7a4b6ba47156470316f42c09e5f0dc65495fcb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9a2bb1bc38d7b2a03c85a44f7b2bff88b9166edbd67d4abe4f6856875a3b5efca2bc250e8fb172200df62f805cfcfef9f98f868b06c228e8a040a27733eea9f6
|
7
|
+
data.tar.gz: 773e0a1e2c8b0e44935c091c7d25216e7a7d70ab280a134dbb935ce27d89b7d5dffad60dde7b8e158be28363ac5eb6ff53437fbd3ffab4a06cff174931d18c4f
|
data/.gitignore
ADDED
data/.rake_tasks~
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at jjcsalomao@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Jaci
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# SelfPay
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/SelfPay`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'SelfPay'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install SelfPay
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
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.
|
30
|
+
|
31
|
+
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).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/SelfPay. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the SelfPay project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/SelfPay/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/SelfPay.gemspec
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "SelfPay/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "SelfPay"
|
8
|
+
spec.version = SelfPay::VERSION
|
9
|
+
spec.authors = ["Jaci"]
|
10
|
+
spec.email = ["jjcsalomao@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "SelfPay"
|
13
|
+
spec.description = "SelfPay"
|
14
|
+
spec.homepage = ""
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
#spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
|
22
|
+
#spec.metadata["homepage_uri"] = spec.homepage
|
23
|
+
#spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
24
|
+
#spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
25
|
+
else
|
26
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
27
|
+
"public gem pushes."
|
28
|
+
end
|
29
|
+
|
30
|
+
# Specify which files should be added to the gem when it is released.
|
31
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
32
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
33
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
34
|
+
end
|
35
|
+
spec.bindir = "exe"
|
36
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
37
|
+
spec.require_paths = ["lib"]
|
38
|
+
|
39
|
+
spec.add_dependency "httparty"
|
40
|
+
spec.add_dependency "recursive-open-struct"
|
41
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
42
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
43
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
44
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "SelfPay"
|
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(__FILE__)
|
data/bin/setup
ADDED
data/lib/SelfPay/api.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
module SelfPay
|
2
|
+
class Api
|
3
|
+
attr_reader :client
|
4
|
+
|
5
|
+
def initialize(client)
|
6
|
+
@client = client
|
7
|
+
end
|
8
|
+
|
9
|
+
def connect
|
10
|
+
connect_client = SelfPay::ConnectClient.new(client.env, client.auth, client.opts)
|
11
|
+
SelfPay::ConnectApi.new(connect_client)
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module SelfPay
|
2
|
+
class billet_api
|
3
|
+
attr_reader :client
|
4
|
+
|
5
|
+
def initialize(client)
|
6
|
+
@client = client
|
7
|
+
end
|
8
|
+
|
9
|
+
def create(billet)
|
10
|
+
Resource::Billet.new client.post("Billet", billet)
|
11
|
+
end
|
12
|
+
|
13
|
+
def show(billet_id)
|
14
|
+
Resource::Billet.new client.get("Billet/#{billet_id}")
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,120 @@
|
|
1
|
+
module SelfPay
|
2
|
+
class Client
|
3
|
+
include HTTParty
|
4
|
+
|
5
|
+
attr_reader :env, :auth, :uri
|
6
|
+
|
7
|
+
def initialize(env = :sandbox, auth = nil, opts = {})
|
8
|
+
@env = env.to_sym
|
9
|
+
@auth = auth
|
10
|
+
@opts = opts
|
11
|
+
|
12
|
+
@uri = get_base_uri
|
13
|
+
self.class.base_uri @uri
|
14
|
+
end
|
15
|
+
|
16
|
+
def sandbox?
|
17
|
+
env == :sandbox
|
18
|
+
end
|
19
|
+
|
20
|
+
def production?
|
21
|
+
env == :production
|
22
|
+
end
|
23
|
+
|
24
|
+
def opts
|
25
|
+
opts = @opts
|
26
|
+
opts[:headers] ||= {}
|
27
|
+
|
28
|
+
opts[:headers].merge!(
|
29
|
+
"Content-Type" => "application/json",
|
30
|
+
"Authorization" => auth.header,
|
31
|
+
"User-Agent" => "#{SelfPay::VERSION}",
|
32
|
+
)
|
33
|
+
|
34
|
+
opts
|
35
|
+
end
|
36
|
+
|
37
|
+
def post(path, resource, content_type = "application/json")
|
38
|
+
new_opts = opts
|
39
|
+
new_opts[:headers]["Content-Type"] = content_type
|
40
|
+
options = new_opts.merge(body: encode_resource(content_type, resource))
|
41
|
+
|
42
|
+
resp = self.class.post path, options
|
43
|
+
create_response resp
|
44
|
+
end
|
45
|
+
|
46
|
+
def put(path, resource)
|
47
|
+
options = opts.merge(body: convert_hash_keys_to(:camel_case, resource).to_json)
|
48
|
+
resp = self.class.put path, options
|
49
|
+
|
50
|
+
create_response resp
|
51
|
+
end
|
52
|
+
|
53
|
+
def delete(path)
|
54
|
+
resp = self.class.delete path, opts
|
55
|
+
|
56
|
+
create_response resp
|
57
|
+
end
|
58
|
+
|
59
|
+
def get(path)
|
60
|
+
resp = self.class.get path, opts
|
61
|
+
|
62
|
+
create_response resp
|
63
|
+
end
|
64
|
+
|
65
|
+
def host
|
66
|
+
if production?
|
67
|
+
"cliente.hysoft.com.br/Services/Ecommerce/v2/"
|
68
|
+
else
|
69
|
+
"cliente.hysoft.com.br/Sandbox/Ecommerce/v2/"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
private
|
74
|
+
|
75
|
+
def get_base_uri
|
76
|
+
"https://#{host}"
|
77
|
+
end
|
78
|
+
|
79
|
+
def create_response(resp)
|
80
|
+
raise NotFoundError, "Resource not found" if resp.code == 404
|
81
|
+
|
82
|
+
Response.new resp, convert_hash_keys_to(:snake_case, resp.parsed_response)
|
83
|
+
end
|
84
|
+
|
85
|
+
def basic_auth
|
86
|
+
{ username: @auth[:token], password: @auth[:secret] }
|
87
|
+
end
|
88
|
+
|
89
|
+
def convert_hash_keys_to(conversion, value)
|
90
|
+
case value
|
91
|
+
when Array
|
92
|
+
value.map { |v| convert_hash_keys_to(conversion, v) }
|
93
|
+
when Hash
|
94
|
+
Hash[value.map { |k, v| [send(conversion, k).to_sym, convert_hash_keys_to(conversion, v)] }]
|
95
|
+
else
|
96
|
+
value
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
def encode_resource(content_type, resource)
|
101
|
+
return URI.encode_www_form(resource) if content_type == "application/x-www-form-urlencoded"
|
102
|
+
|
103
|
+
convert_hash_keys_to(:camel_case, resource).to_json
|
104
|
+
end
|
105
|
+
|
106
|
+
def camel_case(str)
|
107
|
+
return str.to_s if str.to_s !~ /_/ && str.to_s =~ /[A-Z]+.*/
|
108
|
+
words = str.to_s.split("_")
|
109
|
+
(words[0..0] << words[1..-1].map(&:capitalize)).join
|
110
|
+
end
|
111
|
+
|
112
|
+
def snake_case(str)
|
113
|
+
str.gsub(/::/, "/").
|
114
|
+
gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2').
|
115
|
+
gsub(/([a-z\d])([A-Z])/, '\1_\2').
|
116
|
+
tr("-", "_").
|
117
|
+
downcase
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module SelfPay
|
2
|
+
class Response < SimpleDelegator
|
3
|
+
def initialize(resp, json)
|
4
|
+
if json.is_a? Hash
|
5
|
+
super(RecursiveOpenStruct.new(json, recurse_over_arrays: true))
|
6
|
+
else
|
7
|
+
super(resp)
|
8
|
+
end
|
9
|
+
@resp = resp
|
10
|
+
end
|
11
|
+
def success?
|
12
|
+
(200..299).cover? @resp.code.to_i
|
13
|
+
end
|
14
|
+
|
15
|
+
def client_error?
|
16
|
+
(400..499).cover? @resp.code.to_i
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module SelfPay
|
2
|
+
module Util
|
3
|
+
class FiltersEncoder
|
4
|
+
def self.encode(filters)
|
5
|
+
return nil unless filters.is_a? Hash
|
6
|
+
|
7
|
+
encoded_filters = filters.map do |field, value|
|
8
|
+
rules = extract_rules(field, value)
|
9
|
+
rules.join("|")
|
10
|
+
end
|
11
|
+
|
12
|
+
encoded_filters.join("|")
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def self.extract_rules(field, rules)
|
18
|
+
rules.map do |type, value|
|
19
|
+
return unless %i[gt ge lt le bt in].include?(type)
|
20
|
+
|
21
|
+
content = value.is_a?(Array) ? value.join(",") : value
|
22
|
+
|
23
|
+
"#{field}::#{type}(#{content})"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/lib/SelfPay.rb
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
require "httparty"
|
2
|
+
require "delegate"
|
3
|
+
require "recursive-open-struct"
|
4
|
+
|
5
|
+
require "SelfPay/version"
|
6
|
+
require "SelfPay/auth/basic"
|
7
|
+
require "SelfPay/resource/billet"
|
8
|
+
require "SelfPay/response"
|
9
|
+
require "SelfPay/client"
|
10
|
+
require "SelfPay/connect_client"
|
11
|
+
require "SelfPay/billet"
|
12
|
+
|
13
|
+
require "SelfPay/exceptions/invalid_enviroment_error"
|
14
|
+
require "SelfPay/util/filters_encoder"
|
15
|
+
|
16
|
+
module SelfPay
|
17
|
+
class Error < StandardError; end
|
18
|
+
class << self
|
19
|
+
VALID_ENVS = %i(sandbox production).freeze
|
20
|
+
|
21
|
+
def env=(env)
|
22
|
+
raise InvalidEnviromentError unless VALID_ENVS.include?(env.to_sym)
|
23
|
+
@env = env
|
24
|
+
end
|
25
|
+
|
26
|
+
def env
|
27
|
+
@env ||= :sandbox
|
28
|
+
end
|
29
|
+
|
30
|
+
def auth=(credentials)
|
31
|
+
@credentials = credentials
|
32
|
+
end
|
33
|
+
|
34
|
+
def auth
|
35
|
+
@credentials
|
36
|
+
end
|
37
|
+
|
38
|
+
def opts=(opts = {})
|
39
|
+
@opts = opts
|
40
|
+
end
|
41
|
+
|
42
|
+
def opts
|
43
|
+
@opts ||= {}
|
44
|
+
end
|
45
|
+
|
46
|
+
def new
|
47
|
+
raise "Auth is not set" unless auth
|
48
|
+
Api.new Client.new(env, auth)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
metadata
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: SelfPay
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jaci
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-02-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: recursive-open-struct
|
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: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.17'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.17'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
description: SelfPay
|
84
|
+
email:
|
85
|
+
- jjcsalomao@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rake_tasks~"
|
92
|
+
- ".rspec"
|
93
|
+
- ".travis.yml"
|
94
|
+
- CODE_OF_CONDUCT.md
|
95
|
+
- Gemfile
|
96
|
+
- LICENSE.txt
|
97
|
+
- README.md
|
98
|
+
- Rakefile
|
99
|
+
- SelfPay.gemspec
|
100
|
+
- bin/console
|
101
|
+
- bin/setup
|
102
|
+
- lib/SelfPay.rb
|
103
|
+
- lib/SelfPay/api.rb
|
104
|
+
- lib/SelfPay/auth/basic.rb
|
105
|
+
- lib/SelfPay/billet_api.rb
|
106
|
+
- lib/SelfPay/client.rb
|
107
|
+
- lib/SelfPay/connect_client.rb
|
108
|
+
- lib/SelfPay/exceptions/invalid_enviroment_error.rb
|
109
|
+
- lib/SelfPay/resource/billet.rb
|
110
|
+
- lib/SelfPay/response.rb
|
111
|
+
- lib/SelfPay/util/filters_encoder.rb
|
112
|
+
- lib/SelfPay/version.rb
|
113
|
+
homepage: ''
|
114
|
+
licenses:
|
115
|
+
- MIT
|
116
|
+
metadata: {}
|
117
|
+
post_install_message:
|
118
|
+
rdoc_options: []
|
119
|
+
require_paths:
|
120
|
+
- lib
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
requirements: []
|
132
|
+
rubygems_version: 3.0.3
|
133
|
+
signing_key:
|
134
|
+
specification_version: 4
|
135
|
+
summary: SelfPay
|
136
|
+
test_files: []
|