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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc872d152c7700bd4e120c861fc8a41ae4799d43
4
- data.tar.gz: a9d3e1266b6f6a7ec9e4a5cf3ad04e58e84de68e
3
+ metadata.gz: 6b3e8b567c6ebb1888e02f3cf5157b9bdbd08671
4
+ data.tar.gz: fe51748466b8ff36fb7325c48dca56816bf7ed2e
5
5
  SHA512:
6
- metadata.gz: e527193e4a22d908ba95ece1deb457501dd3c720642d498d6dfe45d98ab98fb3bc55c1bdf5bae0e0b448837a7c6f048217e403e5f35a36fab2c7ed85f5d6d86b
7
- data.tar.gz: 57c8e51d968c9de7728722c14b4a602e34d2037aea375c47ee1f8c1f449246cbc4352676a9a810aa7435d09ab8ae829039acafd60dc00f1d6c104aaf02a6d7fb
6
+ metadata.gz: 73ec74740ad3a70e0eda382a98bb112b9c8f8fc5d6b795dcfd67342b2f81c8f0d8338d5426dffb3fe624bbd16c03489f4648770e47a53f7178a32df7aa592f2f
7
+ data.tar.gz: e238cc025564ea70167df852b8edd1e3836a944d02e07f998255d3c0e9f66cf1ca6a270a78c45b672d3ddcef60d7c0f09665e492e2a825878d588c66412b37fb
@@ -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 required', 'The path to the p12 file that will be used to sign the manifest.json') do |opt|
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('-o', '--output-dir optional', 'The desired output path for the pushPackage.zip file') do |opt|
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
 
@@ -1,3 +1,3 @@
1
1
  class PushPackage
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
@@ -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', '~> 4.7.0'
25
- gem.add_development_dependency 'rake', '~> 10.0.3'
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.2.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-01-27 00:00:00.000000000 Z
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.