mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
* manual changes * move eventNotification to v2 namespace * updated rbi * add tests * Add basic rbi * generate event data types * move some things, fix tests * add missing attributes * update gemspec, examples, and rbi * fix example
45 lines
1.5 KiB
Ruby
45 lines
1.5 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib"))
|
|
|
|
require "stripe/version"
|
|
|
|
Gem::Specification.new do |s|
|
|
s.name = "stripe"
|
|
s.version = Stripe::VERSION
|
|
s.required_ruby_version = ">= 2.3.0"
|
|
s.summary = "Ruby bindings for the Stripe API"
|
|
s.description = "Stripe is the easiest way to accept payments online. " \
|
|
"See https://stripe.com for details."
|
|
s.author = "Stripe"
|
|
s.email = "support@stripe.com"
|
|
s.homepage = "https://stripe.com/docs/api?lang=ruby"
|
|
s.license = "MIT"
|
|
|
|
s.metadata = {
|
|
"bug_tracker_uri" => "https://github.com/stripe/stripe-ruby/issues",
|
|
"changelog_uri" =>
|
|
"https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md",
|
|
"documentation_uri" => "https://stripe.com/docs/api?lang=ruby",
|
|
"github_repo" => "ssh://github.com/stripe/stripe-ruby",
|
|
"homepage_uri" => "https://stripe.com/docs/api?lang=ruby",
|
|
"source_code_uri" => "https://github.com/stripe/stripe-ruby",
|
|
"rubygems_mfa_required" => "false",
|
|
}
|
|
|
|
included = Regexp.union(
|
|
%r{\Alib/},
|
|
%r{\Aexe/},
|
|
# generated RBI files
|
|
%r{\Arbi/stripe\.rbi\z},
|
|
# Handwritten RBIs
|
|
# TODO(helenye): http://go/j/DEVSDK-2769
|
|
%r{\Arbi/stripe/stripe_client.rbi\z},
|
|
%r{\Arbi/stripe/event_notification.rbi\z}
|
|
)
|
|
s.files = `git ls-files`.split("\n").grep(included)
|
|
s.bindir = "exe"
|
|
s.executables = `git ls-files -- exe/*`.split("\n").map { |f| File.basename(f) }
|
|
s.require_paths = ["lib"]
|
|
end
|