stripe 3.23.0 → 3.24.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 (75) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +3 -0
  3. data/Rakefile +2 -2
  4. data/VERSION +1 -1
  5. data/bin/stripe-console +1 -1
  6. data/lib/stripe.rb +1 -1
  7. data/lib/stripe/bitcoin_receiver.rb +0 -3
  8. data/lib/stripe/stripe_client.rb +2 -2
  9. data/lib/stripe/util.rb +1 -1
  10. data/lib/stripe/version.rb +1 -1
  11. data/stripe.gemspec +2 -2
  12. data/test/stripe/account_external_accounts_operations_test.rb +1 -1
  13. data/test/stripe/account_login_links_operations_test.rb +1 -1
  14. data/test/stripe/account_test.rb +1 -1
  15. data/test/stripe/alipay_account_test.rb +1 -1
  16. data/test/stripe/api_operations_test.rb +1 -1
  17. data/test/stripe/api_resource_test.rb +1 -1
  18. data/test/stripe/apple_pay_domain_test.rb +1 -1
  19. data/test/stripe/application_fee_refund_test.rb +1 -1
  20. data/test/stripe/application_fee_refunds_operations_test.rb +1 -1
  21. data/test/stripe/application_fee_test.rb +1 -1
  22. data/test/stripe/balance_test.rb +1 -1
  23. data/test/stripe/bank_account_test.rb +1 -1
  24. data/test/stripe/charge_test.rb +1 -1
  25. data/test/stripe/country_spec_test.rb +1 -1
  26. data/test/stripe/coupon_test.rb +1 -1
  27. data/test/stripe/customer_card_test.rb +1 -1
  28. data/test/stripe/customer_sources_operations_test.rb +1 -1
  29. data/test/stripe/customer_test.rb +1 -1
  30. data/test/stripe/dispute_test.rb +1 -1
  31. data/test/stripe/ephemeral_key_test.rb +1 -1
  32. data/test/stripe/errors_test.rb +1 -1
  33. data/test/stripe/exchange_rate_test.rb +1 -1
  34. data/test/stripe/file_link_test.rb +1 -1
  35. data/test/stripe/file_upload_test.rb +3 -3
  36. data/test/stripe/invoice_item_test.rb +1 -1
  37. data/test/stripe/invoice_line_item_test.rb +1 -1
  38. data/test/stripe/invoice_test.rb +1 -1
  39. data/test/stripe/issuer_fraud_record_test.rb +1 -1
  40. data/test/stripe/issuing/authorization_test.rb +1 -1
  41. data/test/stripe/issuing/card_test.rb +1 -1
  42. data/test/stripe/issuing/cardholder_test.rb +1 -1
  43. data/test/stripe/issuing/dispute_test.rb +1 -1
  44. data/test/stripe/issuing/transaction_test.rb +1 -1
  45. data/test/stripe/list_object_test.rb +1 -1
  46. data/test/stripe/login_link_test.rb +1 -1
  47. data/test/stripe/oauth_test.rb +1 -1
  48. data/test/stripe/order_return_test.rb +1 -1
  49. data/test/stripe/order_test.rb +1 -1
  50. data/test/stripe/payment_intent_test.rb +1 -1
  51. data/test/stripe/payout_test.rb +1 -1
  52. data/test/stripe/plan_test.rb +1 -1
  53. data/test/stripe/product_test.rb +1 -1
  54. data/test/stripe/recipient_test.rb +1 -1
  55. data/test/stripe/refund_test.rb +1 -1
  56. data/test/stripe/reversal_test.rb +1 -1
  57. data/test/stripe/sigma/scheduled_query_run_test.rb +1 -1
  58. data/test/stripe/sku_test.rb +1 -1
  59. data/test/stripe/source_test.rb +1 -1
  60. data/test/stripe/source_transaction_test.rb +1 -1
  61. data/test/stripe/stripe_client_test.rb +1 -1
  62. data/test/stripe/stripe_object_test.rb +1 -1
  63. data/test/stripe/stripe_response_test.rb +1 -1
  64. data/test/stripe/subscription_item_test.rb +1 -1
  65. data/test/stripe/subscription_test.rb +1 -1
  66. data/test/stripe/three_d_secure_test.rb +1 -1
  67. data/test/stripe/topup_test.rb +1 -1
  68. data/test/stripe/transfer_reversals_operations_test.rb +1 -1
  69. data/test/stripe/transfer_test.rb +1 -1
  70. data/test/stripe/usage_record_test.rb +1 -1
  71. data/test/stripe/util_test.rb +1 -1
  72. data/test/stripe/webhook_test.rb +1 -1
  73. data/test/stripe_test.rb +1 -1
  74. data/test/test_helper.rb +2 -2
  75. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: b72ba017e53f1ce4d5421b86d2f4f061b24e5c3db066198d822a4ccd613f20c3
4
- data.tar.gz: 91b5e733079469a1e15ab26ecc3524ac04d01661682121eb24dc8296b99e66e6
2
+ SHA1:
3
+ metadata.gz: 3ae3f4028cea6f414ae6fd23383e5bb6c3e6472f
4
+ data.tar.gz: 220803e2c91675a87d15fda1e3d273395e6ad19d
5
5
  SHA512:
6
- metadata.gz: 2823396ffb1a8afe9c1531fa9ea1b2d02638c2eedfc78d51cf846adec44bba12a587d756271c08424855c85b6ff9ff2af8666721788ab988339889d0b3f5b2d1
7
- data.tar.gz: 9f5a2b11eb8d5c30149001430092411ff830f8dc5b0fd3dad2c3ec064fdc035ecb0c2774e8dbd2b33b05fbfb437049a0af34b79a92095cfd8ee09a4ae681be97
6
+ metadata.gz: 206f959fe462ac3c24ea4c521b0f2ea47d135e01ead0ca54c1ec4627410f6945b08db459f28789afe5db3a63ae42b19a8522ffdfd64e53e7c7d9eef89d789de3
7
+ data.tar.gz: c8295624bbd07e89c860f9c28cb1e7f013232125fe13e3f4c89db7fe193600dfe61baf77b131b6d53900063e9ca5d02dc25822470160c5a872c401da30b9c43a
@@ -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.23.0
1
+ 3.24.0
@@ -5,7 +5,7 @@
5
5
  require "irb"
6
6
  require "irb/completion"
7
7
 
8
- require "#{File.dirname(__FILE__)}/../lib/stripe"
8
+ require "#{::File.dirname(__FILE__)}/../lib/stripe"
9
9
 
10
10
  # Config IRB to enable --simple-prompt and auto indent
11
11
  IRB.conf[:PROMPT_MODE] = :SIMPLE
@@ -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
@@ -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
@@ -155,7 +155,7 @@ module Stripe
155
155
  # report incorrect results on some more oddball filesystems
156
156
  # (such as AFS)
157
157
 
158
- File.open(file) { |f| }
158
+ ::File.open(file) { |f| }
159
159
  rescue StandardError
160
160
  false
161
161
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "3.23.0".freeze
4
+ VERSION = "3.24.0".freeze
5
5
  end
@@ -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
@@ -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 AccountExternalAccountsOperationsTest < Test::Unit::TestCase
@@ -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 AccountLoginLinksOperationsTest < Test::Unit::TestCase
@@ -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 AccountTest < Test::Unit::TestCase
@@ -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 AlipayAccountTest < Test::Unit::TestCase
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # frozen_string_literal: true
3
3
 
4
- require File.expand_path("../../test_helper", __FILE__)
4
+ require ::File.expand_path("../../test_helper", __FILE__)
5
5
 
6
6
  module Stripe
7
7
  class ApiOperationsTest < Test::Unit::TestCase
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # frozen_string_literal: true
3
3
 
4
- require File.expand_path("../../test_helper", __FILE__)
4
+ require ::File.expand_path("../../test_helper", __FILE__)
5
5
 
6
6
  module Stripe
7
7
  class ApiResourceTest < Test::Unit::TestCase
@@ -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 ApplePayDomainTest < Test::Unit::TestCase
@@ -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 ApplicationFeeRefundTest < Test::Unit::TestCase
@@ -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 ApplicationFeeRefundsOperationsTest < Test::Unit::TestCase
@@ -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 ApplicationFeeTest < Test::Unit::TestCase
@@ -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 BalanceTest < Test::Unit::TestCase
@@ -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 BankAccountTest < Test::Unit::TestCase
@@ -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 ChargeTest < Test::Unit::TestCase
@@ -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 CountrySpecTest < Test::Unit::TestCase
@@ -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 CouponTest < Test::Unit::TestCase
@@ -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 CustomerCardTest < Test::Unit::TestCase
@@ -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 CustomerSourcesOperationsTest < Test::Unit::TestCase
@@ -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 CustomerTest < Test::Unit::TestCase
@@ -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 DisputeTest < Test::Unit::TestCase
@@ -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 EphemeralKeyTest < Test::Unit::TestCase
@@ -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 StripeErrorTest < Test::Unit::TestCase
@@ -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 ExchangeRateTest < Test::Unit::TestCase
@@ -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 FileLinkTest < Test::Unit::TestCase
@@ -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
@@ -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 InvoiceItemTest < Test::Unit::TestCase
@@ -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 InvoiceLineItemTest < Test::Unit::TestCase
@@ -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 InvoiceTest < Test::Unit::TestCase
@@ -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 IssuerFraudRecordTest < Test::Unit::TestCase
@@ -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
  module Issuing
@@ -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
  module Issuing
@@ -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
  module Issuing
@@ -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
  module Issuing
@@ -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
  module Issuing
@@ -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 ListObjectTest < Test::Unit::TestCase
@@ -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 LoginLinkTest < Test::Unit::TestCase
@@ -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 OAuthTest < Test::Unit::TestCase
@@ -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 OrderReturnTest < Test::Unit::TestCase
@@ -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 OrderTest < Test::Unit::TestCase
@@ -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
  TEST_RESOURCE_ID = "pi_123".freeze
@@ -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 PayoutTest < Test::Unit::TestCase
@@ -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 PlanTest < Test::Unit::TestCase
@@ -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 ProductTest < Test::Unit::TestCase
@@ -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 RecipientTest < Test::Unit::TestCase
@@ -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 RefundTest < Test::Unit::TestCase
@@ -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 ReversalTest < Test::Unit::TestCase
@@ -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
  module Issuing
@@ -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 SKUTest < Test::Unit::TestCase
@@ -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 SourceTest < Test::Unit::TestCase
@@ -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 SourceTransactionTest < Test::Unit::TestCase
@@ -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 StripeClientTest < Test::Unit::TestCase
@@ -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 StripeObjectTest < Test::Unit::TestCase
@@ -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 StripeResponseTest < Test::Unit::TestCase
@@ -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 SubscriptionItemTest < Test::Unit::TestCase
@@ -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 SubscriptionTest < Test::Unit::TestCase
@@ -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 ThreeDSecureTest < Test::Unit::TestCase
@@ -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 TopupTest < Test::Unit::TestCase
@@ -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 TransferReversalsOperationsTest < Test::Unit::TestCase
@@ -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 TransferTest < Test::Unit::TestCase
@@ -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 UsageRecordTest < Test::Unit::TestCase
@@ -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 UtilTest < Test::Unit::TestCase
@@ -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 WebhookTest < Test::Unit::TestCase
@@ -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
  class StripeTest < Test::Unit::TestCase
6
6
  should "warn that #refresh_from is deprecated" do
@@ -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.23.0
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-23 00:00:00.000000000 Z
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.7.7
210
+ rubygems_version: 2.6.11
211
211
  signing_key:
212
212
  specification_version: 4
213
213
  summary: Ruby bindings for the Stripe API