stripe 3.23.0 → 3.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +3 -0
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/bin/stripe-console +1 -1
- data/lib/stripe.rb +1 -1
- data/lib/stripe/bitcoin_receiver.rb +0 -3
- data/lib/stripe/stripe_client.rb +2 -2
- data/lib/stripe/util.rb +1 -1
- data/lib/stripe/version.rb +1 -1
- data/stripe.gemspec +2 -2
- data/test/stripe/account_external_accounts_operations_test.rb +1 -1
- data/test/stripe/account_login_links_operations_test.rb +1 -1
- data/test/stripe/account_test.rb +1 -1
- data/test/stripe/alipay_account_test.rb +1 -1
- data/test/stripe/api_operations_test.rb +1 -1
- data/test/stripe/api_resource_test.rb +1 -1
- data/test/stripe/apple_pay_domain_test.rb +1 -1
- data/test/stripe/application_fee_refund_test.rb +1 -1
- data/test/stripe/application_fee_refunds_operations_test.rb +1 -1
- data/test/stripe/application_fee_test.rb +1 -1
- data/test/stripe/balance_test.rb +1 -1
- data/test/stripe/bank_account_test.rb +1 -1
- data/test/stripe/charge_test.rb +1 -1
- data/test/stripe/country_spec_test.rb +1 -1
- data/test/stripe/coupon_test.rb +1 -1
- data/test/stripe/customer_card_test.rb +1 -1
- data/test/stripe/customer_sources_operations_test.rb +1 -1
- data/test/stripe/customer_test.rb +1 -1
- data/test/stripe/dispute_test.rb +1 -1
- data/test/stripe/ephemeral_key_test.rb +1 -1
- data/test/stripe/errors_test.rb +1 -1
- data/test/stripe/exchange_rate_test.rb +1 -1
- data/test/stripe/file_link_test.rb +1 -1
- data/test/stripe/file_upload_test.rb +3 -3
- data/test/stripe/invoice_item_test.rb +1 -1
- data/test/stripe/invoice_line_item_test.rb +1 -1
- data/test/stripe/invoice_test.rb +1 -1
- data/test/stripe/issuer_fraud_record_test.rb +1 -1
- data/test/stripe/issuing/authorization_test.rb +1 -1
- data/test/stripe/issuing/card_test.rb +1 -1
- data/test/stripe/issuing/cardholder_test.rb +1 -1
- data/test/stripe/issuing/dispute_test.rb +1 -1
- data/test/stripe/issuing/transaction_test.rb +1 -1
- data/test/stripe/list_object_test.rb +1 -1
- data/test/stripe/login_link_test.rb +1 -1
- data/test/stripe/oauth_test.rb +1 -1
- data/test/stripe/order_return_test.rb +1 -1
- data/test/stripe/order_test.rb +1 -1
- data/test/stripe/payment_intent_test.rb +1 -1
- data/test/stripe/payout_test.rb +1 -1
- data/test/stripe/plan_test.rb +1 -1
- data/test/stripe/product_test.rb +1 -1
- data/test/stripe/recipient_test.rb +1 -1
- data/test/stripe/refund_test.rb +1 -1
- data/test/stripe/reversal_test.rb +1 -1
- data/test/stripe/sigma/scheduled_query_run_test.rb +1 -1
- data/test/stripe/sku_test.rb +1 -1
- data/test/stripe/source_test.rb +1 -1
- data/test/stripe/source_transaction_test.rb +1 -1
- data/test/stripe/stripe_client_test.rb +1 -1
- data/test/stripe/stripe_object_test.rb +1 -1
- data/test/stripe/stripe_response_test.rb +1 -1
- data/test/stripe/subscription_item_test.rb +1 -1
- data/test/stripe/subscription_test.rb +1 -1
- data/test/stripe/three_d_secure_test.rb +1 -1
- data/test/stripe/topup_test.rb +1 -1
- data/test/stripe/transfer_reversals_operations_test.rb +1 -1
- data/test/stripe/transfer_test.rb +1 -1
- data/test/stripe/usage_record_test.rb +1 -1
- data/test/stripe/util_test.rb +1 -1
- data/test/stripe/webhook_test.rb +1 -1
- data/test/stripe_test.rb +1 -1
- data/test/test_helper.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3ae3f4028cea6f414ae6fd23383e5bb6c3e6472f
|
4
|
+
data.tar.gz: 220803e2c91675a87d15fda1e3d273395e6ad19d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 206f959fe462ac3c24ea4c521b0f2ea47d135e01ead0ca54c1ec4627410f6945b08db459f28789afe5db3a63ae42b19a8522ffdfd64e53e7c7d9eef89d789de3
|
7
|
+
data.tar.gz: c8295624bbd07e89c860f9c28cb1e7f013232125fe13e3f4c89db7fe193600dfe61baf77b131b6d53900063e9ca5d02dc25822470160c5a872c401da30b9c43a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 3.24.0 - 2018-08-27
|
4
|
+
* [#675](https://github.com/stripe/stripe-ruby/pull/675) Remove support for `BitcoinReceiver` write-actions
|
5
|
+
|
3
6
|
## 3.23.0 - 2018-08-23
|
4
7
|
* [#676](https://github.com/stripe/stripe-ruby/pull/676) Add support for usage record summaries
|
5
8
|
|
data/Rakefile
CHANGED
@@ -16,7 +16,7 @@ task :update_certs do
|
|
16
16
|
require "faraday"
|
17
17
|
|
18
18
|
fetch_file "https://curl.haxx.se/ca/cacert.pem",
|
19
|
-
File.expand_path("../lib/data/ca-certificates.crt", __FILE__)
|
19
|
+
::File.expand_path("../lib/data/ca-certificates.crt", __FILE__)
|
20
20
|
end
|
21
21
|
|
22
22
|
#
|
@@ -24,7 +24,7 @@ end
|
|
24
24
|
#
|
25
25
|
|
26
26
|
def fetch_file(url, dest)
|
27
|
-
File.open(dest, "w") do |file|
|
27
|
+
::File.open(dest, "w") do |file|
|
28
28
|
resp = Faraday.get(url)
|
29
29
|
unless resp.status == 200
|
30
30
|
abort("bad response when fetching: #{url}\n" \
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.24.0
|
data/bin/stripe-console
CHANGED
data/lib/stripe.rb
CHANGED
@@ -95,7 +95,7 @@ require "stripe/usage_record_summary"
|
|
95
95
|
require "stripe/oauth"
|
96
96
|
|
97
97
|
module Stripe
|
98
|
-
DEFAULT_CA_BUNDLE_PATH = File.dirname(__FILE__) + "/data/ca-certificates.crt"
|
98
|
+
DEFAULT_CA_BUNDLE_PATH = ::File.dirname(__FILE__) + "/data/ca-certificates.crt"
|
99
99
|
|
100
100
|
@app_info = nil
|
101
101
|
|
@@ -4,9 +4,6 @@ module Stripe
|
|
4
4
|
class BitcoinReceiver < APIResource
|
5
5
|
# Directly creating or retrieving BitcoinReceivers is deprecated. Please use
|
6
6
|
# the Sources API instead: https://stripe.com/docs/sources/bitcoin
|
7
|
-
extend Stripe::APIOperations::Create
|
8
|
-
include Stripe::APIOperations::Save
|
9
|
-
include Stripe::APIOperations::Delete
|
10
7
|
extend Stripe::APIOperations::List
|
11
8
|
|
12
9
|
OBJECT_NAME = "bitcoin_receiver".freeze
|
data/lib/stripe/stripe_client.rb
CHANGED
@@ -544,8 +544,8 @@ module Stripe
|
|
544
544
|
# integrations.
|
545
545
|
class SystemProfiler
|
546
546
|
def self.uname
|
547
|
-
if File.exist?("/proc/version")
|
548
|
-
File.read("/proc/version").strip
|
547
|
+
if ::File.exist?("/proc/version")
|
548
|
+
::File.read("/proc/version").strip
|
549
549
|
else
|
550
550
|
case RbConfig::CONFIG["host_os"]
|
551
551
|
when /linux|darwin|bsd|sunos|solaris|cygwin/i
|
data/lib/stripe/util.rb
CHANGED
data/lib/stripe/version.rb
CHANGED
data/stripe.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib"))
|
3
|
+
$LOAD_PATH.unshift(::File.join(::File.dirname(__FILE__), "lib"))
|
4
4
|
|
5
5
|
require "stripe/version"
|
6
6
|
|
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
|
|
19
19
|
|
20
20
|
s.files = `git ls-files`.split("\n")
|
21
21
|
s.test_files = `git ls-files -- test/*`.split("\n")
|
22
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
22
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| ::File.basename(f) }
|
23
23
|
s.require_paths = ["lib"]
|
24
24
|
end
|
data/test/stripe/account_test.rb
CHANGED
data/test/stripe/balance_test.rb
CHANGED
data/test/stripe/charge_test.rb
CHANGED
data/test/stripe/coupon_test.rb
CHANGED
data/test/stripe/dispute_test.rb
CHANGED
data/test/stripe/errors_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require File.expand_path("../../test_helper", __FILE__)
|
3
|
+
require ::File.expand_path("../../test_helper", __FILE__)
|
4
4
|
|
5
5
|
module Stripe
|
6
6
|
class FileUploadTest < Test::Unit::TestCase
|
@@ -18,7 +18,7 @@ module Stripe
|
|
18
18
|
should "be creatable with a File" do
|
19
19
|
file = Stripe::FileUpload.create(
|
20
20
|
purpose: "dispute_evidence",
|
21
|
-
file: File.new(__FILE__)
|
21
|
+
file: ::File.new(__FILE__)
|
22
22
|
)
|
23
23
|
assert file.is_a?(Stripe::FileUpload)
|
24
24
|
end
|
@@ -38,7 +38,7 @@ module Stripe
|
|
38
38
|
should "be creatable with Faraday::UploadIO" do
|
39
39
|
file = Stripe::FileUpload.create(
|
40
40
|
purpose: "dispute_evidence",
|
41
|
-
file: Faraday::UploadIO.new(File.new(__FILE__), nil)
|
41
|
+
file: Faraday::UploadIO.new(::File.new(__FILE__), nil)
|
42
42
|
)
|
43
43
|
assert file.is_a?(Stripe::FileUpload)
|
44
44
|
end
|
data/test/stripe/invoice_test.rb
CHANGED
data/test/stripe/oauth_test.rb
CHANGED
data/test/stripe/order_test.rb
CHANGED
data/test/stripe/payout_test.rb
CHANGED
data/test/stripe/plan_test.rb
CHANGED
data/test/stripe/product_test.rb
CHANGED
data/test/stripe/refund_test.rb
CHANGED
data/test/stripe/sku_test.rb
CHANGED
data/test/stripe/source_test.rb
CHANGED
data/test/stripe/topup_test.rb
CHANGED
data/test/stripe/util_test.rb
CHANGED
data/test/stripe/webhook_test.rb
CHANGED
data/test/stripe_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -11,9 +11,9 @@ require "shoulda/context"
|
|
11
11
|
require "timecop"
|
12
12
|
require "webmock/test_unit"
|
13
13
|
|
14
|
-
PROJECT_ROOT = File.expand_path("../../", __FILE__)
|
14
|
+
PROJECT_ROOT = ::File.expand_path("../../", __FILE__)
|
15
15
|
|
16
|
-
require File.expand_path("../test_data", __FILE__)
|
16
|
+
require ::File.expand_path("../test_data", __FILE__)
|
17
17
|
|
18
18
|
# If changing this number, please also change it in `.travis.yml`.
|
19
19
|
MOCK_MINIMUM_VERSION = "0.26.0".freeze
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
209
|
rubyforge_project:
|
210
|
-
rubygems_version: 2.
|
210
|
+
rubygems_version: 2.6.11
|
211
211
|
signing_key:
|
212
212
|
specification_version: 4
|
213
213
|
summary: Ruby bindings for the Stripe API
|