compensated 0.1.0.pre9 → 0.1.0.pre10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/LICENSE.md +40 -0
- data/README.md +2 -2
- data/compensated.gemspec +4 -3
- data/lib/compensated/stripe/event_parser.rb +2 -2
- data/lib/compensated/version.rb +1 -1
- metadata +11 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7353f049b20ed0db094b28209982725fb562a12acf9949e242c3f5a1f0abe2fe
|
4
|
+
data.tar.gz: 6b5b0b924cdb95c13d1c34588f72ae2646376101c55559e0487e911d238650ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41833b7f2b6f404bd7db5608df2efdcf3ad78d834275bddfbfac748a2222ba329dc93d10948f41043944f64fe1b1d2e48a5290198078a675834b1c6928c34376
|
7
|
+
data.tar.gz: a085a55f3004888325093f863135dc226ae2e3c545c80da9eeb83a24df88c3ab0d3596cae5f9e595eb8310b41e75938adb88785a4e959250422f7cebc1020b4c
|
data/Gemfile.lock
CHANGED
data/LICENSE.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
The Prosperity Public License 2.0.0
|
2
|
+
|
3
|
+
Contributor: Zinc Collective LLC
|
4
|
+
|
5
|
+
Source Code: https://github.com/zinc-collective/compensated
|
6
|
+
|
7
|
+
This license lets you use and share this software for free,
|
8
|
+
with a trial-length time limit on commercial use. Specifically:
|
9
|
+
|
10
|
+
If you follow the rules below, you may do everything with this
|
11
|
+
software that would otherwise infringe either the contributor's
|
12
|
+
copyright in it, any patent claim the contributor can license
|
13
|
+
that covers this software as of the contributor's latest
|
14
|
+
contribution, or both.
|
15
|
+
|
16
|
+
1. You must limit use of this software in any manner primarily
|
17
|
+
intended for or directed toward commercial advantage or
|
18
|
+
private monetary compensation to a trial period of 32
|
19
|
+
consecutive calendar days. This limit does not apply to use in
|
20
|
+
developing feedback, modifications, or extensions that you
|
21
|
+
contribute back to those giving this license.
|
22
|
+
|
23
|
+
2. Ensure everyone who gets a copy of this software from you, in
|
24
|
+
source code or any other form, gets the text of this license
|
25
|
+
and the contributor and source code lines above.
|
26
|
+
|
27
|
+
3. Do not make any legal claim against anyone for infringing any
|
28
|
+
patent claim they would infringe by using this software alone,
|
29
|
+
accusing this software, with or without changes, alone or as
|
30
|
+
part of a larger application.
|
31
|
+
|
32
|
+
You are excused for unknowingly breaking rule 1 if you stop
|
33
|
+
doing anything requiring this license within 30 days of
|
34
|
+
learning you broke the rule.
|
35
|
+
|
36
|
+
**This software comes as is, without any warranty at all. As far
|
37
|
+
as the law allows, the contributor will not be liable for any
|
38
|
+
damages related to this software or this license, for any kind of
|
39
|
+
legal claim.**
|
40
|
+
|
data/README.md
CHANGED
@@ -61,8 +61,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
61
61
|
|
62
62
|
## Contributing
|
63
63
|
|
64
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/zinc-
|
64
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/zinc-collective/compensated. 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.
|
65
65
|
|
66
66
|
## Code of Conduct
|
67
67
|
|
68
|
-
Everyone interacting in the Compensated project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/zinc-
|
68
|
+
Everyone interacting in the Compensated project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/zinc-collective/compensated/blob/primary/CODE_OF_CONDUCT.md).
|
data/compensated.gemspec
CHANGED
@@ -10,7 +10,8 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = "Provide value (In Ruby!). Get paid."
|
12
12
|
spec.description = "Compensated makes handling transactions slightly less of a nightmare."
|
13
|
-
spec.homepage = "https://github.com/zinc-
|
13
|
+
spec.homepage = "https://github.com/zinc-collective/compensated"
|
14
|
+
spec.license = "The Prosperity Public License"
|
14
15
|
|
15
16
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
16
17
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
@@ -18,8 +19,8 @@ Gem::Specification.new do |spec|
|
|
18
19
|
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
19
20
|
|
20
21
|
spec.metadata["homepage_uri"] = spec.homepage
|
21
|
-
spec.metadata["source_code_uri"] = "https://github.com/zinc-
|
22
|
-
spec.metadata["changelog_uri"] = "https://github.com/zinc-
|
22
|
+
spec.metadata["source_code_uri"] = "https://github.com/zinc-collective/compensated"
|
23
|
+
spec.metadata["changelog_uri"] = "https://github.com/zinc-collective/compensated/primary/CHANGELOG.md"
|
23
24
|
else
|
24
25
|
raise "RubyGems 2.0 or newer is required to protect against " \
|
25
26
|
"public gem pushes."
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "compensated/event_parser"
|
2
2
|
module Compensated
|
3
3
|
module Stripe
|
4
|
-
SUPPORTED_EVENTS = %w[charge.succeeded invoice.payment_succeeded]
|
4
|
+
SUPPORTED_EVENTS = %w[charge.succeeded invoice.payment_succeeded invoice.payment_failed customer.subscription.deleted]
|
5
5
|
class EventParser < Compensated::EventParser
|
6
6
|
def parses?(request)
|
7
7
|
return false if request.nil? || request.empty?
|
@@ -37,7 +37,7 @@ module Compensated
|
|
37
37
|
|
38
38
|
private def amount(data)
|
39
39
|
{
|
40
|
-
currency: data[:data][:object][:currency]
|
40
|
+
currency: data[:data][:object][:currency]&.upcase,
|
41
41
|
due: due(data),
|
42
42
|
paid: paid(data),
|
43
43
|
remaining: remaining(data),
|
data/lib/compensated/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compensated
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zee
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- ".rspec"
|
78
78
|
- Gemfile
|
79
79
|
- Gemfile.lock
|
80
|
+
- LICENSE.md
|
80
81
|
- README.md
|
81
82
|
- Rakefile
|
82
83
|
- compensated.gemspec
|
@@ -93,12 +94,13 @@ files:
|
|
93
94
|
- lib/compensated/stripe/event_parser.rb
|
94
95
|
- lib/compensated/stripe/version.rb
|
95
96
|
- lib/compensated/version.rb
|
96
|
-
homepage: https://github.com/zinc-
|
97
|
-
licenses:
|
97
|
+
homepage: https://github.com/zinc-collective/compensated
|
98
|
+
licenses:
|
99
|
+
- The Prosperity Public License
|
98
100
|
metadata:
|
99
|
-
homepage_uri: https://github.com/zinc-
|
100
|
-
source_code_uri: https://github.com/zinc-
|
101
|
-
changelog_uri: https://github.com/zinc-
|
101
|
+
homepage_uri: https://github.com/zinc-collective/compensated
|
102
|
+
source_code_uri: https://github.com/zinc-collective/compensated
|
103
|
+
changelog_uri: https://github.com/zinc-collective/compensated/primary/CHANGELOG.md
|
102
104
|
post_install_message:
|
103
105
|
rdoc_options: []
|
104
106
|
require_paths:
|
@@ -114,7 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
116
|
- !ruby/object:Gem::Version
|
115
117
|
version: 1.3.1
|
116
118
|
requirements: []
|
117
|
-
|
119
|
+
rubyforge_project:
|
120
|
+
rubygems_version: 2.7.6.2
|
118
121
|
signing_key:
|
119
122
|
specification_version: 4
|
120
123
|
summary: Provide value (In Ruby!). Get paid.
|