power-passbook 0.0.2 → 0.0.3

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: 56a647ed28b15ef2aa1d17912347f569760c4f08
4
- data.tar.gz: 7f9b1d96fd075d70f334ce543028e237897f94e0
3
+ metadata.gz: 4c07b0edc069fd8c67b7d249da5a23a83749091a
4
+ data.tar.gz: 202fa97135fcec7f14db2c45e10512a0f1afd697
5
5
  SHA512:
6
- metadata.gz: 09d55639d69ac5d073a1122803df3a978572e0064ceb292fa75260e034bb49aec81557f9be141b750ca40b86aba1ad7176f2c0b668cf158757cfb26a1edf282a
7
- data.tar.gz: 4ab347f309dbc0bb3cf2fac18cbc3aaef328ae0bfeb829333fd13a5de2e340ff2ed06d02e3ce0744cead6e51717b4cad94a50b88d2af20034964a1b6aab75db7
6
+ metadata.gz: 88af96955a72ccc267a31fb34c609a733ea119982f00a545a2912fdec2a62ccf35b255fec24cda9c7b02e4dc3280d011ef6c5f08b2652917ea9bcd72adc47b4f
7
+ data.tar.gz: 0d46fc614b77adb4a8e392596267fbb3cc40da979e0fe701b137635e290b344e5f5e2373849bdc9dc072abf83aef73e445780463fdbc02b2a58fbb1aad81752f
data/lib/passbook.rb CHANGED
@@ -15,31 +15,31 @@ module Passbook
15
15
  end
16
16
 
17
17
  def wwdr_certificate
18
- <<-EOF.gsub /^\s+/, ""
18
+ <<~EOF
19
19
  -----BEGIN CERTIFICATE-----
20
- MIIEIzCCAwugAwIBAgIBGTANBgkqhkiG9w0BAQUFADBiMQswCQYDVQQGEwJVUzET
21
- MBEGA1UEChMKQXBwbGUgSW5jLjEmMCQGA1UECxMdQXBwbGUgQ2VydGlmaWNhdGlv
22
- biBBdXRob3JpdHkxFjAUBgNVBAMTDUFwcGxlIFJvb3QgQ0EwHhcNMDgwMjE0MTg1
23
- NjM1WhcNMTYwMjE0MTg1NjM1WjCBljELMAkGA1UEBhMCVVMxEzARBgNVBAoMCkFw
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md3vG2P+kmWrAgMBAAGjgaYwgaMw
33
+ HQYDVR0OBBYEFIgnFwmpthhgi+zruvZHWcVSVKO3MA8GA1UdEwEB/wQFMAMBAf8w
34
+ HwYDVR0jBBgwFoAUK9BpR5R2Cf70a40uQKb3R01/CF4wLgYDVR0fBCcwJTAjoCGg
35
+ H4YdaHR0cDovL2NybC5hcHBsZS5jb20vcm9vdC5jcmwwDgYDVR0PAQH/BAQDAgGG
36
+ MBAGCiqGSIb3Y2QGAgEEAgUAMA0GCSqGSIb3DQEBBQUAA4IBAQBPz+9Zviz1smwv
37
+ j+4ThzLoBTWobot9yWkMudkXvHcs1Gfi/ZptOllc34MBvbKuKmFysa/Nw0Uwj6OD
38
+ Dc4dR7Txk4qjdJukw5hyhzs+r0ULklS5MruQGFNrCk4QttkdUGwhgAqJTleMa1s8
39
+ Pab93vcNIx0LSiaHP7qRkkykGRIZbVf1eliHe2iK5IaMSuviSRSqpd1VAKmuu0sw
40
+ ruGgsbwpgOYJd+W+NKIByn/c4grmO7i77LpilfMFY0GCzQ87HUyVpNur+cmV6U/k
41
+ TecmmYHpvPm0KdIBembhLoz2IYrF+Hjhga6/05Cdqa3zr/04GpZnMBxRpVzscYqC
42
+ tGwPDBUf
43
43
  -----END CERTIFICATE-----
44
44
  EOF
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module Passbook
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -8,12 +8,4 @@ describe Passbook::Manifest do
8
8
  it "should have a filename" do
9
9
  @manifest.filename.must_equal "manifest.json"
10
10
  end
11
-
12
- it "should sign a string" do
13
- @manifest.sign('x').must_equal "11f6ad8ec52a2984abaafd7c3b516503785c2072"
14
- end
15
-
16
- # it "should have content" do
17
- # @file.content.must_equal 'TEST-1-2-3'
18
- # end
19
11
  end
data/spec/pass_spec.rb CHANGED
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe Passbook::Pass do
4
4
  before do
5
- @pass = Passbook::Pass.new({ a: '123' }, { serialNumber: 'xtc1001' })
5
+ @pass = Passbook::Pass.new({ a: '123', serialNumber: 'xtc1001' })
6
6
  end
7
7
 
8
8
  it "should have a filename" do
data/spec/pk_pass_spec.rb CHANGED
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe Passbook::PKPass do
4
4
  before do
5
- @pass = Passbook::PKPass.new({},{})
5
+ @pass = Passbook::PKPass.new({},{},{})
6
6
  end
7
7
 
8
8
  it "should have the 'vnd.apple.pkpass' content_type" do
@@ -10,38 +10,6 @@ describe Passbook::RemoteFile do
10
10
  end
11
11
 
12
12
  it "should have content" do
13
- @file.content.must_equal 'User-Agent: *
14
- Disallow: /music?
15
- Disallow: /widgets/radio?
16
-
17
- Disallow: /affiliate/
18
- Disallow: /affiliate_redirect.php
19
- Disallow: /affiliate_sendto.php
20
- Disallow: /affiliatelink.php
21
- Disallow: /campaignlink.php
22
- Disallow: /delivery.php
23
-
24
- Disallow: /music/+noredirect/
25
- Disallow: /user/*/library/music/
26
- Disallow: /*/+news/*/visit
27
- Disallow: /*/+wiki/diff
28
-
29
- # AJAX content
30
- Disallow: /search/autocomplete
31
- Disallow: /template
32
- Disallow: /ajax
33
- Disallow: /user/*/tasteomatic
34
-
35
- # Ads metastructure
36
- Disallow: /8264
37
-
38
- Disallow: /harming/humans
39
- Disallow: /ignoring/human/orders
40
- Disallow: /harm/to/self
41
-
42
- Allow: /
43
-
44
- Sitemap: http://www.last.fm/sitemap-index.xml
45
- '
13
+ @file.content.wont_be_nil
46
14
  end
47
15
  end
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe Passbook::Signature do
4
4
  before do
5
- @sig = Passbook::Signature.new({})
5
+ @sig = Passbook::Signature.new({}, {})
6
6
  end
7
7
 
8
8
  it "should have a filename" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power-passbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Power
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-07 00:00:00.000000000 Z
11
+ date: 2017-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  requirements: []
120
120
  rubyforge_project:
121
- rubygems_version: 2.2.2
121
+ rubygems_version: 2.6.11
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Passbook pass generator.