gonative-cli 1.5.1 → 1.5.2

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: 036b363350b522557703cfb3e602304be379604ee42d5313253e3014db037d32
4
+ data.tar.gz: f0c0ec0d4394c27684f58c179acb69429ca12c50907909d043702d2062fd2d71
5
5
  SHA512:
6
- metadata.gz: 7855bead179e639d818d0f3c996f3086e77cf24d15ac7d7741c668f3981c21ea76a10706f368d31da1fd859b0b24e98c0b49389d16668a883ff503a14d1f31d3
7
- data.tar.gz: 1fca70635e52f50e3dd746fc450ad33f44528dc510b693bf8027b32254ab9185fcacd9c8a40c14862e909647ce3315bb609c11acc9abf2dbcdb08e1ad845b9e0
6
+ metadata.gz: 6cfa53dd39bb682b0d64db042f0df4ef4c9613a5114b42d09d4cf45644f27bccd6c1456bce645f7344de81efea2ded669e82b373915b1a6e150b459c28237d49
7
+ data.tar.gz: ed6b6c403c948a18207c8dc1442353f28174ba52579dfcbae4a2377b669342931c92318ded94b3d0ddcb5136baf34219e65b5d1794b1d3065624c66b72e1e704
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.2)
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,10 +7,15 @@ 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
14
+
15
+ def initialize(podspec_path)
16
+ @spec = Pod::Specification.from_file(podspec_path)
17
+ end
18
+
14
19
  def call
15
20
  Utils::UI.info 'Linting and releasing pod'
16
21
  assert_spec_exists!
@@ -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.2'
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan