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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d815b8b825afa3783da5221bc3bedb9da52611f050656c833fa29c348497737f
4
- data.tar.gz: 561c3dde9da086f8509461c0c5f42b22d772aada3a0cb6e1da90aed174a24b93
3
+ metadata.gz: b84ad4423535cec6e72f733462660f3c4912d47d9d478a0098d01f35c2da5d34
4
+ data.tar.gz: f9f39be3354210ebc4ffd497f731560b729a344151910ee8aae171af419ebcb6
5
5
  SHA512:
6
- metadata.gz: 6dee4324c9dd869775f24e29c84abba2695f4597c0f1b885964281099e70d3d4f4f36a8287ad65b589dcc95afa60feec5f06e9b2fd5e04f6237f50a95ab378a7
7
- data.tar.gz: ccc8c257030746b66c92b576ffccb49bdc8e0d29e605fdda516ba8bd980f9de29772b455508083e18327932578052cfc988a986b42394f51807598356d400983
6
+ metadata.gz: 97cb27ab8ebf279010bd8b985c8360a3b1a4e28494a15f15b31534062c0035db79bf9d2cd8596aef937ee8cadfe1659223952bcb80b3cad55eda65767bc911ec
7
+ data.tar.gz: ea5674abac82b5f4ffef7813c8c47589821ddb4686221b97ffa38a5e2e57fb8161cafacf9c6fee18680f1b68034c5627edd5b378a17168252f3503ec046f20f1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Runapk (3.0.0)
4
+ Runapk (3.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -25,7 +25,7 @@ Just run ``runapk`` :D and you're ready to go!
25
25
  ## Installation
26
26
  ### Supported OS
27
27
  - Mac
28
- - Windows
28
+ - Windows 10 (Using linux kernel)
29
29
  - Linux
30
30
  ### Requirements
31
31
  - Cordova
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 + '-' + version
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 + '-' + version
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
 
@@ -1,3 +1,3 @@
1
1
  module Runapk
2
- VERSION = "3.2.1"
2
+ VERSION = "3.3.0"
3
3
  end
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.2.1
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-01-10 00:00:00.000000000 Z
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: