Runapk 3.2.1 → 3.3.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/runapk.rb +3 -4
- data/lib/runapk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b84ad4423535cec6e72f733462660f3c4912d47d9d478a0098d01f35c2da5d34
|
|
4
|
+
data.tar.gz: f9f39be3354210ebc4ffd497f731560b729a344151910ee8aae171af419ebcb6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97cb27ab8ebf279010bd8b985c8360a3b1a4e28494a15f15b31534062c0035db79bf9d2cd8596aef937ee8cadfe1659223952bcb80b3cad55eda65767bc911ec
|
|
7
|
+
data.tar.gz: ea5674abac82b5f4ffef7813c8c47589821ddb4686221b97ffa38a5e2e57fb8161cafacf9c6fee18680f1b68034c5627edd5b378a17168252f3503ec046f20f1
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/runapk.rb
CHANGED
|
@@ -2,6 +2,7 @@ require "runapk/version"
|
|
|
2
2
|
require 'tty-prompt'
|
|
3
3
|
require 'colorator'
|
|
4
4
|
require 'nokogiri'
|
|
5
|
+
require 'securerandom'
|
|
5
6
|
|
|
6
7
|
def cmd(cmd)
|
|
7
8
|
IO.popen("#{cmd}").each do |line|
|
|
@@ -26,8 +27,7 @@ def compiler(doc, mode)
|
|
|
26
27
|
phrase_simple 'Nome do app: ' + name.blue
|
|
27
28
|
phrase_simple 'Versão do app: ' + version
|
|
28
29
|
phrase_simple ""
|
|
29
|
-
app_name_export = name
|
|
30
|
-
app_name_export = app_name_export.gsub!(/\s/, '')
|
|
30
|
+
app_name_export = "#{name}-#{version}-#{SecureRandom.hex(10)}"
|
|
31
31
|
end_app_phrase = "O seu apk vai se chamar: ".white + "#{app_name_export}.apk".blue
|
|
32
32
|
phrase_simple end_app_phrase
|
|
33
33
|
|
|
@@ -80,8 +80,7 @@ def compiler_en(doc, mode)
|
|
|
80
80
|
phrase_simple 'App name: ' + name.blue
|
|
81
81
|
phrase_simple 'App version: ' + version
|
|
82
82
|
phrase_simple ""
|
|
83
|
-
app_name_export = name
|
|
84
|
-
app_name_export = app_name_export.gsub!(/\s/, '')
|
|
83
|
+
app_name_export = "#{name}-#{version}-#{SecureRandom.hex(10)}"
|
|
85
84
|
end_app_phrase = "Your apk will be called: ".white + "#{app_name_export}.apk".blue
|
|
86
85
|
phrase_simple end_app_phrase
|
|
87
86
|
|
data/lib/runapk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: Runapk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GabrielLacerda
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-04-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: RunApk comes to help when the problem is to export ionic apks
|
|
14
14
|
email:
|