gonative-cli 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0cbebe24c4048ee123245be0352a99ead03f0ef5eb0f03a5b0acf61b818a1b7
4
- data.tar.gz: 970f962d44fa10f55c66736261986867497967df383a7cbae502c3a42f1dba12
3
+ metadata.gz: 0b7a1b125d1ffe1178c8aac7ce7a83f28763f56a4143927ea5f98af65a6e8b0d
4
+ data.tar.gz: 5e3d40a22098d80e8a81caf9f09238103beac627fadfc60fbfec32ba7787baee
5
5
  SHA512:
6
- metadata.gz: 1e7914e087363e1711081a7f730d6d3b8a7123e9b2d42e5e284d4626d93b7550d4110e2fab3e6197ea735dcd470a0d7970c07945a4e961225d5dc14c0846dae3
7
- data.tar.gz: '0579e6ef7475474e625f4da6ab95d3f18553962b5b7d20a5d84ff99fb06b8a046a7d2d58d4781895e597d97d8532afb583c91b5af9534e92fa6dcf4abc8e603b'
6
+ metadata.gz: c957a26340165e854405d1d8d29501396abb32cdae937f18ad49679630b266034f0389a073061f46b78549e472b5eaaa5145d262842ec2b5de4713a087f30eba
7
+ data.tar.gz: cbeb838d856380b958636c938596419ee3b94594ca8a61ee9f081e3990ab26cbd429be34423835888bd56d535050b3a85aa579e902d367fbf1d4515655c39b18
@@ -20,11 +20,14 @@ module GoNative
20
20
  private
21
21
 
22
22
  def gradle_file
23
- Dir.entries(".").select { |s| s == "build.gradle" }.first
23
+ @gradle_file ||= Dir.entries(".").select { |s| s == "build.gradle" }.first
24
24
  end
25
25
 
26
26
  def version
27
- @version ||= `grep -o "versionName\s.*\d.\d.\d" build.gradle | awk '{ print $2 }' | tr -d \''"\'`
27
+ str = IO.read(gradle_file)
28
+ str.match(/versionName\s+\"(?<version>.+)\"/)
29
+
30
+ str.match(/versionName\s+\"(?<version>.+)\"/)[:version]
28
31
  end
29
32
 
30
33
  def create_and_push_tag!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonative-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan