push_package 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ceeed08b5a9b3d2df6e2d0deb154dd29d4802724
4
- data.tar.gz: 5a8959ed6ad5ea9e6deb348ad90e2e878d1d8e55
3
+ metadata.gz: a74e2a101bd6d72554fcd9529ce96b0aa685a953
4
+ data.tar.gz: 4e226c531d1d12d4a83deaddbbeb18f605078fe0
5
5
  SHA512:
6
- metadata.gz: 422bf6d6411be5bc2731166c54ef836c7abceffe3a99ac208f02d105f529c2ce2101919e6ef94b05290cb1edd08604706b83009daf89c00b950bfd28ac8c36be
7
- data.tar.gz: 01688a3ef558699b13f42ed3332608fcd0fc7cccad8189b540df535dc65de350274c07f6d696a29d8c45612cae68130af91a5e6aa48c698c945036a9f68ba52e
6
+ metadata.gz: 317d6e0eb7104fbebb2ac8975c658b4d55af0f00dbd2fc141266c1f983c7b4f72d2e486a9a392bb2bfbc748d6416640d4e71cee99887cab0959756fcb2c0f259
7
+ data.tar.gz: fa0c1e610da78089844449d0a25ef7219b4168d2de6a4c9191910cea672ead01071da24512aa34000d8b25ece894e66c58911b17492b54a01cbd616ff3ba6b50
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  *.gem
2
2
 
3
+ Gemfile.lock
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=~/project/iconset --output-dir=./ --certificate=./Certificate.p12
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=~/project/iconset --certificate=./Certificate.p12 --output-dir=./
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
- unless File.file?(options[opt].to_s)
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
- unless File.directory?(options[:iconset_path].to_s)
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
@@ -1,3 +1,3 @@
1
1
  class PushPackage
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.5.1'.freeze
3
3
  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.5.0
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-05-20 00:00:00.000000000 Z
12
+ date: 2016-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubyzip