paddle 1.0.0 → 1.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 (71) hide show
  1. checksums.yaml +7 -0
  2. data/.env.example +3 -0
  3. data/Gemfile +13 -0
  4. data/Gemfile.lock +31 -0
  5. data/README.md +402 -0
  6. data/Rakefile +8 -10
  7. data/bin/console +25 -0
  8. data/bin/setup +8 -0
  9. data/lib/paddle/classic/client.rb +87 -0
  10. data/lib/paddle/classic/collection.rb +29 -0
  11. data/lib/paddle/classic/objects/charge.rb +6 -0
  12. data/lib/paddle/classic/objects/coupon.rb +6 -0
  13. data/lib/paddle/classic/objects/license.rb +6 -0
  14. data/lib/paddle/classic/objects/modifier.rb +6 -0
  15. data/lib/paddle/classic/objects/pay_link.rb +6 -0
  16. data/lib/paddle/classic/objects/payment.rb +6 -0
  17. data/lib/paddle/classic/objects/payment_refund.rb +6 -0
  18. data/lib/paddle/classic/objects/plan.rb +6 -0
  19. data/lib/paddle/classic/objects/product.rb +6 -0
  20. data/lib/paddle/classic/objects/transaction.rb +6 -0
  21. data/lib/paddle/classic/objects/user.rb +6 -0
  22. data/lib/paddle/classic/objects/webhook.rb +6 -0
  23. data/lib/paddle/classic/resource.rb +63 -0
  24. data/lib/paddle/classic/resources/charges.rb +13 -0
  25. data/lib/paddle/classic/resources/coupons.rb +33 -0
  26. data/lib/paddle/classic/resources/licenses.rb +15 -0
  27. data/lib/paddle/classic/resources/modifiers.rb +26 -0
  28. data/lib/paddle/classic/resources/pay_links.rb +13 -0
  29. data/lib/paddle/classic/resources/payments.rb +24 -0
  30. data/lib/paddle/classic/resources/plans.rb +21 -0
  31. data/lib/paddle/classic/resources/products.rb +12 -0
  32. data/lib/paddle/classic/resources/transactions.rb +12 -0
  33. data/lib/paddle/classic/resources/users.rb +42 -0
  34. data/lib/paddle/classic/resources/webhooks.rb +12 -0
  35. data/lib/paddle/client.rb +71 -0
  36. data/lib/paddle/collection.rb +27 -0
  37. data/lib/paddle/configuration.rb +32 -0
  38. data/lib/paddle/error.rb +4 -0
  39. data/lib/paddle/models/address.rb +30 -0
  40. data/lib/paddle/models/adjustment.rb +20 -0
  41. data/lib/paddle/models/business.rb +30 -0
  42. data/lib/paddle/models/customer.rb +30 -0
  43. data/lib/paddle/models/discount.rb +30 -0
  44. data/lib/paddle/models/event.rb +14 -0
  45. data/lib/paddle/models/event_type.rb +14 -0
  46. data/lib/paddle/models/notification.rb +30 -0
  47. data/lib/paddle/models/notification_log.rb +4 -0
  48. data/lib/paddle/models/notification_setting.rb +34 -0
  49. data/lib/paddle/models/price.rb +30 -0
  50. data/lib/paddle/models/product.rb +30 -0
  51. data/lib/paddle/models/subscription.rb +56 -0
  52. data/lib/paddle/models/transaction.rb +49 -0
  53. data/lib/paddle/object.rb +19 -0
  54. data/lib/paddle/version.rb +5 -0
  55. data/lib/paddle.rb +72 -5
  56. data/paddle.gemspec +30 -0
  57. metadata +99 -124
  58. data/.autotest +0 -23
  59. data/CHANGELOG.rdoc +0 -6
  60. data/Manifest.txt +0 -16
  61. data/README.rdoc +0 -62
  62. data/lib/images/ruby.png +0 -0
  63. data/lib/rdoc/discover.rb +0 -1
  64. data/lib/rdoc/generator/paddle.rb +0 -144
  65. data/lib/templates/classfile.html.erb +0 -115
  66. data/lib/templates/container.xml +0 -7
  67. data/lib/templates/content.opf.erb +0 -34
  68. data/lib/templates/cover.html.erb +0 -18
  69. data/lib/templates/title.html.erb +0 -18
  70. data/lib/templates/toc.ncx.erb +0 -36
  71. data/test/test_paddle.rb +0 -13
@@ -0,0 +1,30 @@
1
+ module Paddle
2
+ class Notification < Object
3
+
4
+ class << self
5
+
6
+ def list(**params)
7
+ response = Client.get_request("notifications", params: params)
8
+ Collection.from_response(response, type: Notification)
9
+ end
10
+
11
+ def retrieve(id:)
12
+ response = Client.get_request("notifications/#{id}")
13
+ Notification.new(response.body["data"])
14
+ end
15
+
16
+ # Currently not working
17
+ # def replay(id)
18
+ # response = Client.post_request("notifications/#{id}/replay", body: {})
19
+ # Notification.new(response.body["data"])
20
+ # end
21
+
22
+ def logs(id:, **params)
23
+ response = Client.get_request("notifications/#{id}/logs", params: params)
24
+ Collection.from_response(response, type: NotificationLog)
25
+ end
26
+
27
+ end
28
+
29
+ end
30
+ end
@@ -0,0 +1,4 @@
1
+ module Paddle
2
+ class NotificationLog < Object
3
+ end
4
+ end
@@ -0,0 +1,34 @@
1
+ module Paddle
2
+ class NotificationSetting < Object
3
+
4
+ class << self
5
+
6
+ def list(**params)
7
+ response = Client.get_request("notification-settings", params: params)
8
+ Collection.from_response(response, type: NotificationSetting)
9
+ end
10
+
11
+ def create(description:, destination:, type:, subscribed_events:, **params)
12
+ attrs = {description: description, destination: destination, type: type, subscribed_events: subscribed_events}
13
+ response = Client.post_request("notification-settings", body: attrs.merge(params))
14
+ NotificationSetting.new(response.body["data"])
15
+ end
16
+
17
+ def retrieve(id:)
18
+ response = Client.get_request("notification-settings/#{id}")
19
+ NotificationSetting.new(response.body["data"])
20
+ end
21
+
22
+ def update(id:, **params)
23
+ response = Client.patch_request("notification-settings/#{id}", body: params)
24
+ NotificationSetting.new(response.body["data"])
25
+ end
26
+
27
+ def delete(id:)
28
+ Client.delete_request("notification-settings/#{id}")
29
+ end
30
+
31
+ end
32
+
33
+ end
34
+ end
@@ -0,0 +1,30 @@
1
+ module Paddle
2
+ class Price < Object
3
+
4
+ class << self
5
+
6
+ def list(**params)
7
+ response = Client.get_request("prices", params: params)
8
+ Collection.from_response(response, type: Price)
9
+ end
10
+
11
+ def create(product_id:, description:, amount:, currency:, **params)
12
+ attrs = {product_id: product_id, description: description, unit_price: {amount: amount, currency_code: currency}}
13
+ response = Client.post_request("prices", body: attrs.merge(params))
14
+ Price.new(response.body["data"])
15
+ end
16
+
17
+ def retrieve(id:)
18
+ response = Client.get_request("prices/#{id}")
19
+ Price.new(response.body["data"])
20
+ end
21
+
22
+ def update(id:, **params)
23
+ response = Client.patch_request("prices/#{id}", body: params)
24
+ Price.new(response.body["data"])
25
+ end
26
+
27
+ end
28
+
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ module Paddle
2
+ class Product < Object
3
+
4
+ class << self
5
+
6
+ def list(**params)
7
+ response = Client.get_request("products", params: params)
8
+ Collection.from_response(response, type: Product)
9
+ end
10
+
11
+ def create(name:, tax_category:, **params)
12
+ attrs = {name: name, tax_category: tax_category}
13
+ response = Client.post_request("products", body: attrs.merge(params))
14
+ Product.new(response.body["data"])
15
+ end
16
+
17
+ def retrieve(id:)
18
+ response = Client.get_request("products/#{id}")
19
+ Product.new(response.body["data"])
20
+ end
21
+
22
+ def update(id:, **params)
23
+ response = Client.patch_request("products/#{id}", body: params)
24
+ Product.new(response.body["data"])
25
+ end
26
+
27
+ end
28
+
29
+ end
30
+ end
@@ -0,0 +1,56 @@
1
+ module Paddle
2
+ class Subscription < Object
3
+
4
+ class << self
5
+
6
+ def list(**params)
7
+ response = Client.get_request("subscriptions", params: params)
8
+ Collection.from_response(response, type: Subscription)
9
+ end
10
+
11
+ def retrieve(id:)
12
+ response = Client.get_request("subscriptions/#{id}")
13
+ Subscription.new(response.body["data"])
14
+ end
15
+
16
+ def get_transaction(id:)
17
+ response = Client.get_request("subscriptions/#{id}/update-payment-method-transaction")
18
+ Subscription.new(response.body["data"])
19
+ end
20
+
21
+ def preview(id:, **params)
22
+ response = Client.patch_request("subscriptions/#{id}/preview", body: params)
23
+ Subscription.new(response.body["data"])
24
+ end
25
+
26
+ def update(id:, **params)
27
+ response = Client.patch_request("subscriptions/#{id}", body: params)
28
+ Subscription.new(response.body["data"])
29
+ end
30
+
31
+ def charge(id:, items:, effective_from:, **params)
32
+ attrs = {items: items, effective_from: effective_from}
33
+ response = Client.post_request("subscriptions/#{id}/charge", body: attrs.merge(params))
34
+ Subscription.new(response.body["data"])
35
+ end
36
+
37
+ def pause(id:, **params)
38
+ response = Client.post_request("subscriptions/#{id}/pause", body: params)
39
+ Subscription.new(response.body["data"])
40
+ end
41
+
42
+ def resume(id:, effective_from:, **params)
43
+ attrs = {effective_from: effective_from}
44
+ response = Client.post_request("subscriptions/#{id}/resume", body: attrs.merge(params))
45
+ Subscription.new(response.body["data"])
46
+ end
47
+
48
+ def cancel(id:, **params)
49
+ response = Client.post_request("subscriptions/#{id}/cancel", body: params)
50
+ Subscription.new(response.body["data"])
51
+ end
52
+
53
+ end
54
+
55
+ end
56
+ end
@@ -0,0 +1,49 @@
1
+ module Paddle
2
+ class Transaction < Object
3
+
4
+ class << self
5
+
6
+ def list(**params)
7
+ response = Client.get_request("transactions", params: params)
8
+ Collection.from_response(response, type: Transaction)
9
+ end
10
+
11
+ def create(items:, **params)
12
+ attrs = {items: items}
13
+ response = Client.post_request("transactions", body: attrs.merge(params))
14
+ Transaction.new(response.body["data"])
15
+ end
16
+
17
+ def retrieve(id:)
18
+ response = Client.get_request("transactions/#{id}")
19
+ Transaction.new(response.body["data"])
20
+ end
21
+
22
+ def update(id:, **params)
23
+ response = Client.patch_request("transactions/#{id}", body: params)
24
+ Transaction.new(response.body["data"])
25
+ end
26
+
27
+ def invoice(id:)
28
+ response = Client.get_request("transactions/#{id}/invoice")
29
+ if response.success?
30
+ return response.body["data"]["url"]
31
+ end
32
+ end
33
+
34
+ def preview(items:, **params)
35
+ attrs = {items: items}
36
+ response = Client.post_request("transactions/preview", body: attrs.merge(params))
37
+ Transaction.new(response.body["data"])
38
+ end
39
+
40
+ def preview_prices(items:, **params)
41
+ attrs = {items: items}
42
+ response = Client.post_request("pricing-preview", body: attrs.merge(params))
43
+ Transaction.new(response.body["data"])
44
+ end
45
+
46
+ end
47
+
48
+ end
49
+ end
@@ -0,0 +1,19 @@
1
+ require "ostruct"
2
+
3
+ module Paddle
4
+ class Object < OpenStruct
5
+ def initialize(attributes)
6
+ super to_ostruct(attributes)
7
+ end
8
+
9
+ def to_ostruct(obj)
10
+ if obj.is_a?(Hash)
11
+ OpenStruct.new(obj.map { |key, val| [key, to_ostruct(val)] }.to_h)
12
+ elsif obj.is_a?(Array)
13
+ obj.map { |o| to_ostruct(o) }
14
+ else # Assumed to be a primitive value
15
+ obj
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Paddle
4
+ VERSION = "1.1.0"
5
+ end
data/lib/paddle.rb CHANGED
@@ -1,8 +1,75 @@
1
- ###
2
- # Paddle is an RDoc template that will emit iPad compatible books!
1
+ # frozen_string_literal: true
2
+
3
+ require "faraday"
4
+
5
+ require_relative "paddle/version"
6
+
3
7
  module Paddle
4
- # Test Attribute
5
- attr_accessor :foo
6
8
 
7
- VERSION = '1.0.0'
9
+ autoload :Configuration, "paddle/configuration"
10
+ autoload :Client, "paddle/client"
11
+ autoload :Collection, "paddle/collection"
12
+ autoload :Error, "paddle/error"
13
+ autoload :Object, "paddle/object"
14
+
15
+ class << self
16
+ attr_writer :config
17
+ end
18
+
19
+ def self.configure
20
+ yield(config) if block_given?
21
+ end
22
+
23
+ def self.config
24
+ @config ||= Paddle::Configuration.new
25
+ end
26
+
27
+ # Load Billing APIs
28
+ autoload :Product, "paddle/models/product"
29
+ autoload :Price, "paddle/models/price"
30
+ autoload :Discount, "paddle/models/discount"
31
+ autoload :Customer, "paddle/models/customer"
32
+ autoload :Address, "paddle/models/address"
33
+ autoload :Business, "paddle/models/business"
34
+ autoload :Transaction, "paddle/models/transaction"
35
+ autoload :Subscription, "paddle/models/subscription"
36
+ autoload :Adjustment, "paddle/models/adjustment"
37
+ autoload :EventType, "paddle/models/event_type"
38
+ autoload :Event, "paddle/models/event"
39
+ autoload :NotificationSetting, "paddle/models/notification_setting"
40
+ autoload :Notification, "paddle/models/notification"
41
+ autoload :NotificationLog, "paddle/models/notification_log"
42
+
43
+ # Load Classic APIs
44
+ module Classic
45
+ autoload :Client, "paddle/classic/client"
46
+ autoload :Collection, "paddle/classic/collection"
47
+ autoload :Resource, "paddle/classic/resource"
48
+
49
+ autoload :PlansResource, "paddle/classic/resources/plans"
50
+ autoload :CouponsResource, "paddle/classic/resources/coupons"
51
+ autoload :ProductsResource, "paddle/classic/resources/products"
52
+ autoload :LicensesResource, "paddle/classic/resources/licenses"
53
+ autoload :PayLinksResource, "paddle/classic/resources/pay_links"
54
+ autoload :TransactionsResource, "paddle/classic/resources/transactions"
55
+ autoload :PaymentsResource, "paddle/classic/resources/payments"
56
+ autoload :UsersResource, "paddle/classic/resources/users"
57
+ autoload :WebhooksResource, "paddle/classic/resources/webhooks"
58
+ autoload :ModifiersResource, "paddle/classic/resources/modifiers"
59
+ autoload :ChargesResource, "paddle/classic/resources/charges"
60
+
61
+ autoload :Plan, "paddle/classic/objects/plan"
62
+ autoload :Coupon, "paddle/classic/objects/coupon"
63
+ autoload :Product, "paddle/classic/objects/product"
64
+ autoload :License, "paddle/classic/objects/license"
65
+ autoload :PayLink, "paddle/classic/objects/pay_link"
66
+ autoload :Transaction, "paddle/classic/objects/transaction"
67
+ autoload :Payment, "paddle/classic/objects/payment"
68
+ autoload :PaymentRefund, "paddle/classic/objects/payment_refund"
69
+ autoload :User, "paddle/classic/objects/user"
70
+ autoload :Webhook, "paddle/classic/objects/webhook"
71
+ autoload :Modifier, "paddle/classic/objects/modifier"
72
+ autoload :Charge, "paddle/classic/objects/charge"
73
+ end
74
+
8
75
  end
data/paddle.gemspec ADDED
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/paddle/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "paddle"
7
+ spec.version = Paddle::VERSION
8
+ spec.authors = ["Dean Perry"]
9
+ spec.email = ["dean@deanpcmad.com"]
10
+
11
+ spec.summary = "Ruby library for the Paddle Billing & Classic APIs"
12
+ spec.homepage = "https://github.com/deanpcmad/paddle"
13
+ spec.required_ruby_version = ">= 2.6.0"
14
+
15
+ spec.metadata["homepage_uri"] = spec.homepage
16
+ spec.metadata["source_code_uri"] = "https://github.com/deanpcmad/paddle"
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
+ `git ls-files -z`.split("\x0").reject do |f|
22
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
23
+ end
24
+ end
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ["lib"]
28
+
29
+ spec.add_dependency "faraday", "~> 2.0"
30
+ end
metadata CHANGED
@@ -1,138 +1,113 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: paddle
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 0
9
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
10
5
  platform: ruby
11
- authors:
12
- - Aaron Patterson
13
- autorequire:
14
- bindir: bin
6
+ authors:
7
+ - Dean Perry
8
+ autorequire:
9
+ bindir: exe
15
10
  cert_chain: []
16
-
17
- date: 2010-04-12 00:00:00 -07:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: rdoc
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 2
29
- - 5
30
- - 3
31
- version: 2.5.3
11
+ date: 2023-08-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
32
20
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: rubyforge
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 2
43
- - 0
44
- - 3
45
- version: 2.0.3
46
- type: :development
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: gemcutter
50
- prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- segments:
56
- - 0
57
- - 5
58
- - 0
59
- version: 0.5.0
60
- type: :development
61
- version_requirements: *id003
62
- - !ruby/object:Gem::Dependency
63
- name: hoe
64
21
  prerelease: false
65
- requirement: &id004 !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- segments:
70
- - 2
71
- - 5
72
- - 0
73
- version: 2.5.0
74
- type: :development
75
- version_requirements: *id004
76
- description: |-
77
- Paddle is an RDoc plugin that emits documentation suitable for use as an epub
78
- book. The epub book can then be imported to iBooks for reading on iPad!
79
- email:
80
- - aaron@tenderlovemaking.com
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ description:
28
+ email:
29
+ - dean@deanpcmad.com
81
30
  executables: []
82
-
83
31
  extensions: []
84
-
85
- extra_rdoc_files:
86
- - Manifest.txt
87
- - CHANGELOG.rdoc
88
- - README.rdoc
89
- files:
90
- - .autotest
91
- - CHANGELOG.rdoc
92
- - Manifest.txt
93
- - README.rdoc
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".env.example"
35
+ - Gemfile
36
+ - Gemfile.lock
37
+ - README.md
94
38
  - Rakefile
95
- - lib/images/ruby.png
39
+ - bin/console
40
+ - bin/setup
96
41
  - lib/paddle.rb
97
- - lib/rdoc/discover.rb
98
- - lib/rdoc/generator/paddle.rb
99
- - lib/templates/classfile.html.erb
100
- - lib/templates/container.xml
101
- - lib/templates/content.opf.erb
102
- - lib/templates/cover.html.erb
103
- - lib/templates/title.html.erb
104
- - lib/templates/toc.ncx.erb
105
- - test/test_paddle.rb
106
- has_rdoc: true
107
- homepage: http://tenderlovemaking.com
42
+ - lib/paddle/classic/client.rb
43
+ - lib/paddle/classic/collection.rb
44
+ - lib/paddle/classic/objects/charge.rb
45
+ - lib/paddle/classic/objects/coupon.rb
46
+ - lib/paddle/classic/objects/license.rb
47
+ - lib/paddle/classic/objects/modifier.rb
48
+ - lib/paddle/classic/objects/pay_link.rb
49
+ - lib/paddle/classic/objects/payment.rb
50
+ - lib/paddle/classic/objects/payment_refund.rb
51
+ - lib/paddle/classic/objects/plan.rb
52
+ - lib/paddle/classic/objects/product.rb
53
+ - lib/paddle/classic/objects/transaction.rb
54
+ - lib/paddle/classic/objects/user.rb
55
+ - lib/paddle/classic/objects/webhook.rb
56
+ - lib/paddle/classic/resource.rb
57
+ - lib/paddle/classic/resources/charges.rb
58
+ - lib/paddle/classic/resources/coupons.rb
59
+ - lib/paddle/classic/resources/licenses.rb
60
+ - lib/paddle/classic/resources/modifiers.rb
61
+ - lib/paddle/classic/resources/pay_links.rb
62
+ - lib/paddle/classic/resources/payments.rb
63
+ - lib/paddle/classic/resources/plans.rb
64
+ - lib/paddle/classic/resources/products.rb
65
+ - lib/paddle/classic/resources/transactions.rb
66
+ - lib/paddle/classic/resources/users.rb
67
+ - lib/paddle/classic/resources/webhooks.rb
68
+ - lib/paddle/client.rb
69
+ - lib/paddle/collection.rb
70
+ - lib/paddle/configuration.rb
71
+ - lib/paddle/error.rb
72
+ - lib/paddle/models/address.rb
73
+ - lib/paddle/models/adjustment.rb
74
+ - lib/paddle/models/business.rb
75
+ - lib/paddle/models/customer.rb
76
+ - lib/paddle/models/discount.rb
77
+ - lib/paddle/models/event.rb
78
+ - lib/paddle/models/event_type.rb
79
+ - lib/paddle/models/notification.rb
80
+ - lib/paddle/models/notification_log.rb
81
+ - lib/paddle/models/notification_setting.rb
82
+ - lib/paddle/models/price.rb
83
+ - lib/paddle/models/product.rb
84
+ - lib/paddle/models/subscription.rb
85
+ - lib/paddle/models/transaction.rb
86
+ - lib/paddle/object.rb
87
+ - lib/paddle/version.rb
88
+ - paddle.gemspec
89
+ homepage: https://github.com/deanpcmad/paddle
108
90
  licenses: []
109
-
110
- post_install_message:
111
- rdoc_options:
112
- - --main
113
- - README.rdoc
114
- require_paths:
91
+ metadata:
92
+ homepage_uri: https://github.com/deanpcmad/paddle
93
+ source_code_uri: https://github.com/deanpcmad/paddle
94
+ post_install_message:
95
+ rdoc_options: []
96
+ require_paths:
115
97
  - lib
116
- required_ruby_version: !ruby/object:Gem::Requirement
117
- requirements:
98
+ required_ruby_version: !ruby/object:Gem::Requirement
99
+ requirements:
118
100
  - - ">="
119
- - !ruby/object:Gem::Version
120
- segments:
121
- - 0
122
- version: "0"
123
- required_rubygems_version: !ruby/object:Gem::Requirement
124
- requirements:
101
+ - !ruby/object:Gem::Version
102
+ version: 2.6.0
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ requirements:
125
105
  - - ">="
126
- - !ruby/object:Gem::Version
127
- segments:
128
- - 0
129
- version: "0"
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
130
108
  requirements: []
131
-
132
- rubyforge_project: paddle
133
- rubygems_version: 1.3.6
134
- signing_key:
135
- specification_version: 3
136
- summary: Paddle is an RDoc plugin that emits documentation suitable for use as an epub book
137
- test_files:
138
- - test/test_paddle.rb
109
+ rubygems_version: 3.4.18
110
+ signing_key:
111
+ specification_version: 4
112
+ summary: Ruby library for the Paddle Billing & Classic APIs
113
+ test_files: []
data/.autotest DELETED
@@ -1,23 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- require 'autotest/restart'
4
-
5
- # Autotest.add_hook :initialize do |at|
6
- # at.extra_files << "../some/external/dependency.rb"
7
- #
8
- # at.libs << ":../some/external"
9
- #
10
- # at.add_exception 'vendor'
11
- #
12
- # at.add_mapping(/dependency.rb/) do |f, _|
13
- # at.files_matching(/test_.*rb$/)
14
- # end
15
- #
16
- # %w(TestA TestB).each do |klass|
17
- # at.extra_class_map[klass] = "test/test_misc.rb"
18
- # end
19
- # end
20
-
21
- # Autotest.add_hook :run_command do |at|
22
- # system "rake build"
23
- # end
data/CHANGELOG.rdoc DELETED
@@ -1,6 +0,0 @@
1
- === 1.0.0 / 2010-04-11
2
-
3
- * 1 major enhancement
4
-
5
- * Birthday!
6
-
data/Manifest.txt DELETED
@@ -1,16 +0,0 @@
1
- .autotest
2
- CHANGELOG.rdoc
3
- Manifest.txt
4
- README.rdoc
5
- Rakefile
6
- lib/images/ruby.png
7
- lib/paddle.rb
8
- lib/rdoc/discover.rb
9
- lib/rdoc/generator/paddle.rb
10
- lib/templates/classfile.html.erb
11
- lib/templates/container.xml
12
- lib/templates/content.opf.erb
13
- lib/templates/cover.html.erb
14
- lib/templates/title.html.erb
15
- lib/templates/toc.ncx.erb
16
- test/test_paddle.rb