push_package 0.5.2 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/lib/push_package.rb +2 -1
- data/lib/push_package/version.rb +1 -1
- data/push_package.gemspec +2 -2
- data/spec/push_package_spec.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97c1faf7edfc6c58d160b43cc8d4ff53622b653f
|
4
|
+
data.tar.gz: c85b3066bd8e71174897dea8cbcd59577d3f1cb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c75b07c2649318ea3e4589fb2998e2746563220f8a5861cb5f14cd4ab0534fdb2166ebcd637cb3f506f85abb2c1ae22ca7d08ddfa6c43e27c45b83f881f0cff
|
7
|
+
data.tar.gz: 708f4e1f51bab6d594a0e570e570869f6abcb836d3feda306225d22a4e441b3ac2dc2be8cf43a4b0fd3306c916f7ca4a157c21de43b704e7e8f0a27168700e7e
|
data/.travis.yml
CHANGED
data/lib/push_package.rb
CHANGED
@@ -22,6 +22,7 @@ class PushPackage
|
|
22
22
|
|
23
23
|
@website_params = website_params
|
24
24
|
@iconset_path = iconset_path.to_s
|
25
|
+
@extra_certs = nil
|
25
26
|
|
26
27
|
if certificate.respond_to?(:read)
|
27
28
|
cert_data = certificate.read
|
@@ -60,7 +61,7 @@ class PushPackage
|
|
60
61
|
end
|
61
62
|
|
62
63
|
## overwrite existing push packages
|
63
|
-
File.delete(output_path) if File.
|
64
|
+
File.delete(output_path) if File.exist?(output_path)
|
64
65
|
|
65
66
|
zip = Zip::File.open(output_path, Zip::File::CREATE)
|
66
67
|
|
data/lib/push_package/version.rb
CHANGED
data/push_package.gemspec
CHANGED
@@ -17,9 +17,9 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
|
-
gem.required_ruby_version = '>=
|
20
|
+
gem.required_ruby_version = '>= 2.4'
|
21
21
|
|
22
|
-
gem.add_runtime_dependency 'rubyzip', '~>
|
22
|
+
gem.add_runtime_dependency 'rubyzip', '~> 2.0', '>= 2.0.0'
|
23
23
|
|
24
24
|
gem.add_development_dependency 'minitest', '~> 5.8.4', '>= 5.8.4'
|
25
25
|
gem.add_development_dependency 'rake', '~> 10.0', '>= 10.0.3'
|
data/spec/push_package_spec.rb
CHANGED
@@ -156,7 +156,7 @@ describe PushPackage do
|
|
156
156
|
it 'should return the file handle' do
|
157
157
|
file = push_package.save(output_path)
|
158
158
|
file.must_be_instance_of File
|
159
|
-
File.
|
159
|
+
File.exist?(file.path).must_equal true
|
160
160
|
end
|
161
161
|
|
162
162
|
it 'should be a zip file' do
|
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: 1.0.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: 2019-
|
12
|
+
date: 2019-09-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubyzip
|
@@ -17,20 +17,20 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '2.0'
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 2.0.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - "~>"
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
30
|
+
version: '2.0'
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.0.0
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: minitest
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,7 +132,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
132
|
requirements:
|
133
133
|
- - ">="
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: '
|
135
|
+
version: '2.4'
|
136
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
138
|
- - ">="
|