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: 68b8d64c1b70a24e753a414057d7969f3d9bdae4
4
- data.tar.gz: 26badfe4dbebef399d1eecd84864f2d5d94a2125
3
+ metadata.gz: d8797764c42534a9d6d24b966179aa4c76999729
4
+ data.tar.gz: bc3abbec00f51f25eaa6ffc40c6d81b921904375
5
5
  SHA512:
6
- metadata.gz: c6cabadf75adbc36b0508b8da315822b636db047c3678b4782916b50b50df385ca26d92ed8032d713944709910bc789efc60ee437b7fd8f210adae6df3b5b5a3
7
- data.tar.gz: 64b94e39d7b722cdd92b3702d5c531cb4679a87a9275ca357d7b29dacdbb7f867020bb5b22d5ca76fcb2ba81494b5c2f53bef7c69be31774f112d9f90aef8503
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
- OpenSSL::ASN1::Integer.new(OpenSSL::BN.new(type.to_s)),
36
- OpenSSL::ASN1::Integer.new(OpenSSL::BN.new(ASN1_VERSION.to_s)),
37
- OpenSSL::ASN1::OctetString.new(value.to_s)
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.merge!('environment' => payload.environment) unless
74
+ data['environment'] = payload.environment unless
75
75
  payload.environment == 'Production'
76
76
  plist = CFPropertyList::List.new
77
77
  plist.value = CFPropertyList.guess data
@@ -25,8 +25,6 @@ module ItunesReceiptEncoder
25
25
  end
26
26
  end
27
27
 
28
- private
29
-
30
28
  def self.included(base)
31
29
  base.extend(ClassMethods)
32
30
  end
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # ItunesReceiptEncoder
3
3
  module ItunesReceiptEncoder
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'.freeze
5
5
  end
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.3
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-17 00:00:00.000000000 Z
11
+ date: 2016-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList