tillbell 0.5.1 → 0.7.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 +4 -4
- data/CHANGELOG.md +60 -0
- data/README.md +88 -9
- data/app/controllers/tillbell/app_store_notifications_controller.rb +35 -0
- data/app/controllers/tillbell/purchases_controller.rb +27 -5
- data/app/helpers/tillbell/paywall_builder.rb +40 -11
- data/app/helpers/tillbell/paywall_helper.rb +10 -0
- data/app/models/pay/app_store/customer.rb +49 -0
- data/app/models/pay/app_store/subscription.rb +273 -0
- data/app/models/pay/google_play/subscription.rb +11 -2
- data/config/routes.rb +3 -0
- data/contract/examples/purchase.reply.pending_approval.json +4 -0
- data/contract/purchase.reply.json +31 -16
- data/lib/generators/tillbell/install/templates/initializer.rb +13 -1
- data/lib/generators/tillbell/install/templates/tillbell_controller.js +65 -10
- data/lib/tillbell/app_store.rb +178 -0
- data/lib/tillbell/check.rb +2 -1
- data/lib/tillbell/engine.rb +56 -5
- data/lib/tillbell/owner.rb +44 -4
- data/lib/tillbell/test_helpers.rb +98 -0
- data/lib/tillbell/version.rb +1 -1
- data/lib/tillbell.rb +75 -16
- metadata +27 -1
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tillbell
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- pmakerhq
|
|
@@ -65,6 +65,26 @@ dependencies:
|
|
|
65
65
|
- - ">="
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
67
|
version: '1.11'
|
|
68
|
+
- !ruby/object:Gem::Dependency
|
|
69
|
+
name: jwt
|
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '2.2'
|
|
75
|
+
- - "<"
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '4'
|
|
78
|
+
type: :runtime
|
|
79
|
+
prerelease: false
|
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - ">="
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '2.2'
|
|
85
|
+
- - "<"
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: '4'
|
|
68
88
|
description: 'Tillbell adds a Google Play processor to the Pay gem: server-side purchase
|
|
69
89
|
verification, acknowledgment, real-time developer notifications and a paywall that
|
|
70
90
|
talks to a Hotwire Native bridge component.'
|
|
@@ -75,11 +95,14 @@ files:
|
|
|
75
95
|
- CHANGELOG.md
|
|
76
96
|
- MIT-LICENSE
|
|
77
97
|
- README.md
|
|
98
|
+
- app/controllers/tillbell/app_store_notifications_controller.rb
|
|
78
99
|
- app/controllers/tillbell/notifications_controller.rb
|
|
79
100
|
- app/controllers/tillbell/purchases_controller.rb
|
|
80
101
|
- app/helpers/tillbell/paywall_builder.rb
|
|
81
102
|
- app/helpers/tillbell/paywall_helper.rb
|
|
82
103
|
- app/jobs/tillbell/sync_job.rb
|
|
104
|
+
- app/models/pay/app_store/customer.rb
|
|
105
|
+
- app/models/pay/app_store/subscription.rb
|
|
83
106
|
- app/models/pay/google_play/customer.rb
|
|
84
107
|
- app/models/pay/google_play/subscription.rb
|
|
85
108
|
- config/locales/de.yml
|
|
@@ -95,6 +118,7 @@ files:
|
|
|
95
118
|
- contract/examples/purchase.reply.canceled.json
|
|
96
119
|
- contract/examples/purchase.reply.error.json
|
|
97
120
|
- contract/examples/purchase.reply.pending.json
|
|
121
|
+
- contract/examples/purchase.reply.pending_approval.json
|
|
98
122
|
- contract/examples/purchase.reply.purchased.json
|
|
99
123
|
- contract/examples/purchase.reply.unavailable.json
|
|
100
124
|
- contract/examples/purchase.request.json
|
|
@@ -115,10 +139,12 @@ files:
|
|
|
115
139
|
- lib/generators/tillbell/install/templates/tillbell_controller.js
|
|
116
140
|
- lib/tasks/tillbell.rake
|
|
117
141
|
- lib/tillbell.rb
|
|
142
|
+
- lib/tillbell/app_store.rb
|
|
118
143
|
- lib/tillbell/check.rb
|
|
119
144
|
- lib/tillbell/engine.rb
|
|
120
145
|
- lib/tillbell/google_play.rb
|
|
121
146
|
- lib/tillbell/owner.rb
|
|
147
|
+
- lib/tillbell/test_helpers.rb
|
|
122
148
|
- lib/tillbell/version.rb
|
|
123
149
|
homepage: https://github.com/pmakerhq/tillbell-rails
|
|
124
150
|
licenses:
|