gonative-cli 1.5.1 → 1.5.3

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: 175adb9f756f0eac5fc4b2c8c8099b78faa93adbeb1d32731ff54f5fa0dc18b5
4
- data.tar.gz: 2cac5bb1dbaa31c3b13e5fb4885db89896cabbb030e4295c7686a7bb3de5b4ba
3
+ metadata.gz: a8d858271a2edb3d7f244368729c4f21911cf8a0ad277232893d6745f15ade26
4
+ data.tar.gz: 8a5eccdf07a83304eea17a9df44918baa916b9e8e4c28b055a1bb7631c145d01
5
5
  SHA512:
6
- metadata.gz: 7855bead179e639d818d0f3c996f3086e77cf24d15ac7d7741c668f3981c21ea76a10706f368d31da1fd859b0b24e98c0b49389d16668a883ff503a14d1f31d3
7
- data.tar.gz: 1fca70635e52f50e3dd746fc450ad33f44528dc510b693bf8027b32254ab9185fcacd9c8a40c14862e909647ce3315bb609c11acc9abf2dbcdb08e1ad845b9e0
6
+ metadata.gz: e2406719d47e3118760bfc2b4ec257c9abc3c9cf0774ec8e53d553e611e51c2cac57304ca56f611be47c9dc72364c24a90244082d253e647c75dc62593d6a693
7
+ data.tar.gz: 49fa3309ce9a6c7603c5c1fe16b765b5695333b634389693319a1f35103612ec7b10e7e5870a5c51f6c29fb6e8d16e058a8dca0e348d8b1be7d17c9015d23292
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (1.5.1)
4
+ gonative-cli (1.5.3)
5
5
  activesupport (~> 6.0)
6
6
  aws-sdk-s3 (~> 1)
7
7
  cocoapods (~> 1.10)
@@ -15,7 +15,7 @@ module GoNative
15
15
  def call(podspec:, skip_build:, debug:, archs:, **)
16
16
  Plugins::IOS::Verify.call
17
17
  Plugins::IOS::BuildFramework.call(podspec, archs, debug) unless skip_build
18
- Plugins::IOS::Release.call
18
+ Plugins::IOS::Release.call(podspec)
19
19
  end
20
20
  end
21
21
  end
@@ -4,10 +4,12 @@ module GoNative
4
4
  module Commands
5
5
  module IOS
6
6
  class Version < Base
7
- desc 'Rename an iOS project'
7
+ desc 'Get version of a Podspec file'
8
8
 
9
- def call
10
- Plugins::IOS::Version.call
9
+ argument :podspec, required: true, desc: 'Podspec name'
10
+
11
+ def call(podspec:, **)
12
+ Plugins::IOS::Version.call(podspec)
11
13
  end
12
14
  end
13
15
  end
@@ -7,13 +7,18 @@ module GoNative
7
7
  module IOS
8
8
  class Release
9
9
  extend DSL::Serviceable
10
- include Helpers::SpecReader
11
10
 
12
11
  GONATIVE_SOURCE_NAME = 'gonative-specs'
13
12
 
13
+ attr_reader :spec, :spec_name
14
+
15
+ def initialize(spec_name)
16
+ @spec_name = spec_name
17
+ @spec = Pod::Specification.from_file(spec_name)
18
+ end
19
+
14
20
  def call
15
21
  Utils::UI.info 'Linting and releasing pod'
16
- assert_spec_exists!
17
22
  sources_manager.update(GONATIVE_SOURCE_NAME)
18
23
  assert_not_pushed!
19
24
  push_to_pod_repo!
@@ -21,12 +26,6 @@ module GoNative
21
26
 
22
27
  private
23
28
 
24
- def assert_spec_exists!
25
- return if spec_name
26
-
27
- raise Error, 'No podspec file exists'
28
- end
29
-
30
29
  def assert_not_pushed!
31
30
  version = spec.version
32
31
  name = spec.name
@@ -7,7 +7,12 @@ module GoNative
7
7
  module IOS
8
8
  class Version
9
9
  extend DSL::Serviceable
10
- include Helpers::SpecReader
10
+
11
+ attr_reader :spec
12
+
13
+ def initialize(spec_path)
14
+ @spec = Pod::Specification.from_file(spec_path)
15
+ end
11
16
 
12
17
  def call
13
18
  Utils::UI.output(spec.version)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = '1.5.1'
4
+ VERSION = '1.5.3'
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.5.1
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan