push_package 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +1 -1
- data/bin/push_package +9 -3
- data/lib/push_package/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a74e2a101bd6d72554fcd9529ce96b0aa685a953
|
4
|
+
data.tar.gz: 4e226c531d1d12d4a83deaddbbeb18f605078fe0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 317d6e0eb7104fbebb2ac8975c658b4d55af0f00dbd2fc141266c1f983c7b4f72d2e486a9a392bb2bfbc748d6416640d4e71cee99887cab0959756fcb2c0f259
|
7
|
+
data.tar.gz: fa0c1e610da78089844449d0a25ef7219b4168d2de6a4c9191910cea672ead01071da24512aa34000d8b25ece894e66c58911b17492b54a01cbd616ff3ba6b50
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -45,7 +45,7 @@ package.save('path/to/save')
|
|
45
45
|
```
|
46
46
|
|
47
47
|
```shell
|
48
|
-
$> push_package --website-json=./website.json --iconset-path
|
48
|
+
$> push_package --website-json=./website.json --iconset-path=/path/to/project/iconset --output-dir=./ --certificate=./Certificate.p12
|
49
49
|
wrote: ./pushPackage.zip
|
50
50
|
```
|
51
51
|
|
data/bin/push_package
CHANGED
@@ -4,7 +4,7 @@ require 'json'
|
|
4
4
|
require 'optparse'
|
5
5
|
require 'push_package'
|
6
6
|
|
7
|
-
# $> push_package --website-json=./website.json --iconset
|
7
|
+
# $> push_package --website-json=./website.json --iconset-path=/path/to/project/iconset --certificate=./Certificate.p12 --output-dir=./
|
8
8
|
options = {}
|
9
9
|
options_parser = OptionParser.new do |opts|
|
10
10
|
opts.banner = 'Usage: push_package [options]'
|
@@ -38,13 +38,19 @@ options_parser.parse!
|
|
38
38
|
|
39
39
|
# check the required options
|
40
40
|
[:website_json_path, :certificate_path].each do |opt|
|
41
|
-
|
41
|
+
path = File.expand_path(options[opt].to_s)
|
42
|
+
unless File.file?(path)
|
43
|
+
puts "#{path}: No such file"
|
44
|
+
puts
|
42
45
|
puts options_parser.help
|
43
46
|
exit 1
|
44
47
|
end
|
45
48
|
end
|
46
49
|
|
47
|
-
|
50
|
+
iconset_path = File.expand_path(options[:iconset_path].to_s)
|
51
|
+
unless File.directory?(iconset_path)
|
52
|
+
puts "#{iconset_path}: No such directory"
|
53
|
+
puts
|
48
54
|
puts options_parser.help
|
49
55
|
exit 1
|
50
56
|
end
|
data/lib/push_package/version.rb
CHANGED
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.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Natchev
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubyzip
|