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 +4 -4
- data/lib/passbook.rb +24 -24
- data/lib/passbook/version.rb +1 -1
- data/spec/manifest_spec.rb +0 -8
- data/spec/pass_spec.rb +1 -1
- data/spec/pk_pass_spec.rb +1 -1
- data/spec/remote_file_spec.rb +1 -33
- data/spec/signature_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c07b0edc069fd8c67b7d249da5a23a83749091a
|
4
|
+
data.tar.gz: 202fa97135fcec7f14db2c45e10512a0f1afd697
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
18
|
+
<<~EOF
|
19
19
|
-----BEGIN CERTIFICATE-----
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
20
|
+
MIIEIjCCAwqgAwIBAgIIAd68xDltoBAwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UE
|
21
|
+
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mwwDgYDVR0PAQH/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
|
data/lib/passbook/version.rb
CHANGED
data/spec/manifest_spec.rb
CHANGED
@@ -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
data/spec/pk_pass_spec.rb
CHANGED
data/spec/remote_file_spec.rb
CHANGED
@@ -10,38 +10,6 @@ describe Passbook::RemoteFile do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
it "should have content" do
|
13
|
-
@file.content.
|
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
|
data/spec/signature_spec.rb
CHANGED
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.
|
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:
|
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.
|
121
|
+
rubygems_version: 2.6.11
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Passbook pass generator.
|