stripe 1.38.0 → 1.39.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/lib/data/ca-certificates.crt +26 -0
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/stripe_object_test.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d85fbb3d136599c0b9bae5cb778c12f9ae096d63
|
4
|
+
data.tar.gz: 67f6bc92701eb682d59e02475b40856cbcd809f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7862e43d639dd5fefe90dd86d08849f93632fe53bb32d891b501e0b57756dc6057edec00a1985baab7a2bfa5ad0314211798e4e892bdf331f1354d9bb936a84b
|
7
|
+
data.tar.gz: 45f6bbf7da450324722d0fa9d6f03ce3eaf22fc28cd56c2f82d1d181d6e6f3bf482e55df59a894fee7aff3ff903e235d5d1033881b26f0d19070fa5e7399748c
|
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.39.0
|
@@ -3891,3 +3891,29 @@ MluARZPzA7gwCgYIKoZIzj0EAwMDaAAwZQIxAOSkhLCB1T2wdKyUpOgOPQB0TKGXa/kNUTyh2Tv0
|
|
3891
3891
|
Daupn75OcsqF1NnstTJFGG+rrQIwfcf3aWMvoeGY7xMQ0Xk/0f7qO3/eVvSQsRUR2LIiFdAvwyYu
|
3892
3892
|
a/GRspBl9JrmkO5K
|
3893
3893
|
-----END CERTIFICATE-----
|
3894
|
+
|
3895
|
+
================================================================
|
3896
|
+
C: US
|
3897
|
+
O: GTE Corporation
|
3898
|
+
OU: GTE CyberTrust Solutions, Inc.
|
3899
|
+
CN: GTE CyberTrust Global Root
|
3900
|
+
--
|
3901
|
+
Not Before: 1998-08-13
|
3902
|
+
Not After: 2018-08-13
|
3903
|
+
Signature: md5WithRSAEncryption
|
3904
|
+
Key: RSA:1024
|
3905
|
+
-----BEGIN CERTIFICATE-----
|
3906
|
+
MIICWjCCAcMCAgGlMA0GCSqGSIb3DQEBBAUAMHUxCzAJBgNVBAYTAlVTMRgwFgYD
|
3907
|
+
VQQKEw9HVEUgQ29ycG9yYXRpb24xJzAlBgNVBAsTHkdURSBDeWJlclRydXN0IFNv
|
3908
|
+
bHV0aW9ucywgSW5jLjEjMCEGA1UEAxMaR1RFIEN5YmVyVHJ1c3QgR2xvYmFsIFJv
|
3909
|
+
b3QwHhcNOTgwODEzMDAyOTAwWhcNMTgwODEzMjM1OTAwWjB1MQswCQYDVQQGEwJV
|
3910
|
+
UzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMScwJQYDVQQLEx5HVEUgQ3liZXJU
|
3911
|
+
cnVzdCBTb2x1dGlvbnMsIEluYy4xIzAhBgNVBAMTGkdURSBDeWJlclRydXN0IEds
|
3912
|
+
b2JhbCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCVD6C28FCc6HrH
|
3913
|
+
iM3dFw4usJTQGz0O9pTAipTHBsiQl8i4ZBp6fmw8U+E3KHNgf7KXUwefU/ltWJTS
|
3914
|
+
r41tiGeA5u2ylc9yMcqlHHK6XALnZELn+aks1joNrI1CqiQBOeacPwGFVw1Yh0X4
|
3915
|
+
04Wqk2kmhXBIgD8SFcd5tB8FLztimQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAG3r
|
3916
|
+
GwnpXtlR22ciYaQqPEh346B8pt5zohQDhT37qw4wxYMWM4ETCJ57NE7fQMh017l9
|
3917
|
+
3PR2VX2bY1QY6fDq81yx2YtCHrnAlU66+tXifPVoYb+O7AWXX1uw16OFNMQkpw0P
|
3918
|
+
lZPvy5TYnh+dXIVtx6quTx8itc2VrbqnzPmrC3p/
|
3919
|
+
-----END CERTIFICATE-----
|
data/lib/stripe/stripe_object.rb
CHANGED
@@ -233,7 +233,7 @@ module Stripe
|
|
233
233
|
raise ArgumentError.new(
|
234
234
|
"You cannot set #{k} to an empty string. " \
|
235
235
|
"We interpret empty strings as nil in requests. " \
|
236
|
-
"You may set
|
236
|
+
"You may set (object).#{k} = nil to delete the property.")
|
237
237
|
end
|
238
238
|
@values[k] = Util.convert_to_stripe_object(v, @opts)
|
239
239
|
dirty_value!(@values[k])
|
data/lib/stripe/version.rb
CHANGED
@@ -286,5 +286,13 @@ module Stripe
|
|
286
286
|
$stderr = old_stderr
|
287
287
|
end
|
288
288
|
end
|
289
|
+
|
290
|
+
should "error on setting a property to an empty string" do
|
291
|
+
obj = Stripe::StripeObject.construct_from({ :foo => 'bar' })
|
292
|
+
e = assert_raises ArgumentError do
|
293
|
+
obj.foo = ""
|
294
|
+
end
|
295
|
+
assert_match /\(object\).foo = nil/, e.message
|
296
|
+
end
|
289
297
|
end
|
290
298
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.39.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ross Boucher
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-03-
|
12
|
+
date: 2016-03-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|