itunes_receipt_encoder 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8797764c42534a9d6d24b966179aa4c76999729
|
4
|
+
data.tar.gz: bc3abbec00f51f25eaa6ffc40c6d81b921904375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d537bbdc003eb3c7f07e984b314a74b3460c939b6b7408bcfff5adf2a1a2b7db6f6bc360f67cc660091ae4fa9318c7831d9b242677e0d1d8a5fd8fb4a188ca1a
|
7
|
+
data.tar.gz: 83e96e15685e8b84bd006190da995f8b8083c746bcec4ae8a26021a596699e75964f71e42c4ce5ab842fd907d18f5ee5d7091211733f6caf1572ce9e14220d57
|
@@ -31,11 +31,13 @@ module ItunesReceiptEncoder
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def to_seq
|
34
|
-
OpenSSL::ASN1::Sequence.new(
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
34
|
+
OpenSSL::ASN1::Sequence.new(
|
35
|
+
[
|
36
|
+
OpenSSL::ASN1::Integer.new(OpenSSL::BN.new(type.to_s)),
|
37
|
+
OpenSSL::ASN1::Integer.new(OpenSSL::BN.new(ASN1_VERSION.to_s)),
|
38
|
+
OpenSSL::ASN1::OctetString.new(value.to_s)
|
39
|
+
]
|
40
|
+
)
|
39
41
|
end
|
40
42
|
end
|
41
43
|
end
|
@@ -8,7 +8,7 @@ module ItunesReceiptEncoder
|
|
8
8
|
##
|
9
9
|
# ItunesReceiptEncoder::Receipt
|
10
10
|
class Receipt
|
11
|
-
PRIVATE_KEY = <<-EOF
|
11
|
+
PRIVATE_KEY = <<-EOF.freeze
|
12
12
|
-----BEGIN RSA PRIVATE KEY-----
|
13
13
|
MIICXgIBAAKBgQCwFAFtL0PVWIAhkZGvOieoG+FYbSxGsQZ+oj8p71kSIPj4zo1/
|
14
14
|
tNAB4hZZkhNUcys1WXb1AK5dXlMs4AwK6zIANvlwJxu4fBIW+sENc4yHaJWfcZJR
|
@@ -25,7 +25,7 @@ v5Pq6OQRr/JzJnPr45TNAkEAkqll2DUKWTKiva4MPvda30vZFbraRkW0WUWNIara
|
|
25
25
|
RDUtoqjlu22PZhexNT4aulrb7OVBxq4yjqdGq5Kgo1z8mw==
|
26
26
|
-----END RSA PRIVATE KEY-----
|
27
27
|
EOF
|
28
|
-
CERTIFICATE = <<-EOF
|
28
|
+
CERTIFICATE = <<-EOF.freeze
|
29
29
|
-----BEGIN CERTIFICATE-----
|
30
30
|
MIIC3jCCAkegAwIBAgIJAN0obOgx+IbBMA0GCSqGSIb3DQEBBQUAMFQxCzAJBgNV
|
31
31
|
BAYTAkRFMQ8wDQYDVQQIEwZCZXJsaW4xDzANBgNVBAcTBkJlcmxpbjEjMCEGA1UE
|
@@ -71,7 +71,7 @@ EOF
|
|
71
71
|
'pod' => options.fetch(:pod, 100),
|
72
72
|
'signing-status' => options.fetch(:signing_status, 0)
|
73
73
|
}
|
74
|
-
data
|
74
|
+
data['environment'] = payload.environment unless
|
75
75
|
payload.environment == 'Production'
|
76
76
|
plist = CFPropertyList::List.new
|
77
77
|
plist.value = CFPropertyList.guess data
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itunes_receipt_encoder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mbaasy.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: CFPropertyList
|