stripe2qb 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8987570f2160c419fbbe9dcac2c8d53addf95725
4
- data.tar.gz: dedad6c810f7fb2773e5ee6cd55aa36ed63a6c47
3
+ metadata.gz: 2281a6583363ac8584578d41cf4ab104d120d4d7
4
+ data.tar.gz: ba355fea2608b919411fb4e6fa1ff41cc4527e23
5
5
  SHA512:
6
- metadata.gz: 9fee3c5cff6cca199d44f772e7b9a3081adfd7b53d662f8f7709d3bb5267d02dce641a451a16d9ce30b089e02431c12c319faf2f5745680c4feac0f54d7ac83c
7
- data.tar.gz: c7897d522c869f8bba578aa4fc7478f5cf3e88d4a40d871de43ded84fbf15add4c399cbf7c7e7957ad8e5105f1461dedf856be61e5315c9ae52a9c05732a0790
6
+ metadata.gz: 26633a652d388d7603957ee621e80b4953696bd716deb5dc225f96a47b592649845c82c544543bca9da8c14461402555bd1113038bc8e913e0edf117e18a15cf
7
+ data.tar.gz: ec1fe00ab148317c5455f3f877c9db1d2dde5e8f8b055cfe442360c69bea570e8ca4a4c358750243223e176b748b40b19ff7bf170a03c3affdf46c8c597bbd80
@@ -1,3 +1,3 @@
1
1
  module Stripe2QB
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe2qb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Wang
@@ -88,17 +88,6 @@ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - ".gitignore"
92
- - ".rspec"
93
- - ".travis.yml"
94
- - CODE_OF_CONDUCT.md
95
- - Gemfile
96
- - LICENSE.txt
97
- - README.md
98
- - Rakefile
99
- - bin/console
100
- - bin/setup
101
- - config/.keep
102
91
  - config/stripe2qb.yml
103
92
  - lib/stripe2qb.rb
104
93
  - lib/stripe2qb/configuration.rb
@@ -112,7 +101,6 @@ files:
112
101
  - lib/stripe2qb/quickbooks_api/access_token.rb
113
102
  - lib/stripe2qb/stripe_api.rb
114
103
  - lib/stripe2qb/version.rb
115
- - stripe2qb.gemspec
116
104
  homepage: http://rubygems.org/gems/stripe2qb
117
105
  licenses:
118
106
  - MIT
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.0
4
- before_install: gem install bundler -v 1.11.2
data/CODE_OF_CONDUCT.md DELETED
@@ -1,49 +0,0 @@
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 anthony@anthonywang.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 DELETED
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in stripe2qb.gemspec
4
- gemspec
5
-
6
- gem 'stripe', git: 'https://github.com/stripe/stripe-ruby'
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 Anthony Wang
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 DELETED
@@ -1,93 +0,0 @@
1
- # Stripe2QB
2
-
3
- [Stripe2QB](https://github.com/wangthony/stripe2qb) reads your Stripe
4
- transactions and imports them into Quickbooks.
5
-
6
- Stripe2QB is built on top of the [stripe](https://github.com/stripe/stripe-ruby)
7
- and [quickbooks-ruby](https://github.com/ruckus/quickbooks-ruby) gems.
8
-
9
- ## Installation
10
-
11
- Add this line to your application's Gemfile:
12
-
13
- ```ruby
14
- gem 'stripe2qb'
15
- ```
16
-
17
- And then execute:
18
-
19
- $ bundle
20
-
21
- Or install it yourself as:
22
-
23
- $ gem install stripe2qb
24
-
25
- ## Configuration
26
-
27
- The suggested way to configure Stripe2QB is by pointing it to a YAML file.
28
- There is a template file at `config/stripe2qb.yml` that you can copy into your
29
- application. See that file for information on configuration options.
30
-
31
- ```ruby
32
- s2qb = Stripe2QB.new # look for the default at config/stripe2qb.yml
33
-
34
- s2qb = Stripe2QB.new('path/to/config.yml') # use a different config file path
35
-
36
- s2qb = Stripe2QB.new(quickbooks_api: { ... }, stripe_api: { ... }) # use a Hash
37
- ```
38
-
39
- ## Usage
40
-
41
- The `#process` method looks for deposited (paid)
42
- [Stripe Transfers](https://stripe.com/docs/api#transfers) on a certain date
43
- (or date range), and converts them into
44
- [Quickbooks Deposits](https://developer.intuit.com/docs/api/accounting/deposit).
45
-
46
- ```ruby
47
- s2qb = Stripe2QB.new
48
-
49
- # process transfers on or after October 1st, 2016
50
- s2qb.process('2016-10-01')
51
-
52
- # process transfers in the month of October, 2016
53
- s2qb.process('2016-10-01', '2016-11-01')
54
- ```
55
-
56
- In addition to creating a Deposit, all
57
- [Stripe Charges](https://stripe.com/docs/api#charges) associated with each
58
- Transfer are converted into
59
- [Quickbooks SalesReceipts](https://developer.intuit.com/docs/api/accounting/salesreceipt),
60
- and all [Stripe Refunds](https://stripe.com/docs/api#refunds) associated with
61
- each Transfer are converted into
62
- [Quickbooks RefundReceipts](https://developer.intuit.com/docs/api/accounting/refundreceipt).
63
- The SalesReceipts and RefundReceipts are linked to the corresponding Deposit.
64
-
65
- Also, each Deposit will contain a line item for the Stripe processing fees and
66
- fee refunds included in the Transfer.
67
-
68
- You can safely re-process dates without creating duplicate records, as long as
69
- you do not edit the `payment_ref_number` or `private_note` fields in records
70
- created by Stripe2QB.
71
-
72
- ## Disclaimer
73
-
74
- Even though this gem is used in production applications, and most of the API
75
- operations involved are reversible / fixable, there may be cases where API calls
76
- made by this gem have unforeseen consequences.
77
-
78
- Therefore, you assume all liability for any unwanted changes to data caused by
79
- use of this gem. The author and contributors assume no responsibility. **Use at your own risk.**
80
-
81
- ## Development
82
-
83
- 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.
84
-
85
- 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).
86
-
87
- ## Contributing
88
-
89
- Bug reports and pull requests are welcome on GitHub. 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.
90
-
91
- ## License
92
-
93
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile DELETED
@@ -1,6 +0,0 @@
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 DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "stripe2qb"
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 DELETED
@@ -1,8 +0,0 @@
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
data/config/.keep DELETED
File without changes
data/stripe2qb.gemspec DELETED
@@ -1,36 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'stripe2qb/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "stripe2qb"
8
- spec.version = Stripe2QB::VERSION
9
- spec.authors = ["Anthony Wang"]
10
- spec.email = ["anthony@anthonywang.com"]
11
-
12
- spec.summary = 'Import Stripe transactions into Quickbooks'
13
- spec.description = 'Import Stripe transactions into Quickbooks. Relies on the Stripe and Quickbooks gems.'
14
- spec.homepage = "http://rubygems.org/gems/stripe2qb"
15
- spec.license = "MIT"
16
-
17
- # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
- # delete this section to allow pushing this gem to any host.
19
- if spec.respond_to?(:metadata)
20
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
- else
22
- raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
- end
24
-
25
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
- spec.bindir = "exe"
27
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
29
-
30
- spec.add_development_dependency "bundler", "~> 1.11"
31
- spec.add_development_dependency "rake", "~> 10.0"
32
- spec.add_development_dependency "rspec", "~> 3.0"
33
-
34
- spec.add_runtime_dependency 'quickbooks-ruby', '~> 0.4'
35
- spec.add_runtime_dependency 'activesupport'
36
- end