gonative-cli 0.7.2 → 0.7.6

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: a5432553e2213fc0208a429d39cb973f3ed7ebd88e76096599882fea9d2195cf
4
- data.tar.gz: 36543de609799b0308fb891ce7c3ab5921f8fdb98b97d181a660839cc62c40b9
3
+ metadata.gz: c265dfc0e9ca844e98d4635061d673c381b88150354a39c65d5a8199d61e8f94
4
+ data.tar.gz: b68aa740b1c28ac400dac354b156e3af327574ae5d166a673fb617de7be91848
5
5
  SHA512:
6
- metadata.gz: df9a65e776646d617a45724e65ae28619b6153b1b65bebdf35c66894c146b82464f5c3d137322bb61b0f78aec08c6d801370758d5bd49ff686b93faad182df51
7
- data.tar.gz: f2a4bdc82d6a75fc16a86bbe911d6306531b405307efbe1a2d655cfa900bcda1de3dd7ca05161edb7f1feeea76b6a0d346f0dc380ad33f53042308f0cf8b2ba3
6
+ metadata.gz: a31725f60d90942b56c47e32c0a15d1d64418b392cc33135955ff3a54357c5cf680ab0642b2597473bd8477e24e048a7ddc7b840679b2ae94ded536a05a2e25f
7
+ data.tar.gz: 128c9c5cdacdc872e1d51476799da4e7770530e08747c54bfbdfc98f05c539c9fa4a8a50cc65c2d55d5059cb4e916137eab41c68a2e8f0f1b4cc9b5d659cac44
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (0.7.0)
4
+ gonative-cli (0.7.4)
5
5
  activesupport (~> 6.0)
6
6
  cocoapods (~> 1.10)
7
7
  colorize (~> 0.8.0)
@@ -5,11 +5,12 @@ module GoNative
5
5
  module IOS
6
6
  class Publish < Base
7
7
  desc 'Verify, build and release a new version'
8
+ argument :name, required: true, desc: 'Name of the plugin'
8
9
  option :skip_build, type: :boolean, default: false
9
10
 
10
- def call(skip_build:, **)
11
+ def call(name:, skip_build:, **)
11
12
  Plugins::IOS::Verify.call
12
- Plugins::IOS::BuildFramework.call unless skip_build
13
+ Plugins::IOS::BuildFramework.call(name) unless skip_build
13
14
  Plugins::IOS::Release.call
14
15
  end
15
16
  end
@@ -16,8 +16,8 @@ module GoNative
16
16
 
17
17
  attr_reader :plugin_name
18
18
 
19
- def initialize
20
- @plugin_name = Utils::SanitizePluginName.call(FileUtils.pwd.split('/').last, 'ios').capitalize + 'Plugin'
19
+ def initialize(plugin_name)
20
+ @plugin_name = plugin_name
21
21
  end
22
22
 
23
23
  def call
@@ -75,7 +75,7 @@ module GoNative
75
75
  end
76
76
 
77
77
  def move_framework_file
78
- FileUtils.mv("XCFramework", '..')
78
+ FileUtils.mv("XCFramework", '..', force: true)
79
79
  end
80
80
  end
81
81
  end
@@ -6,6 +6,8 @@ module GoNative
6
6
  module Plugins
7
7
  module IOS
8
8
  class Create
9
+ autoload :FileUtils, 'fileutils'
10
+
9
11
  extend DSL::Serviceable
10
12
 
11
13
  TEMPLATE_DIRECTORY_PATH = File.expand_path(File.join(__dir__, '../../../..', 'templates', 'plugins', 'ios'))
@@ -24,8 +26,7 @@ module GoNative
24
26
  assert_not_exists!
25
27
  set_working_dir!
26
28
  cp_template_files!
27
- Utils::TemplateInflator.new(plugin_name: plugin_name).call
28
- chmod_frameworks_script!
29
+ Utils::TemplateInflator.new(plugin_name: plugin_name, repo_name: repo_name).call
29
30
  end
30
31
 
31
32
  def assert_not_exists!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.7.2"
4
+ VERSION = "0.7.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonative-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-07 00:00:00.000000000 Z
11
+ date: 2022-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli