push_package 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/push_package/version.rb +1 -1
- data/lib/push_package.rb +1 -1
- data/spec/push_package_spec.rb +7 -7
- metadata +13 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7bd13693c26408d71e4dd0c20c72a3b3ae93e221b216177a36d2048b4c97d090
|
4
|
+
data.tar.gz: f9131a0fd3b4af3b1a58a004a171cda80571e9ca946e992cddbde3501b9994b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37a33636b4f898611de33b9b4f8e1aa846e0fd6fbd390c43798d88b3cead10b6f0942ac19dd54f103f3595080182d0689f595feaef1a0fc4cfeb0a78eebaf672
|
7
|
+
data.tar.gz: d82f7fd2127ffa1ab9d3d4559458a1f3e545b3a0ab30f1c87567be3ec2cbea9233d171f6b21db6e17f15876bf2f4df873e97f8a665410c96f885df15a5002151
|
data/lib/push_package/version.rb
CHANGED
data/lib/push_package.rb
CHANGED
@@ -114,7 +114,7 @@ class PushPackage
|
|
114
114
|
def manifest_data
|
115
115
|
manifest_keys = REQUIRED_ICONSET_FILES.map{|f| 'icon.iconset/' + f }
|
116
116
|
manifest_keys << 'website.json'
|
117
|
-
manifest_values = manifest_keys.map {|file| Digest::
|
117
|
+
manifest_values = manifest_keys.map {|file| {"hashType" => "sha512", "hashValue" => Digest::SHA512.file(File.join(@working_dir, file)).hexdigest} }
|
118
118
|
Hash[manifest_keys.zip(manifest_values)].to_json
|
119
119
|
end
|
120
120
|
|
data/spec/push_package_spec.rb
CHANGED
@@ -29,13 +29,13 @@ describe PushPackage do
|
|
29
29
|
|
30
30
|
let(:expected_manifest) do
|
31
31
|
{
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
32
|
+
"icon.iconset/icon_128x128.png" => {"hashType"=>"sha512", "hashValue"=>"2a3057b4783df18ddb501adf03241ee6d32e5d3ae1eef3b1bc67f68a40ca2f9c4c3851b5c4473628964b8097e3c8aa6a0a552b78e39200bed0e3a6f9ad5245d8"},
|
33
|
+
"icon.iconset/icon_128x128@2x.png" => {"hashType"=>"sha512", "hashValue"=>"2f18bb895a031c40ff731296656c3544c9631074f4b34fb537ebda765e5a993cadf2e3f1c4245480a7403b7f00d8a0af73631a90e8f9b1efc18bd0e3f0773490"},
|
34
|
+
"icon.iconset/icon_16x16.png" => {"hashType"=>"sha512", "hashValue"=>"80cb914ccb155986b1306586f0779d251f4798605f1fc7ff79355b34bded1e55676c62553ebce51e1f2df82cac6fd138828106868bbdc6f631bc6b32e9ea3817"},
|
35
|
+
"icon.iconset/icon_16x16@2x.png" => {"hashType"=>"sha512", "hashValue"=>"39737919fdfa0375272e9c173a240fd3f68a8fe7798946dd379a83e76aed1b7f0d92b087497f85e50f5836b03062ecb47b00f7c53d4c0b466da068a559d432b7"},
|
36
|
+
"icon.iconset/icon_32x32.png" => {"hashType"=>"sha512", "hashValue"=>"b4a48df25c8fe5881e356112e3aa22a8df8ed180a827bb85330cb73f2d9abc283630622efa4a5135dd84dc6bda2eefe2aa79bfb67a954a0cd0e45a5de58e0de1"},
|
37
|
+
"icon.iconset/icon_32x32@2x.png" => {"hashType"=>"sha512", "hashValue"=>"3dcad42ae5729b1aefb07f3dc0c501c32027a8482d5424648e67fe484fcdc0be60d69ed97915c2b4a08e286990f2ecc88c2603bb79f9a523cb448906c19eeee9"},
|
38
|
+
"website.json" => {"hashType"=>"sha512", "hashValue"=>"a9fe3fcc467aa08ad7871f6ddb399453c2d2f00890ba6177633c36dabcb9313d46f69a54679ca41a404ebc89e2532bbff088ee9a6e649c2b3d33b44d3d78ebfb"}
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: push_package
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Natchev
|
@@ -9,46 +9,46 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubyzip
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "~>"
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '2.0'
|
21
18
|
- - ">="
|
22
19
|
- !ruby/object:Gem::Version
|
23
20
|
version: 2.0.0
|
21
|
+
- - "~>"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '2.0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
|
-
- - "~>"
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: '2.0'
|
31
28
|
- - ">="
|
32
29
|
- !ruby/object:Gem::Version
|
33
30
|
version: 2.0.0
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: minitest
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 5.8.4
|
41
|
-
- - "
|
41
|
+
- - "~>"
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: 5.8.4
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- - "
|
48
|
+
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: 5.8.4
|
51
|
-
- - "
|
51
|
+
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: 5.8.4
|
54
54
|
- !ruby/object:Gem::Dependency
|
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.6.14
|
142
|
+
rubygems_version: 3.0.3.1
|
144
143
|
signing_key:
|
145
144
|
specification_version: 4
|
146
145
|
summary: A gem for creating Safari push notification push packages.
|