push_package 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/push_package +11 -3
- data/lib/push_package/version.rb +1 -1
- data/push_package.gemspec +4 -4
- metadata +22 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b3e8b567c6ebb1888e02f3cf5157b9bdbd08671
|
4
|
+
data.tar.gz: fe51748466b8ff36fb7325c48dca56816bf7ed2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73ec74740ad3a70e0eda382a98bb112b9c8f8fc5d6b795dcfd67342b2f81c8f0d8338d5426dffb3fe624bbd16c03489f4648770e47a53f7178a32df7aa592f2f
|
7
|
+
data.tar.gz: e238cc025564ea70167df852b8edd1e3836a944d02e07f998255d3c0e9f66cf1ca6a270a78c45b672d3ddcef60d7c0f09665e492e2a825878d588c66412b37fb
|
data/bin/push_package
CHANGED
@@ -17,11 +17,19 @@ options_parser = OptionParser.new do |opts|
|
|
17
17
|
options[:iconset_path] = opt
|
18
18
|
end
|
19
19
|
|
20
|
-
opts.on('-c', '--certificate
|
20
|
+
opts.on('-c', '--certificate required', 'The path to the p12 file that will be used to sign the manifest.json') do |opt|
|
21
21
|
options[:certificate_path] = opt
|
22
22
|
end
|
23
23
|
|
24
|
-
opts.on('-
|
24
|
+
opts.on('-p', '--password optional', 'The password to read the p12 file') do |opt|
|
25
|
+
options[:password] = opt
|
26
|
+
end
|
27
|
+
|
28
|
+
opts.on('-I', '--intermediate-certificate optional', 'The path to the Apple WWDR Intermediate Certificate used to sign the manifest.json') do |opt|
|
29
|
+
options[:intermediate_certificate_path] = opt
|
30
|
+
end
|
31
|
+
|
32
|
+
opts.on('-o', '--output-dir optional', 'The desired output path for the pushPackage.zip file') do |opt|
|
25
33
|
options[:output_directory] = opt
|
26
34
|
end
|
27
35
|
end
|
@@ -45,7 +53,7 @@ options[:output_directory] = `pwd`.strip unless options[:output_directory]
|
|
45
53
|
|
46
54
|
website_params = JSON.load(File.open(options[:website_json_path], 'r'))
|
47
55
|
|
48
|
-
packager = PushPackage.new(website_params, options[:iconset_path], options[:certificate_path])
|
56
|
+
packager = PushPackage.new(website_params, options[:iconset_path], options[:certificate_path], options[:password], options[:intermediate_certificate_path])
|
49
57
|
|
50
58
|
packager.save(options[:output_directory] + '/pushPackage.zip')
|
51
59
|
|
data/lib/push_package/version.rb
CHANGED
data/push_package.gemspec
CHANGED
@@ -19,9 +19,9 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
gem.required_ruby_version = '>= 1.9'
|
21
21
|
|
22
|
-
gem.add_runtime_dependency 'rubyzip', '~> 1.1.0'
|
22
|
+
gem.add_runtime_dependency 'rubyzip', '~> 1.1', '>= 1.1.0'
|
23
23
|
|
24
|
-
gem.add_development_dependency 'minitest',
|
25
|
-
gem.add_development_dependency 'rake',
|
26
|
-
gem.add_development_dependency 'pry'
|
24
|
+
gem.add_development_dependency 'minitest', '~> 4.7.0', '>= 4.7.0'
|
25
|
+
gem.add_development_dependency 'rake', '~> 10.0', '>= 10.0.3'
|
26
|
+
gem.add_development_dependency 'pry', '~> 0'
|
27
27
|
end
|
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: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Natchev
|
@@ -9,13 +9,16 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-02-16 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
18
|
- - ~>
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.1'
|
21
|
+
- - '>='
|
19
22
|
- !ruby/object:Gem::Version
|
20
23
|
version: 1.1.0
|
21
24
|
type: :runtime
|
@@ -23,6 +26,9 @@ dependencies:
|
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
28
|
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '1.1'
|
31
|
+
- - '>='
|
26
32
|
- !ruby/object:Gem::Version
|
27
33
|
version: 1.1.0
|
28
34
|
- !ruby/object:Gem::Dependency
|
@@ -32,6 +38,9 @@ dependencies:
|
|
32
38
|
- - ~>
|
33
39
|
- !ruby/object:Gem::Version
|
34
40
|
version: 4.7.0
|
41
|
+
- - '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 4.7.0
|
35
44
|
type: :development
|
36
45
|
prerelease: false
|
37
46
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -39,11 +48,17 @@ dependencies:
|
|
39
48
|
- - ~>
|
40
49
|
- !ruby/object:Gem::Version
|
41
50
|
version: 4.7.0
|
51
|
+
- - '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 4.7.0
|
42
54
|
- !ruby/object:Gem::Dependency
|
43
55
|
name: rake
|
44
56
|
requirement: !ruby/object:Gem::Requirement
|
45
57
|
requirements:
|
46
58
|
- - ~>
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '10.0'
|
61
|
+
- - '>='
|
47
62
|
- !ruby/object:Gem::Version
|
48
63
|
version: 10.0.3
|
49
64
|
type: :development
|
@@ -51,20 +66,23 @@ dependencies:
|
|
51
66
|
version_requirements: !ruby/object:Gem::Requirement
|
52
67
|
requirements:
|
53
68
|
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '10.0'
|
71
|
+
- - '>='
|
54
72
|
- !ruby/object:Gem::Version
|
55
73
|
version: 10.0.3
|
56
74
|
- !ruby/object:Gem::Dependency
|
57
75
|
name: pry
|
58
76
|
requirement: !ruby/object:Gem::Requirement
|
59
77
|
requirements:
|
60
|
-
- -
|
78
|
+
- - ~>
|
61
79
|
- !ruby/object:Gem::Version
|
62
80
|
version: '0'
|
63
81
|
type: :development
|
64
82
|
prerelease: false
|
65
83
|
version_requirements: !ruby/object:Gem::Requirement
|
66
84
|
requirements:
|
67
|
-
- -
|
85
|
+
- - ~>
|
68
86
|
- !ruby/object:Gem::Version
|
69
87
|
version: '0'
|
70
88
|
description: As of OSX 10.9 Safari can receive push notifications when it is closed.
|