parasut 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDMwYjUwY2UwZGNkMTgwOWFiN2VhNmExNTdkZGU0NjkxMWM4ZjcyNQ==
5
+ data.tar.gz: !binary |-
6
+ MGFhYTU5YThiOTM0NjY3Yzg5YjZjZWRmZDNmMTFlZjZkYmUzZDhkZg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MTVjOGNlY2U0NWIyNDAwOGUwZTRjZTg1NjJmZWZiOGM3ZWExYTUxNTY0N2Rl
10
+ OTVmYmQ4ZjFhMDU1MDRmMTVhZmIxZDA1MTUzNmI1Y2IyODdlM2IxOTdiNTRl
11
+ MjAxMzM4NWQ0NGE3NzQ0MDA0ZjQwYzVlNjU0OTFiMmI3Njk4YzQ=
12
+ data.tar.gz: !binary |-
13
+ NjlhNWI2OWRiOGE1YzAxZTI1ZGY3NWZhMTRlYjhmOGFiNzI0MjBiMTI1YjM2
14
+ NzAwYTNiM2JlZjJhOWZiOTcxMzFmYjQ1YzJkYmU3MmQ3ZmMxZDUyYjg5NDM1
15
+ NDg5YjZhNGI2MzFkNDkxYTUyMmE4YjQwODE2ZjY2ZjRmZjdiYTM=
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.env
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,35 @@
1
+ Documentation:
2
+ Enabled: true
3
+ AllCops:
4
+ Include:
5
+ - '**/Rakefile'
6
+ - '**/config.ru'
7
+ Exclude:
8
+ - 'db/**/*'
9
+ - 'tmp/**/*'
10
+ - 'vendor/**/*'
11
+ - 'bin/**/*'
12
+ - 'log/**/*'
13
+ Metrics/AbcSize:
14
+ Max: 15
15
+ Metrics/BlockNesting:
16
+ Max: 3
17
+ Metrics/ClassLength:
18
+ CountComments: false # count full line comments?
19
+ Max: 100
20
+ Metrics/CyclomaticComplexity:
21
+ Max: 6
22
+ Metrics/LineLength:
23
+ Max: 150
24
+ AllowURI: true
25
+ URISchemes:
26
+ - http
27
+ - https
28
+ Metrics/MethodLength:
29
+ CountComments: false # count full line comments?
30
+ Max: 13
31
+ Metrics/ParameterLists:
32
+ Max: 5
33
+ CountKeywordArgs: true
34
+ Metrics/PerceivedComplexity:
35
+ Max: 7
data/.travis.yml ADDED
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.1
4
+ deploy:
5
+ provider: rubygems
6
+ api_key:
7
+ secure: qiDjgFtSgcJEqh51KAtCfhneUw6SvVtrXGcu8GK88ldVR4nBvlblTJj5Z2G0t3izcy1F5/qSCrwrcIM8Dxf9+U4QqGvL68i0xU+lExzts8mGjehjHhm56sFMsvUQEMX44rOpQ3/ILPhrbOXgHGIn8qh2tg/NVhr9uemsuzF4TdUICEkn8GdXXBQA48TxS42kMDPk/5YXtq1FVjbQ3q7FpDnXkIs4hWRYzW2zgcCtrZL0JxKyPhrLLwTqv1P/yuirJY9SKiGcPgYer25h2m3mR2fcYNQQnJSvp7TZIOieZBQkkyGB0VmjriqXOv5qzygZKldDprIjVpwSg7/7MOs5zDICxnU2N375M7J/Sh/A3/Mv1h1y7QM8rRBKuPMWnqSuURgW5AiSvxOP0zttO4Ot3OtwOJnDMhcYxMUusCa4o65kCkJwbEw6ijLvO0xWds1YLFED5x7FCvRYE9+9siFMcMqH4mjjiJbKwf/ZTUx1EPVy3kiJUHh1e2ZKVecBdnt92Usi7TmQEyp897odhK8w+T7FlHmOp/0IQtdwZ9eMTP7g5tXSQl0JVxviRndO93k5OYdVYvbRzCJ5HCAYTgL+KRDZ7qyzGP/C3owF0/iffnCGPRWRC3Wldw6URskTuIQmyOspOOwdLXMbNzeqOOfG3jODyJb+kOH2tcKaIFwTejs=
8
+ gem: parasut
9
+ on:
10
+ repo: ahtung/parasut
11
+ before_install:
12
+ - gem update bundler
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at dunyakirkali@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in parasut.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Dunya Kirkali
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,85 @@
1
+ # parasut
2
+
3
+ [![Build Status](https://travis-ci.org/ahtung/parasut.svg?branch=master)](https://travis-ci.org/ahtung/parasut)
4
+ [![Coverage Status](https://coveralls.io/repos/github/ahtung/parasut/badge.svg?branch=master)](https://coveralls.io/github/ahtung/parasut?branch=master)
5
+
6
+ You can sign up for an parasut account at https://www.parasut.com/
7
+
8
+ ## Dependencies
9
+
10
+ - her
11
+ - kaminari
12
+
13
+ ## Requirements
14
+
15
+ * Ruby 2.0.0 or newer
16
+
17
+ ## Installation
18
+
19
+ Add this line to your application's Gemfile:
20
+
21
+ ```ruby
22
+ gem 'parasut'
23
+ ```
24
+
25
+ And then execute:
26
+
27
+ $ bundle
28
+
29
+ Or install it yourself as:
30
+
31
+ $ gem install parasut
32
+
33
+ ## Usage
34
+
35
+ Create an initializer for Parasut options.
36
+ ```
37
+ require 'parasut'
38
+
39
+ # config/initializers/parasut.rb
40
+ Parasut.options do |option|
41
+ option.client_id = 'client_id',
42
+ option.client_secret = 'client_secret',
43
+ option.username = 'username',
44
+ option.password = 'password',
45
+ option.company_id = 'company_id',
46
+ end
47
+ ```
48
+
49
+ Afterwards you can call a model:
50
+
51
+ account = Parasut::Account.find(1)
52
+ puts account.inspect
53
+
54
+ contacts = Parasut::Contact.all
55
+ puts contacts.inspect
56
+
57
+ account.destroy
58
+
59
+
60
+ ## ENVs
61
+
62
+ - PARASUT_CLIENT_ID
63
+ - PARASUT_CLIENT_SECRET
64
+ - PARASUT_USERNAME
65
+ - PARASUT_PASSWORD
66
+ - PARSUT_COMPANY_ID
67
+
68
+ ## Development
69
+
70
+ 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.
71
+
72
+ 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).
73
+
74
+ ## Test
75
+
76
+ rspec
77
+
78
+ ## Contributing
79
+
80
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ahtung/parasut. 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.
81
+
82
+
83
+ ## License
84
+
85
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "parasut"
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/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,51 @@
1
+ module Her
2
+ module Middleware
3
+ # OAuthProviderHeader
4
+ class OAuthProviderHeader < Faraday::Middleware
5
+ def add_header(headers)
6
+ headers.merge! Authorization: "Bearer #{refresh_token['access_token']}"
7
+ end
8
+
9
+ def refresh_token
10
+ uri = URI("#{token_url}?#{URI.encode_www_form(refresh_token_params)}")
11
+ res = Net::HTTP.post_form(uri, {})
12
+ JSON.parse(res.body)
13
+ end
14
+
15
+ def refresh_token_params
16
+ {
17
+ client_id: Parasut.options.client_id,
18
+ client_secret: Parasut.options.client_secret,
19
+ grant_type: 'refresh_token',
20
+ refresh_token: password['refresh_token']
21
+ }
22
+ end
23
+
24
+ def password_params
25
+ {
26
+ client_id: Parasut.options.client_id,
27
+ client_secret: Parasut.options.client_secret,
28
+ username: Parasut.options.username,
29
+ password: Parasut.options.password,
30
+ grant_type: 'password',
31
+ redirect_uri: 'urn:ietf:wg:oauth:2.0:oob'
32
+ }
33
+ end
34
+
35
+ def token_url
36
+ 'https://api.parasut.com/oauth/token'
37
+ end
38
+
39
+ def password
40
+ uri = URI("#{token_url}?#{URI.encode_www_form(password_params)}")
41
+ res = Net::HTTP.post_form(uri, {})
42
+ JSON.parse(res.body)
43
+ end
44
+
45
+ def call(env)
46
+ add_header(env[:request_headers])
47
+ @app.call(env)
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,19 @@
1
+ module Her
2
+ module Middleware
3
+ # ParasutParser
4
+ class ParasutParser < Her::Middleware::DefaultParseJSON
5
+ def parse(body)
6
+ json = parse_json(body)
7
+ data = json
8
+ # TODO: (dunyakirkali) :transactions exception should be removed
9
+ data = data[:transactions].present? ? data[:transactions] : data if data[:account].blank?
10
+ data = data[:items].present? ? data[:items] : data
11
+ {
12
+ data: data || {},
13
+ errors: json[:errors] || [],
14
+ metadata: json[:meta] || {}
15
+ }
16
+ end
17
+ end
18
+ end
19
+ end
data/lib/parasut.rb ADDED
@@ -0,0 +1,38 @@
1
+ require 'her'
2
+ require_relative 'her/middleware/o_auth_provider_header'
3
+ require_relative 'her/middleware/parasut_parser'
4
+ require 'json'
5
+ require 'uri'
6
+ require 'kaminari/config'
7
+ require 'kaminari/helpers/action_view_extension'
8
+ require 'kaminari/helpers/paginator'
9
+ require 'kaminari/models/page_scope_methods'
10
+ require 'kaminari/models/configuration_methods'
11
+ require 'kaminari/hooks'
12
+ require 'pry'
13
+
14
+ Kaminari::Hooks.init
15
+
16
+ Her::API.setup url: "https://api.parasut.com/v1/#{ENV['PARSUT_COMPANY_ID']}" do |config|
17
+ config.use Her::Middleware::ParasutParser
18
+ config.use Faraday::Request::UrlEncoded
19
+ config.use Her::Middleware::OAuthProviderHeader
20
+ config.use Faraday::Adapter::NetHttp
21
+ # config.use Faraday::Response::Logger, ActiveSupport::Logger.new(STDOUT)
22
+ end
23
+
24
+ require_relative 'parasut/version'
25
+ require_relative 'parasut/options'
26
+ require_relative 'parasut/paginated'
27
+ require_relative 'parasut/product'
28
+ require_relative 'parasut/document_status'
29
+ require_relative 'parasut/contact'
30
+ require_relative 'parasut/item_category'
31
+ require_relative 'parasut/account'
32
+ require_relative 'parasut/sales_invoice'
33
+ require_relative 'parasut/transaction'
34
+ require_relative 'parasut/payment'
35
+
36
+ # lib/parasut.rb
37
+ module Parasut
38
+ end
@@ -0,0 +1,13 @@
1
+ # lib/parasut/account.rb
2
+ module Parasut
3
+ # Account
4
+ class Account
5
+ include Her::Model
6
+ extend Parasut::Paginated
7
+ include_root_in_json true
8
+ parse_root_in_json true
9
+
10
+ # Relations
11
+ has_many :transactions
12
+ end
13
+ end
@@ -0,0 +1,14 @@
1
+ # lib/parasut/contact.rb
2
+ module Parasut
3
+ # Contact
4
+ class Contact
5
+ include Her::Model
6
+ extend Parasut::Paginated
7
+ include_root_in_json true
8
+ parse_root_in_json true
9
+
10
+ # Relations
11
+ has_many :outstanding_payments, class_name: 'Payment'
12
+ has_many :past_transactions, class_name: 'Transaction'
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ # lib/parasut/document_status.rb
2
+ module Parasut
3
+ # Contact
4
+ class DocumentStatus
5
+ include Her::Model
6
+ belongs_to :sales_invoice
7
+ end
8
+ end
@@ -0,0 +1,10 @@
1
+ # lib/parasut/item_category.rb
2
+ module Parasut
3
+ # Contact
4
+ class ItemCategory
5
+ include Her::Model
6
+ extend Parasut::Paginated
7
+ include_root_in_json true
8
+ parse_root_in_json true
9
+ end
10
+ end
@@ -0,0 +1,20 @@
1
+ require 'singleton'
2
+
3
+ # lib/parasut/options.rb
4
+ module Parasut
5
+ # Options
6
+ class Options
7
+ include Singleton
8
+
9
+ ATTRIBUTES = [:client_id, :client_secret, :username, :password, :company_id].freeze
10
+
11
+ # Attributes
12
+ attr_accessor *ATTRIBUTES
13
+ end
14
+
15
+ # Initializer
16
+ def self.options
17
+ yield Options.instance if block_given?
18
+ Options.instance
19
+ end
20
+ end
@@ -0,0 +1,10 @@
1
+ module Parasut
2
+ # Paginated
3
+ module Paginated
4
+ def new_collection(parsed_data)
5
+ pagination = parsed_data[:metadata]
6
+ collection = Her::Model::Attributes.initialize_collection(self, parsed_data)
7
+ Kaminari.paginate_array(collection, total_count: pagination[:item_count]).page(pagination[:page_count]).per(pagination[:per_page])
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ # lib/parasut/product.rb
2
+ module Parasut
3
+ # Product
4
+ class Payment
5
+ include Her::Model
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ # lib/parasut/product.rb
2
+ module Parasut
3
+ # Product
4
+ class Product
5
+ include Her::Model
6
+ extend Parasut::Paginated
7
+ include_root_in_json true
8
+ parse_root_in_json true
9
+ end
10
+ end
@@ -0,0 +1,18 @@
1
+ # lib/parasut/sales_invoice.rb
2
+ module Parasut
3
+ # SalesInvoice
4
+ class SalesInvoice
5
+ include Her::Model
6
+ extend Parasut::Paginated
7
+ include_root_in_json true
8
+ parse_root_in_json true
9
+
10
+ has_one :e_document_status, class_name: 'DocumentStatus'
11
+
12
+ def e_document_type
13
+ self.class.get_raw("sales_invoices/#{id}/e_document_type") do |parsed_data, response|
14
+ parsed_data[:data][:e_document_type]
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,9 @@
1
+ # lib/parasut/sales_invoice.rb
2
+ module Parasut
3
+ # Transaction
4
+ class Transaction
5
+ include Her::Model
6
+ include_root_in_json true
7
+ parse_root_in_json true
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ module Parasut
2
+ VERSION = '0.1.0'.freeze
3
+ end
data/parasut.gemspec ADDED
@@ -0,0 +1,43 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'parasut/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'parasut'
8
+ spec.version = Parasut::VERSION
9
+ spec.platform = Gem::Platform::RUBY
10
+ spec.required_ruby_version = '>= 2.0.0'
11
+ spec.authors = ['Dunya Kirkali', 'Onur Kucukkecce']
12
+ spec.email = ['dunyakirkali@ahtung.co', 'onurkucukkece@ahtung.co']
13
+
14
+ spec.summary = %q{Parasut client.}
15
+ spec.description = %q{Parasut client.}
16
+ spec.homepage = 'https://github.com/ahtung/parasut'
17
+ spec.license = 'MIT'
18
+
19
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
20
+ # delete this section to allow pushing this gem to any host.
21
+ if spec.respond_to?(:metadata)
22
+ spec.metadata['allowed_push_host'] = 'TODO: Set to "http://mygemserver.com"'
23
+ else
24
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
25
+ end
26
+
27
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
+ spec.bindir = 'exe'
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ['lib']
31
+
32
+ spec.required_ruby_version = '>= 2.0.0'
33
+ spec.add_dependency 'oauth2'
34
+ spec.add_dependency 'her'
35
+ spec.add_dependency 'kaminari'
36
+ spec.add_development_dependency 'bundler', '~> 1.13.0'
37
+ spec.add_development_dependency 'rake', '~> 10.0'
38
+ spec.add_development_dependency 'rspec', '~> 3.0'
39
+ spec.add_development_dependency 'rubocop', '~> 0.42.0'
40
+ spec.add_development_dependency 'coveralls'
41
+ spec.add_development_dependency 'pry'
42
+ spec.add_development_dependency 'webmock'
43
+ end
metadata ADDED
@@ -0,0 +1,214 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: parasut
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Dunya Kirkali
8
+ - Onur Kucukkecce
9
+ autorequire:
10
+ bindir: exe
11
+ cert_chain: []
12
+ date: 2016-09-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: oauth2
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ! '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ! '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: her
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: kaminari
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: bundler
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: 1.13.0
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.13.0
70
+ - !ruby/object:Gem::Dependency
71
+ name: rake
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: '10.0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ~>
82
+ - !ruby/object:Gem::Version
83
+ version: '10.0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: rspec
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ~>
89
+ - !ruby/object:Gem::Version
90
+ version: '3.0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ~>
96
+ - !ruby/object:Gem::Version
97
+ version: '3.0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: rubocop
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ~>
103
+ - !ruby/object:Gem::Version
104
+ version: 0.42.0
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ~>
110
+ - !ruby/object:Gem::Version
111
+ version: 0.42.0
112
+ - !ruby/object:Gem::Dependency
113
+ name: coveralls
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: pry
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ! '>='
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: webmock
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ! '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ description: Parasut client.
155
+ email:
156
+ - dunyakirkali@ahtung.co
157
+ - onurkucukkece@ahtung.co
158
+ executables: []
159
+ extensions: []
160
+ extra_rdoc_files: []
161
+ files:
162
+ - .coveralls.yml
163
+ - .gitignore
164
+ - .rspec
165
+ - .rubocop.yml
166
+ - .travis.yml
167
+ - CODE_OF_CONDUCT.md
168
+ - Gemfile
169
+ - LICENSE.txt
170
+ - README.md
171
+ - Rakefile
172
+ - bin/console
173
+ - bin/setup
174
+ - lib/her/middleware/o_auth_provider_header.rb
175
+ - lib/her/middleware/parasut_parser.rb
176
+ - lib/parasut.rb
177
+ - lib/parasut/account.rb
178
+ - lib/parasut/contact.rb
179
+ - lib/parasut/document_status.rb
180
+ - lib/parasut/item_category.rb
181
+ - lib/parasut/options.rb
182
+ - lib/parasut/paginated.rb
183
+ - lib/parasut/payment.rb
184
+ - lib/parasut/product.rb
185
+ - lib/parasut/sales_invoice.rb
186
+ - lib/parasut/transaction.rb
187
+ - lib/parasut/version.rb
188
+ - parasut.gemspec
189
+ homepage: https://github.com/ahtung/parasut
190
+ licenses:
191
+ - MIT
192
+ metadata:
193
+ allowed_push_host: ! 'TODO: Set to "http://mygemserver.com"'
194
+ post_install_message:
195
+ rdoc_options: []
196
+ require_paths:
197
+ - lib
198
+ required_ruby_version: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ! '>='
201
+ - !ruby/object:Gem::Version
202
+ version: 2.0.0
203
+ required_rubygems_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ! '>='
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ requirements: []
209
+ rubyforge_project:
210
+ rubygems_version: 2.4.5
211
+ signing_key:
212
+ specification_version: 4
213
+ summary: Parasut client.
214
+ test_files: []