tillbell 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.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +29 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.md +341 -0
  5. data/app/controllers/tillbell/notifications_controller.rb +71 -0
  6. data/app/controllers/tillbell/purchases_controller.rb +44 -0
  7. data/app/helpers/tillbell/paywall_builder.rb +81 -0
  8. data/app/helpers/tillbell/paywall_helper.rb +40 -0
  9. data/app/jobs/tillbell/sync_job.rb +21 -0
  10. data/app/models/pay/google_play/customer.rb +52 -0
  11. data/app/models/pay/google_play/subscription.rb +197 -0
  12. data/config/locales/en.yml +16 -0
  13. data/config/routes.rb +7 -0
  14. data/contract/examples/manage.request.json +3 -0
  15. data/contract/examples/products.reply.ok.json +15 -0
  16. data/contract/examples/products.reply.unavailable.json +4 -0
  17. data/contract/examples/products.request.json +15 -0
  18. data/contract/examples/purchase.reply.already_owned.json +3 -0
  19. data/contract/examples/purchase.reply.canceled.json +3 -0
  20. data/contract/examples/purchase.reply.error.json +4 -0
  21. data/contract/examples/purchase.reply.pending.json +5 -0
  22. data/contract/examples/purchase.reply.purchased.json +5 -0
  23. data/contract/examples/purchase.reply.unavailable.json +3 -0
  24. data/contract/examples/purchase.request.json +8 -0
  25. data/contract/examples/purchase.request.plan_change.json +7 -0
  26. data/contract/examples/restore.reply.empty.json +4 -0
  27. data/contract/examples/restore.reply.ok.json +9 -0
  28. data/contract/examples/restore.request.json +5 -0
  29. data/contract/manage.request.json +28 -0
  30. data/contract/products.reply.json +68 -0
  31. data/contract/products.request.json +47 -0
  32. data/contract/purchase.reply.json +54 -0
  33. data/contract/purchase.request.json +65 -0
  34. data/contract/restore.reply.json +58 -0
  35. data/contract/restore.request.json +19 -0
  36. data/lib/generators/tillbell/install/install_generator.rb +34 -0
  37. data/lib/generators/tillbell/install/templates/initializer.rb +33 -0
  38. data/lib/generators/tillbell/install/templates/tillbell_controller.js +147 -0
  39. data/lib/tillbell/engine.rb +42 -0
  40. data/lib/tillbell/google_play.rb +110 -0
  41. data/lib/tillbell/version.rb +3 -0
  42. data/lib/tillbell.rb +91 -0
  43. metadata +142 -0
metadata ADDED
@@ -0,0 +1,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tillbell
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Pierre Filstroff
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: rails
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '8.0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '8.0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: pay
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '12.0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '12.0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: google-apis-androidpublisher_v3
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0.100'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0.100'
54
+ - !ruby/object:Gem::Dependency
55
+ name: googleauth
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '1.11'
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '1.11'
68
+ description: 'Tillbell adds a Google Play processor to the Pay gem: server-side purchase
69
+ verification, acknowledgment, real-time developer notifications and a paywall that
70
+ talks to a Hotwire Native bridge component.'
71
+ executables: []
72
+ extensions: []
73
+ extra_rdoc_files: []
74
+ files:
75
+ - CHANGELOG.md
76
+ - MIT-LICENSE
77
+ - README.md
78
+ - app/controllers/tillbell/notifications_controller.rb
79
+ - app/controllers/tillbell/purchases_controller.rb
80
+ - app/helpers/tillbell/paywall_builder.rb
81
+ - app/helpers/tillbell/paywall_helper.rb
82
+ - app/jobs/tillbell/sync_job.rb
83
+ - app/models/pay/google_play/customer.rb
84
+ - app/models/pay/google_play/subscription.rb
85
+ - config/locales/en.yml
86
+ - config/routes.rb
87
+ - contract/examples/manage.request.json
88
+ - contract/examples/products.reply.ok.json
89
+ - contract/examples/products.reply.unavailable.json
90
+ - contract/examples/products.request.json
91
+ - contract/examples/purchase.reply.already_owned.json
92
+ - contract/examples/purchase.reply.canceled.json
93
+ - contract/examples/purchase.reply.error.json
94
+ - contract/examples/purchase.reply.pending.json
95
+ - contract/examples/purchase.reply.purchased.json
96
+ - contract/examples/purchase.reply.unavailable.json
97
+ - contract/examples/purchase.request.json
98
+ - contract/examples/purchase.request.plan_change.json
99
+ - contract/examples/restore.reply.empty.json
100
+ - contract/examples/restore.reply.ok.json
101
+ - contract/examples/restore.request.json
102
+ - contract/manage.request.json
103
+ - contract/products.reply.json
104
+ - contract/products.request.json
105
+ - contract/purchase.reply.json
106
+ - contract/purchase.request.json
107
+ - contract/restore.reply.json
108
+ - contract/restore.request.json
109
+ - lib/generators/tillbell/install/install_generator.rb
110
+ - lib/generators/tillbell/install/templates/initializer.rb
111
+ - lib/generators/tillbell/install/templates/tillbell_controller.js
112
+ - lib/tillbell.rb
113
+ - lib/tillbell/engine.rb
114
+ - lib/tillbell/google_play.rb
115
+ - lib/tillbell/version.rb
116
+ homepage: https://github.com/pmakerhq/tillbell-rails
117
+ licenses:
118
+ - MIT
119
+ metadata:
120
+ homepage_uri: https://github.com/pmakerhq/tillbell-rails
121
+ source_code_uri: https://github.com/pmakerhq/tillbell-rails
122
+ changelog_uri: https://github.com/pmakerhq/tillbell-rails/blob/main/CHANGELOG.md
123
+ rubygems_mfa_required: 'true'
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '3.3'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ requirements: []
138
+ rubygems_version: 4.0.23
139
+ specification_version: 4
140
+ summary: Self-hosted Google Play subscriptions for Rails + Hotwire Native apps, built
141
+ on Pay.
142
+ test_files: []